Skip to content

Commit

Permalink
Use prepare script (#1751)
Browse files Browse the repository at this point in the history
Using `prepare` step to build ensures that dependency can be installed directly from git repository
https://docs.npmjs.com/misc/scripts#prepublish-and-prepare

`prepublishOnly` is run **after** `prepare` script so this should have no effect.

Co-authored-by: Jos de Jong <[email protected]>
  • Loading branch information
cinderblock and josdejong authored Mar 2, 2020
1 parent 033a6ba commit 7fc4606
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 @@ -208,7 +208,8 @@
"test:browser": "karma start test/browser-test-config/local-karma.js",
"test:browserstack": "karma start test/browser-test-config/browserstack-karma.js",
"coverage": "nyc --reporter=lcov --reporter=text-summary mocha test/unit-tests --recursive --require @babel/register && echo \"\nDetailed coverage report is available at ./coverage/lcov-report/index.html\"",
"prepublishOnly": "npm run build-and-test"
"prepublishOnly": "npm run test:src && npm run test:generated && npm run test:node && npm run lint",
"prepare": "npm run build"
},
"bin": {
"mathjs": "./bin/cli.js"
Expand Down

0 comments on commit 7fc4606

Please sign in to comment.