mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Switch from ts-node to tsc-watch for faster watch restarts; move format npm script to project root
This commit is contained in:
parent
fd8a4598aa
commit
2a646f5a6e
6 changed files with 161 additions and 77 deletions
|
@ -1,18 +0,0 @@
|
|||
/**
|
||||
* See:
|
||||
* https://github.com/dividab/tsconfig-paths
|
||||
* https://github.com/TypeStrong/ts-node/issues/138
|
||||
* https://github.com/TypeStrong/ts-node/issues/138#issuecomment-519602402
|
||||
* https://github.com/TypeStrong/ts-node/pull/254
|
||||
*/
|
||||
|
||||
const path = require('path');
|
||||
const tsconfig = require('./tsconfig.json');
|
||||
const tsconfigPaths = require('tsconfig-paths');
|
||||
|
||||
// E.g. ./dist/backend
|
||||
const baseUrl = path.resolve(tsconfig.compilerOptions.outDir, path.basename(__dirname));
|
||||
tsconfigPaths.register({
|
||||
baseUrl,
|
||||
paths: tsconfig.compilerOptions.paths || [],
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue