w: 编译提速

This commit is contained in:
undefined committed 2021-01-22 13:47:45 +08:00
1 parent 6c6a0df0f0
commit d037560f91
5 files changed
+8 -7

No files matched your search

+2 -1
View File
@@ -58,9 +58,10 @@ for (const package of packages) {
}
fs.writeFileSync(path.resolve(process.cwd(), 'tsconfig.json'), JSON.stringify(config));
child.execSync('./node_modules/.bin/tsc -b packages/hydrooj', { stdio: 'inherit' });
if (argv.watch) {
child.execSync('./node_modules/.bin/tsc -b --watch', { stdio: 'inherit' });
} else {
child.execSync('cd packages/hydrooj && yarn build', { stdio: 'inherit' });
child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
}