Skip to content

Commit

Permalink
Fix package.json warning about prepublish
Browse files Browse the repository at this point in the history
$ npm publish
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
  • Loading branch information
leif81 committed Nov 14, 2021
1 parent 1ee75b7 commit 814c867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"lint": "eslint \"src/**/*.js\"",
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "uglifyjs src/dis/*.js src/disSupporting/*.js -o dis6.min.js && uglifyjs src/dis7/*.js src/disSupporting/*.js -o dis7.min.js"
"prepare": "uglifyjs src/dis/*.js src/disSupporting/*.js -o dis6.min.js && uglifyjs src/dis7/*.js src/disSupporting/*.js -o dis7.min.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 814c867

Please sign in to comment.