From 636adf790b84b96a2e63962c847d40f78f88f5a8 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..6684fd2b7119 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 run update-package-locks && 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",