From 8e8c2b40f905cec73c1006b7517432b857fb826a Mon Sep 17 00:00:00 2001 From: RyotaK <49341894+Ry0taK@users.noreply.github.com> Date: Sun, 5 Mar 2023 14:33:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20pnpm=20dev=E6=99=82=E3=81=AB=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=8C=E7=A9=BA=E3=81=AA=E3=82=89?= =?UTF-8?q?=E3=83=90=E3=83=83=E3=82=AF=E3=82=A8=E3=83=B3=E3=83=89=E3=81=AE?= =?UTF-8?q?=E8=B5=B7=E5=8B=95=E3=82=92=E5=BE=85=E3=81=A4=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=20(#10210)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/dev.js | 5 +++-- 1 file 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 + '/../',