Skip to content

Commit

Permalink
only run prepublish script on actual npm publish (#3493)
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner authored Oct 31, 2016
1 parent c2476fc commit 8127e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"github-slugger": "^1.1.1",
"gl": "^4.0.1",
"highlight.js": "9.3.0",
"in-publish": "^2.0.0",
"jsdom": "^9.4.2",
"lodash.template": "^4.4.0",
"mapbox-gl-test-suite": "mapbox/mapbox-gl-test-suite#e3c236991ca1c6e3bd07491284b3b216d03cd285",
Expand Down Expand Up @@ -113,6 +114,6 @@
"test-render": "node test/render.test.js",
"test-query": "node test/query.test.js",
"test-cov": "nyc --reporter=text-summary --cache run-s test-unit test-render test-query",
"prepublish": "run-s build-dev build-min"
"prepublish": "in-publish && run-s build-dev build-min || not-in-publish"
}
}

0 comments on commit 8127e17

Please sign in to comment.