Skip to content

Commit

Permalink
build: build is now done before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Aug 9, 2019
1 parent deea803 commit ae6a160
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@
"main": "dist/index.js",
"module": "dist/index.mjs",
"scripts": {
"prebuild": "rimraf dist",
"build": "rollup -c",
"generate-eslintrc": "ts-node -P tsconfig.tools.json scripts/generate-eslintrc.ts",
"prelint": "yarn generate-eslintrc",
"lint": "eslint './**/*.ts' --ext .ts",
"prepublishOnly": "yarn lint && yarn test",
"postpublish": "git push --tags && auto-changelog -t keepachangelog && git add CHANGELOG.md && git commit -m \"docs(changelog): update for v$npm_package_version\" && git push",
"report-coverage": "codecov -f coverage/lcov.info",
"test": "jest"
"test": "jest",
"preversion": "yarn build",
"postversion": "yarn publish --new-version $npm_package_version"
},
"husky": {
"hooks": {
Expand All @@ -46,6 +49,9 @@
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"rimraf": "^2.6.3"
},
"devDependencies": {
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
Expand Down

0 comments on commit ae6a160

Please sign in to comment.