node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

prepublish-bug

prepublish-bug

The issue is that the files generated by prepublishOnly script (it works with prepublish though) are not published during npm publish.

Steps to reproduce:

  • clone the project
  • execute npm publish in the project directory
  • do npm i prepublish-bug in some other directory
  • check the node_modules/prepublish-bug folder:

Expected: lib/index.js file is there Actual: lib folder is missing

Note: please unpublish the module after test, so that other people can publish that again