mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
w: 编译提速
This commit is contained in:
1 parent
6c6a0df0f0
commit
d037560f91
5 files changed
+8
-7
No files matched your search
+2
-1
@@ -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' });
|
||||
}
|
||||
Reference in new issue
Block a user