use read-pkg-up module to get version from package.json
Showing
... | ... | @@ -15,7 +15,7 @@ |
}, | ||
"scripts": { | ||
"ts-node": "ts-node", | ||
"dist": "npm run clean && tsc && jq \"del (.files)\" < package.json > dist/package.json && shx cp src/puppet-web/*.js dist/src/puppet-web/", | ||
"dist": "npm run clean && tsc && shx cp src/puppet-web/*.js dist/src/puppet-web/", | ||
"doc": "npm run dist && echo '# Wechaty v'$(jq -r .version package.json)' Documentation\n' > docs/index.md && jsdoc2md dist/src/{wechaty,room,contact,friend-request,message}.js dist/src/puppet-web/friend-request.js>> docs/index.md", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"changelog": "github_changelog_generator -u chatie -p wechaty && sed -i'.bak' /greenkeeper/d CHANGELOG.md && ts-node script/sort-contributiveness.ts < CHANGELOG.md > CHANGELOG.new.md 2>/dev/null && cat CHANGELOG.md >> CHANGELOG.new.md && mv CHANGELOG.new.md CHANGELOG.md", | ||
... | ... | @@ -96,6 +96,7 @@ |
"mime": "^2.0.3", | ||
"puppeteer": "^0.12.0", | ||
"raven": "^2.2.1", | ||
"read-pkg-up": "^2.0.0", | ||
"request": "^2.83.0", | ||
"retry-promise": "^1.0.0", | ||
"rxjs": "^5.4.3", | ||
... | ... | @@ -113,6 +114,7 @@ |
"@types/mime": "^2.0.0", | ||
"@types/puppeteer": "^0.12.0", | ||
"@types/raven": "^2.1.2", | ||
"@types/read-pkg-up": "^2.0.0", | ||
"@types/request": "^2.0.4", | ||
"@types/sinon": "^2.3.5", | ||
"@types/xml2js": "^0.4.0", | ||
... | ... |
想要评论请 注册 或 登录