mirror of
https://github.com/lowdefy/lowdefy.git
synced 2024-11-21 01:14:48 +08:00
chore: Move swc config to single file
This commit is contained in:
parent
a0b5f13e2c
commit
0866e93f5a
3
.swcrc
3
.swcrc
@ -1,11 +1,12 @@
|
||||
{
|
||||
"exclude": [".*.test.js$"],
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "ecmascript",
|
||||
"jsx": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"target": "es2018",
|
||||
"target": "es2020",
|
||||
"keepClassNames": true
|
||||
},
|
||||
"module": {
|
||||
|
@ -1,17 +0,0 @@
|
||||
{
|
||||
"exclude": [".*.test.js$"],
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "ecmascript",
|
||||
"jsx": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"target": "es2020",
|
||||
"keepClassNames": true
|
||||
},
|
||||
"module": {
|
||||
"type": "es6",
|
||||
"noInterop": true,
|
||||
"ignoreDynamic": true
|
||||
}
|
||||
}
|
@ -9,6 +9,6 @@ module.exports = {
|
||||
testEnvironment: 'node',
|
||||
testPathIgnorePatterns: ['<rootDir>/dist/'],
|
||||
transform: {
|
||||
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '.swcrc.test' }],
|
||||
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../.swcrc.test' }],
|
||||
},
|
||||
};
|
||||
|
@ -36,7 +36,7 @@
|
||||
"build": "yarn clean && yarn swc",
|
||||
"clean": "rm -rf dist",
|
||||
"prepare": "yarn build",
|
||||
"swc": "swc src --out-dir dist",
|
||||
"swc": "swc src --out-dir dist --config-file ../../.swcrc",
|
||||
"test": "jest --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -1,17 +0,0 @@
|
||||
{
|
||||
"exclude": [".*.test.js$"],
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "ecmascript",
|
||||
"jsx": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"target": "es2020",
|
||||
"keepClassNames": true
|
||||
},
|
||||
"module": {
|
||||
"type": "es6",
|
||||
"noInterop": true,
|
||||
"ignoreDynamic": true
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "ecmascript",
|
||||
"jsx": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"target": "es2020",
|
||||
"keepClassNames": true
|
||||
},
|
||||
"module": {
|
||||
"type": "es6",
|
||||
"noInterop": true,
|
||||
"ignoreDynamic": true
|
||||
}
|
||||
}
|
@ -10,6 +10,6 @@ module.exports = {
|
||||
testEnvironment: 'node',
|
||||
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/src/test'],
|
||||
transform: {
|
||||
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '.swcrc.test' }],
|
||||
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../.swcrc.test' }],
|
||||
},
|
||||
};
|
||||
|
@ -33,7 +33,7 @@
|
||||
"build": "yarn clean && yarn swc",
|
||||
"clean": "rm -rf dist",
|
||||
"prepare": "yarn build",
|
||||
"swc": "swc src --out-dir dist",
|
||||
"swc": "swc src --out-dir dist --config-file ../../.swcrc",
|
||||
"test": "jest --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -1,17 +0,0 @@
|
||||
{
|
||||
"exclude": [".*.test.js$"],
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "ecmascript",
|
||||
"jsx": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"target": "es2020",
|
||||
"keepClassNames": true
|
||||
},
|
||||
"module": {
|
||||
"type": "es6",
|
||||
"noInterop": true,
|
||||
"ignoreDynamic": true
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "ecmascript",
|
||||
"jsx": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"target": "es2020",
|
||||
"keepClassNames": true
|
||||
},
|
||||
"module": {
|
||||
"type": "es6",
|
||||
"noInterop": true,
|
||||
"ignoreDynamic": true
|
||||
}
|
||||
}
|
@ -9,6 +9,6 @@ module.exports = {
|
||||
testEnvironment: 'node',
|
||||
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/src/test'],
|
||||
transform: {
|
||||
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '.swcrc.test' }],
|
||||
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../.swcrc.test' }],
|
||||
},
|
||||
};
|
||||
|
@ -33,7 +33,7 @@
|
||||
"clean": "rm -rf dist",
|
||||
"prepare": "yarn build",
|
||||
"start": "node run.js",
|
||||
"swc": "swc src --out-dir dist",
|
||||
"swc": "swc src --out-dir dist --config-file ../../.swcrc",
|
||||
"test": "jest --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -1,17 +0,0 @@
|
||||
{
|
||||
"exclude": [".*.test.js$"],
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "ecmascript",
|
||||
"jsx": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"target": "es2020",
|
||||
"keepClassNames": true
|
||||
},
|
||||
"module": {
|
||||
"type": "es6",
|
||||
"noInterop": true,
|
||||
"ignoreDynamic": true
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "ecmascript",
|
||||
"jsx": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"target": "es2020",
|
||||
"keepClassNames": true
|
||||
},
|
||||
"module": {
|
||||
"type": "es6",
|
||||
"noInterop": true,
|
||||
"ignoreDynamic": true
|
||||
}
|
||||
}
|
@ -9,6 +9,6 @@ module.exports = {
|
||||
testEnvironment: 'node',
|
||||
testPathIgnorePatterns: ['<rootDir>/dist/'],
|
||||
transform: {
|
||||
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '.swcrc.test' }],
|
||||
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../.swcrc.test' }],
|
||||
},
|
||||
};
|
||||
|
@ -34,7 +34,7 @@
|
||||
"build": "yarn clean && yarn swc",
|
||||
"clean": "rm -rf dist",
|
||||
"prepare": "yarn build",
|
||||
"swc": "swc src --out-dir dist",
|
||||
"swc": "swc src --out-dir dist --config-file ../../.swcrc",
|
||||
"test": "jest --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
|
Loading…
Reference in New Issue
Block a user