insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm publish triggers npm run build, but that build is not published.

zzxoto opened this issue · comments

I see that npm publish also does npm run build courtesy to following script in package.json file "prepublishOnly": "npm run build"

But here is the deal, if I had not explicitly npm run build before npm publish, then the build would not get published to npm.

So, either the "prepublishOnly": "npm run build" script is meaningless, or this the bug that has been overlooked.

nwb 0.23.0
npm 4.6.0
node 10.16.0
window 10 x64