Skip to content

Commit

Permalink
refactor(package.json): move optionalDependencies to scripts
Browse files Browse the repository at this point in the history
把不常用且依赖特定构建环境的两个可选库移到脚本中安装,不阻挡正常安装使用
  • Loading branch information
RobinzZH committed May 31, 2018
1 parent f9c8333 commit 3961ec2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "TSW",
"version": "1.1.1",
"version": "1.1.2",
"description": "A Node.js infrastructure which is designed for improving the efficiency of locating problems, providing multiple functions for front-end developers",
"scripts": {
"lint": "eslint examples bin test --fix",
"precommit": "lint-staged",
"commitmsg": "commitlint -e $GIT_PARAMS",
"test": "mocha --recursive test/bin",
"coverage": "nyc --reporter=lcov --reporter=text npm test && codecov"
"coverage": "nyc --reporter=lcov --reporter=text npm test && codecov",
"optional": "npm i heapdump && npm i v8-profiler"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -36,10 +37,6 @@
"plug": "file:./bin/plug",
"sinon": "^4.1.2"
},
"optionalDependencies": {
"heapdump": "^0.3.9",
"v8-profiler": "^5.7.0"
},
"keywords": [
"TSW"
],
Expand Down

0 comments on commit 3961ec2

Please sign in to comment.