From f55d9bd4d29a4337fe90c087a3cf048455f2c85c Mon Sep 17 00:00:00 2001 From: shimataro Date: Mon, 27 Jan 2020 06:03:22 +0900 Subject: [PATCH] Bugfix/node modules (#100) * * clean node_modules before "npm ci --only=production" in order not to add ".bin" directory * * update CHANGELOG --- CHANGELOG.md | 6 +++++- scripts/create-release-branch.sh | 1 + scripts/rebuild.sh | 1 + scripts/update-dependencies.sh | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc4e40c..d1bcb80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +* `node_modules/.bin` error (thanks [@george3447](https://github.com/george3447)) + ## [1.6.3] - 2020-01-27 ### Others -* add FAQ +* add Q&A ## [1.6.2] - 2020-01-25 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"