fix(backend): バックエンドのpnpm devによるビルド後にbuild-assetsを行うようにする (#13659)

* moveto scripts

* add scripts/dev.mjs
This commit is contained in:
おさむのひと 2024-04-04 22:25:28 +09:00 committed by GitHub
parent c4fc582469
commit efa42a1624
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 71 additions and 10 deletions

View file

@ -0,0 +1,28 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
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,
});
})();