Closed mickmcgrath13 closed 9 years ago
I don't understand, what does prepublish have to do with install?
idk. I run npm install, and a build runs if "prepublish" is there. Does scripts
run on npm install?
https://docs.npmjs.com/misc/scripts
prepublish: Run BEFORE the package is published. (Also run on local npm install without any arguments.)
Oh, I think it's fine that it does the build. It's something we do in several projects. The reason we created that is to make sure the build happens before publish.
lol @ https://github.com/npm/npm/issues/3059
..apparently "prepublish" running on npm install is kind of a big deal, and that's just the way it works.
Also, npm install --ignore-scripts
does the install the way I would expect, but I would think the general case for people should be clone, and npm install
... I wouldn't expect people to remember the --ignore-scripts
part, and without it, they'll get local file changes.
Yeah, we should gitignore the dist/
folder in master and only publish it in a tag by force adding.
closing in lieu of https://github.com/bitovi/syn/issues/106
The package.json file used to have:
With https://github.com/bitovi/syn/pull/100, I changed it to the following to remove duplicate scripts:
npm install
now does a build, and git sees modified local files. Should it do this, or should theprepublish
option be removed fromscripts
?