Skip to content

Commit 7fc4606

Browse files
Use prepare script (#1751)
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 <wjosdejong@gmail.com>
1 parent 033a6ba commit 7fc4606

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@
208208
"test:browser": "karma start test/browser-test-config/local-karma.js",
209209
"test:browserstack": "karma start test/browser-test-config/browserstack-karma.js",
210210
"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\"",
211-
"prepublishOnly": "npm run build-and-test"
211+
"prepublishOnly": "npm run test:src && npm run test:generated && npm run test:node && npm run lint",
212+
"prepare": "npm run build"
212213
},
213214
"bin": {
214215
"mathjs": "./bin/cli.js"

0 commit comments

Comments
 (0)