Skip to content

Commit

Permalink
revert(cli): revert yarn explicitly call prestart hook
Browse files Browse the repository at this point in the history
Keep hooks pre/post implicit calls. This will work with yarn 1.x only

fix loopbackio#3259

Signed-off-by: Mattia Primavera <[email protected]>
  • Loading branch information
MattiaPrimavera committed Oct 20, 2020
1 parent 3e60be1 commit b6c54d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/cli/generators/project/templates/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,11 @@
<% if (packageManager === 'yarn') { -%>
"rebuild": "yarn run clean && yarn run build",
"prestart": "yarn run rebuild",
"start": "yarn run prestart && node -r source-map-support/register .",
<% } else { -%>
"rebuild": "npm run clean && npm run build",
"prestart": "npm run rebuild",
"start": "node -r source-map-support/register .",
<% } -%>
"start": "node -r source-map-support/register .",
<% } -%>
"clean": "lb-clean dist *.tsbuildinfo .eslintcache"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,11 @@
<% if (packageManager === 'yarn') { -%>
"rebuild": "yarn run clean && yarn run build",
"prestart": "yarn run rebuild",
"start": "yarn run prestart && node -r source-map-support/register .",
<% } else { -%>
"rebuild": "npm run clean && npm run build",
"prestart": "npm run rebuild",
"start": "node -r source-map-support/register .",
<% } -%>
"start": "node -r source-map-support/register .",
<% } -%>
<% if (packageManager === 'yarn') { -%>
"prepare": "yarn run build"
Expand Down

0 comments on commit b6c54d3

Please sign in to comment.