From ef8f01f4ae359cf09a6d3ac094ef2f9965acd68f Mon Sep 17 00:00:00 2001 From: codejedi365 Date: Thu, 13 May 2021 23:13:41 -0400 Subject: [PATCH] codejedi365-fix-package-lock > change to prepare \### Rationale As stated in npm install instructions, prepublish is deprecated as of `NPM@v5` and should be changed to prepare for build instructions. The browserify bundle is a build instruction rather than a prepublishOnly feature so changed the run-script to prepare. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3bd7432..b15b852 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "lint": "eslint .", "prettier:check": "prettier --check '**/*.{js,css,md}'", "prettier:write": "prettier --write '**/*.{js,css,md}'", - "prepublish": "npm run bundle", + "prepare": "npm run bundle", "prepublishOnly": "mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin", "test": "mocha lib/**/*.test.js", "test:coverage": "nyc --reporter=lcov --reporter=text --all npm test -- --reporter dot",