From 5b54d6ea06414a3a75d2542ad878cb7232a6d05f Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 30 Sep 2019 14:33:33 -0700 Subject: [PATCH] chore: update build scripts to update package-lock files during release Workaround for https://github.com/lerna/lerna/issues/1998 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 56184cdbfe45..b6ad63fa8a93 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "update-template-deps": "node bin/update-template-deps -f", "update-all-deps": "npm update && lerna exec -- npm update && npm run update-package-locks", "sync-dev-deps": "node bin/sync-dev-deps", - "version": "npm run update-template-deps", + "version": "npm run update-template-deps && npm install --package-lock-only && git add \"**/package-lock.json\"", "outdated": "npm outdated --depth 0 && lerna exec --no-bail \"npm outdated --depth 0\"", "tsdocs": "lerna run --scope @loopback/tsdocs build:tsdocs", "coverage:ci": "node packages/build/bin/run-nyc report --reporter=text-lcov | coveralls", @@ -52,7 +52,7 @@ "clean": "lerna run clean && node packages/build/bin/run-clean \"packages/*/dist\" \"extensions/*/dist\" \"examples/*/dist\" \"benchmark/dist\"", "clean:lerna": "lerna clean", "build": "node bin/run-lerna run build", - "build:full": "npm run clean:lerna && npm install && npm run clean && npm run build", + "build:full": "lerna clean && node packages/build/bin/run-clean \"node_modules\" && npm install && npm run clean && npm run build", "pretest": "npm run clean && npm run build", "test": "node packages/build/bin/run-nyc npm run mocha --scripts-prepend-node-path", "test:ci": "node packages/build/bin/run-nyc npm run mocha --scripts-prepend-node-path",