1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-27 06:18:51 +09:00

fix: pnpm dev時にファイルが空ならバックエンドの起動を待つように (#10210)

This commit is contained in:
RyotaK 2023-03-05 14:33:23 +09:00 committed by GitHub
parent ad43011fb8
commit 8e8c2b40f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 + '/../',