From 414679afac254712039ae969e54b1de35866cc76 Mon Sep 17 00:00:00 2001 From: shimataro Date: Mon, 27 Jan 2020 05:57:37 +0900 Subject: [PATCH] * clean node_modules before "npm ci --only=production" in order not to add ".bin" directory --- scripts/create-release-branch.sh | 1 + scripts/rebuild.sh | 1 + scripts/update-dependencies.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/create-release-branch.sh b/scripts/create-release-branch.sh index b1cffcf..b661d25 100755 --- a/scripts/create-release-branch.sh +++ b/scripts/create-release-branch.sh @@ -119,6 +119,7 @@ function update_package_version() { } function update_dependencies_version() { + rm -rf node_modules npm ci npm run check-updates -- -u } diff --git a/scripts/rebuild.sh b/scripts/rebuild.sh index 8301938..b2c853a 100755 --- a/scripts/rebuild.sh +++ b/scripts/rebuild.sh @@ -7,5 +7,6 @@ npm i npm run build npm run verify +rm -rf node_modules npm ci --only=production git add node_modules package-lock.json lib diff --git a/scripts/update-dependencies.sh b/scripts/update-dependencies.sh index afdd77e..1463fdb 100755 --- a/scripts/update-dependencies.sh +++ b/scripts/update-dependencies.sh @@ -25,6 +25,7 @@ npm run build npm run verify # commit +rm -rf node_modules npm ci --only=production git add package.json package-lock.json node_modules git commit -m "update dependencies"