Skip to content

Commit 4d00031

Browse files
Vadim FrolovVadim Frolov
authored andcommitted
Use NPM prepublishOnly script instead of prepublish
* Prepublish script runs on local npm installations as well. In our case this script checks the validity of python code. But this code is most likely not to exist at that time. PrepublishOnly event is used on `npm publish` only.
1 parent 567d253 commit 4d00031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

{{cookiecutter.project_shortname}}/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"start": "webpack-serve --config ./webpack.serve.config.js --open",
1818
"validate-init": "python _validate_init.py",
19-
"prepublish": "npm run validate-init",
19+
"prepublishOnly": "npm run validate-init",
2020
"build:js": "webpack --mode production",
2121
"build:py_and_r": "dash-generate-components ./src/lib/components {{ cookiecutter.project_shortname }} -p package-info.json --r-prefix '{{ cookiecutter.r_prefix }}'",
2222
"build:py_and_r-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py_and_r)",

0 commit comments

Comments
 (0)