From b6c54d3c4d1965681bfc906a2f6cd8ecc45c1301 Mon Sep 17 00:00:00 2001 From: Mattia Primavera Date: Tue, 20 Oct 2020 11:02:30 +0200 Subject: [PATCH] revert(cli): revert yarn explicitly call prestart hook Keep hooks pre/post implicit calls. This will work with yarn 1.x only fix #3259 Signed-off-by: Mattia Primavera --- packages/cli/generators/project/templates/package.json.ejs | 3 +-- .../cli/generators/project/templates/package.plain.json.ejs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/cli/generators/project/templates/package.json.ejs b/packages/cli/generators/project/templates/package.json.ejs index d58f601e6017..acc1a5760570 100644 --- a/packages/cli/generators/project/templates/package.json.ejs +++ b/packages/cli/generators/project/templates/package.json.ejs @@ -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" }, diff --git a/packages/cli/generators/project/templates/package.plain.json.ejs b/packages/cli/generators/project/templates/package.plain.json.ejs index 3c90341d5ba8..445acf2ed33f 100644 --- a/packages/cli/generators/project/templates/package.plain.json.ejs +++ b/packages/cli/generators/project/templates/package.plain.json.ejs @@ -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"