refactor: rely on component versions from checksums file (#1111)
9
packages/components/src/Types/Checksums.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { FeatureIdentifier } from '@standardnotes/features'
|
||||
|
||||
type ChecksumEntry = {
|
||||
version: string
|
||||
base64: string
|
||||
binary: string
|
||||
}
|
||||
|
||||
export type ComponentChecksumsType = Record<FeatureIdentifier, ChecksumEntry>
|
||||
1
packages/components/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './Types/Checksums'
|
||||
@@ -1,2 +0,0 @@
|
||||
const override = require('../../cra-app.override')
|
||||
module.exports = override
|
||||
@@ -1,2 +0,0 @@
|
||||
const override = require('../../cra-app.override')
|
||||
module.exports = override
|
||||
10
packages/components/src/packages/cra-app.override.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = function override(config, env) {
|
||||
config.ignoreWarnings = [/Failed to parse source map/]
|
||||
config.output = {
|
||||
...config.output,
|
||||
filename: 'static/js/[name].js',
|
||||
chunkFilename: 'static/js/[name].chunk.js',
|
||||
assetModuleFilename: 'static/media/[name].[ext]',
|
||||
}
|
||||
return config
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
const override = require('../cra-app.override')
|
||||
module.exports = override
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |