implement dev command
This commit is contained in:
parent
9d67857a34
commit
a9a5673069
6 changed files with 154 additions and 97 deletions
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…
Add table
Add a link
Reference in a new issue