diff options
| author | RyotaK <49341894+Ry0taK@users.noreply.github.com> | 2023-03-05 14:33:23 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-05 14:33:23 +0900 |
| commit | 8e8c2b40f905cec73c1006b7517432b857fb826a (patch) | |
| tree | 532a5293aefc5683d064e10e3c99093ab1b2059c /scripts | |
| parent | change: deprecate link to Misskey Forum in favor of GitHub Discussions (#10212) (diff) | |
| download | sharkey-8e8c2b40f905cec73c1006b7517432b857fb826a.tar.gz sharkey-8e8c2b40f905cec73c1006b7517432b857fb826a.tar.bz2 sharkey-8e8c2b40f905cec73c1006b7517432b857fb826a.zip | |
fix: pnpm dev時にファイルが空ならバックエンドの起動を待つように (#10210)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/dev.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/dev.js b/scripts/dev.js index b1970ebc54..db7bc11feb 100644 --- a/scripts/dev.js +++ b/scripts/dev.js @@ -40,8 +40,9 @@ const fs = require('fs'); const start = async () => { try { - const exist = fs.existsSync(__dirname + '/../packages/backend/built/boot/index.js') - if (!exist) throw new Error('not exist yet'); + const stat = fs.statSync(__dirname + '/../packages/backend/built/boot/index.js'); + if (!stat) throw new Error('not exist yet'); + if (stat.size === 0) throw new Error('not built yet'); await execa('pnpm', ['start'], { cwd: __dirname + '/../', |