How to npm publish specific folder but as package root

后端 未结 10 1259
后悔当初
后悔当初 2020-12-13 01:10

I have a project that include a gulp task for building and packaging the sources and release in a directory called dist. My goal is publish it as a npm package,

10条回答
  •  自闭症患者
    2020-12-13 01:46

    option 1: Navigate to the folder and execute "npm publish ." command

    option 2: Run npm publish /path/directory

提交回复
热议问题