deps: Compile deps into single file with ncc (#88)

* deps: Compile deps into single file with ncc
* ci: update husky setting

Close #67
This commit is contained in:
Shohei Ueda
2019-11-17 20:39:17 +09:00
committed by GitHub
parent 007cfe211d
commit 3ab6d78f1e
189 changed files with 5193 additions and 14233 deletions

View File

@@ -7,7 +7,7 @@
"lint": "eslint ./src/**/*.ts",
"lint:fix": "eslint --fix ./src/**/*.ts",
"test": "jest --coverage --verbose",
"build": "npm prune --production",
"build": "ncc build ./src/index.ts -o lib",
"tsc": "tsc",
"format": "prettier --write **/*.ts",
"format:check": "prettier --check **/*.ts"
@@ -16,7 +16,7 @@
"skipCI": true,
"hooks": {
"pre-commit": "lint-staged",
"post-commit": "npm run tsc && npm run build && echo '⚠️ Do not forget to Commit and Push ./lib and ./node_modules'"
"post-commit": "npm run build && echo '⚠️ Do not forget to Commit and Push ./lib/index.js'"
}
},
"lint-staged": {
@@ -56,6 +56,7 @@
"@types/jest": "^24.0.23",
"@types/node": "^12.12.7",
"@typescript-eslint/parser": "^2.7.0",
"@zeit/ncc": "^0.20.5",
"eslint": "^6.6.0",
"husky": "^3.0.9",
"jest": "^24.9.0",