Closed nrako closed 8 years ago
napa doesn't seems to use the correct package name when using the following format:
{ "scripts": { "install": "napa" }, "napa": { "srcpubnub": "pubnub/javascript#3.7.2" } }
napa create node_modules/srcpubnub/package.json with this content:
node_modules/srcpubnub/package.json
{ "name": "pubnub", "version": "0.0.0", "description": "", "_napaResolved": "https://github.com/pubnub/javascript/archive/3.7.2.tar.gz" }
While I believe the package name should be srcpubnub.
srcpubnub
Else npm shrinkwrap will complain about it
npm shrinkwrap
❯ npm shrinkwrap npm ERR! Error: Problems were encountered npm ERR! Please correct and try again. npm ERR! invalid: pubnub@0.0.0 /Users/nrako/project...name/node_modules/srcpubnub
Manually editing the package name, fix that. Of course srcpubnub has to be added to the optionalDependencies.
optionalDependencies
Am I correct? The package name should reflect the folder name/napa config, right?
Appears to have been fixed.. closing.
napa doesn't seems to use the correct package name when using the following format:
napa create
node_modules/srcpubnub/package.json
with this content:While I believe the package name should be
srcpubnub
.Else
npm shrinkwrap
will complain about itManually editing the package name, fix that. Of course
srcpubnub
has to be added to theoptionalDependencies
.Am I correct? The package name should reflect the folder name/napa config, right?