Skip to content

Commit

Permalink
[meta] only run the build script in publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 22, 2021
1 parent 7276123 commit 797e492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -12,7 +12,7 @@
"./implementation": "./implementation.browser.js"
},
"scripts": {
"prepublish": "safe-publish-latest && npm run --silent build",
"prepublish": "safe-publish-latest && (not-in-publish || npm run --silent build)",
"pretest": "npm run lint",
"test": "npm run --silent tests-only",
"posttest": "npx aud --production",
Expand Down Expand Up @@ -51,6 +51,7 @@
"browserify": "^16.5.2",
"eslint": "^7.20.0",
"for-each": "^0.3.3",
"in-publish": "^2.0.1",
"is": "^3.3.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
Expand Down

0 comments on commit 797e492

Please sign in to comment.