Skip to content
Snippets Groups Projects
Unverified Commit 8e8c2b40 authored by RyotaK's avatar RyotaK Committed by GitHub
Browse files

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

parent ad43011f
No related branches found
No related tags found
No related merge requests found
......@@ -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 + '/../',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment