How to test an `npm publish` result, without actually publishing to NPM?

后端 未结 4 875
暖寄归人
暖寄归人 2021-01-30 08:53

One common problem I have, is that sometimes my .npmignore file is too aggressive, and I ignore files that I actually will to include in the NPM tarball.

My question is

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 09:51

    I see too many complicated answers, but according to documentation, you just need to install your local package globally (because it will be installed on different directory)

    Go to your module root directory and do

    npm install . -g
    

提交回复
热议问题