Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gaykey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kio!
gaykey
Commits
8e8c2b40
Unverified
Commit
8e8c2b40
authored
2 years ago
by
RyotaK
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: pnpm dev時にファイルが空ならバックエンドの起動を待つように (#10210)
parent
ad43011f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/dev.js
+3
-2
3 additions, 2 deletions
scripts/dev.js
with
3 additions
and
2 deletions
scripts/dev.js
+
3
−
2
View file @
8e8c2b40
...
...
@@ -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
+
'
/../
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment