Revert "perf: build backend with swc (#9463)"
This reverts commit 4579d02296
.
This commit is contained in:
parent
e00003edff
commit
74910f8d70
@ -9,17 +9,7 @@
|
|||||||
"transform": {
|
"transform": {
|
||||||
"legacyDecorator": true,
|
"legacyDecorator": true,
|
||||||
"decoratorMetadata": true
|
"decoratorMetadata": true
|
||||||
},
|
}
|
||||||
"experimental": {
|
|
||||||
"keepImportAssertions": true
|
|
||||||
},
|
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"@/*": [
|
|
||||||
"./src/*"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"target": "es2021"
|
|
||||||
},
|
},
|
||||||
"minify": false
|
"minify": false
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
"start": "node ./built/index.js",
|
"start": "node ./built/index.js",
|
||||||
"start:test": "NODE_ENV=test node ./built/index.js",
|
"start:test": "NODE_ENV=test node ./built/index.js",
|
||||||
"migrate": "typeorm migration:run -d ormconfig.js",
|
"migrate": "typeorm migration:run -d ormconfig.js",
|
||||||
"build": "swc src -d built -D",
|
"build": "tsc -p tsconfig.json || echo done. && tsc-alias -p tsconfig.json",
|
||||||
"watch": "swc src -d built -D -w",
|
"watch": "node watch.mjs",
|
||||||
"lint": "tsc --noEmit && eslint --quiet \"src/**/*.ts\"",
|
"lint": "tsc --noEmit && eslint --quiet \"src/**/*.ts\"",
|
||||||
"jest": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --forceExit --runInBand",
|
"jest": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --forceExit --runInBand",
|
||||||
"jest-and-coverage": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --coverage --forceExit --runInBand",
|
"jest-and-coverage": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --coverage --forceExit --runInBand",
|
||||||
@ -112,6 +112,7 @@
|
|||||||
"systeminformation": "5.17.1",
|
"systeminformation": "5.17.1",
|
||||||
"tinycolor2": "1.5.2",
|
"tinycolor2": "1.5.2",
|
||||||
"tmp": "0.2.1",
|
"tmp": "0.2.1",
|
||||||
|
"tsc-alias": "1.8.2",
|
||||||
"tsconfig-paths": "4.1.2",
|
"tsconfig-paths": "4.1.2",
|
||||||
"twemoji-parser": "14.0.0",
|
"twemoji-parser": "14.0.0",
|
||||||
"typeorm": "0.3.11",
|
"typeorm": "0.3.11",
|
||||||
@ -127,7 +128,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@redocly/openapi-core": "1.0.0-beta.117",
|
"@redocly/openapi-core": "1.0.0-beta.117",
|
||||||
"@swc/cli": "^0.1.59",
|
|
||||||
"@swc/core": "1.3.25",
|
"@swc/core": "1.3.25",
|
||||||
"@swc/jest": "0.2.24",
|
"@swc/jest": "0.2.24",
|
||||||
"@types/accepts": "1.3.5",
|
"@types/accepts": "1.3.5",
|
||||||
|
23
packages/backend/watch.mjs
Normal file
23
packages/backend/watch.mjs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import { execa } from 'execa';
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
// なぜかchokidarが動かない影響で、watchされない
|
||||||
|
/*
|
||||||
|
execa('tsc-alias', ['-w', '-p', 'tsconfig.json'], {
|
||||||
|
stdout: process.stdout,
|
||||||
|
stderr: process.stderr,
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
|
setInterval(() => {
|
||||||
|
execa('tsc-alias', ['-p', 'tsconfig.json'], {
|
||||||
|
stdout: process.stdout,
|
||||||
|
stderr: process.stderr,
|
||||||
|
});
|
||||||
|
}, 3000);
|
||||||
|
|
||||||
|
execa('tsc', ['-w', '-p', 'tsconfig.json'], {
|
||||||
|
stdout: process.stdout,
|
||||||
|
stderr: process.stderr,
|
||||||
|
});
|
||||||
|
})();
|
Loading…
Reference in New Issue
Block a user