chore: Add task to autorun npm ci [skip ci] (#128)

This commit is contained in:
Shohei Ueda 2020-01-18 00:52:16 +09:00 committed by GitHub
parent 7dc067063b
commit 4331a62207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -10,12 +10,15 @@
"build": "ncc build ./src/index.ts -o lib", "build": "ncc build ./src/index.ts -o lib",
"tsc": "tsc", "tsc": "tsc",
"format": "prettier --write **/*.ts", "format": "prettier --write **/*.ts",
"format:check": "prettier --check **/*.ts" "format:check": "prettier --check **/*.ts",
"release": "standard-version",
"update-deps": "(git diff 'HEAD@{1}' --name-only | grep 'package-lock.json' > /dev/null) && npm ci || :"
}, },
"husky": { "husky": {
"skipCI": true, "skipCI": true,
"hooks": { "hooks": {
"pre-commit": "lint-staged" "pre-commit": "lint-staged",
"post-merge": "npm run update-deps; git remote prune origin"
} }
}, },
"lint-staged": { "lint-staged": {