Skip to content

Commit

Permalink
Merge pull request #418 from kristerkari/npm-scripts
Browse files Browse the repository at this point in the history
Change prepublish to prepublishOnly.
  • Loading branch information
kristerkari committed Nov 21, 2019
2 parents bc535d2 + 8e4233f commit 8349f28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -32,6 +32,9 @@ jobs:

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Run jest tests
run: npm run jest -- --runInBand
Expand Down
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -163,14 +163,14 @@
"build": "babel src --out-dir dist",
"lint": "eslint . --ignore-path .gitignore",
"prettify": "prettier --write \"src/**/*.js\"",
"prepublish": "npm run build",
"prepublishOnly": "npm run build",
"pretest": "npm run lint",
"release": "npmpub",
"jest": "jest",
"test": "jest --coverage",
"watch": "jest --watch",
"test-rule": "jest",
"test-util": "jest"
"test": "npm run jest -- --coverage",
"watch": "npm run jest -- --watch",
"test-rule": "npm run jest",
"test-util": "npm run jest"
},
"lint-staged": {
"**/*.{js,json}": [
Expand Down

0 comments on commit 8349f28

Please sign in to comment.