thlorenz / irish-pub

Feel like npm is drunk or maybe you are and want to verify what gets published via `npm publish`? irish-pub has you covered.
MIT License
69 stars 8 forks source link

Output from prepublish script is read as filename(s) #10

Open mk-pmb opened 7 years ago

mk-pmb commented 7 years ago
npm will publish amdldr16-pmb@0.1.0 as mk-pmb, including the following files:

{ Error: ENOENT: no such file or directory, open '/[…]/amdldr16-pmb/> amdldr16-pmb@0.1.0 prepublish /[…]/amdldr16-pmb
> build/bake.sh

I: Gonna bake dist/3p-base.js
I: Finished dist/[…]
I: Gonna bake dist/3p-tame.js
I: Finished dist/[…]
I: Gonna bake dist/3p-cfg.js
I: Finished dist/[…]
I: Gonna bake dist/al.js
amdldr16-pmb-0.1.0.tgz'
    at Error (native)
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/[…]/amdldr16-pmb/> amdldr16-pmb@0.1.0 prepublish /[…]/amdldr16-pmb\n> build/bake.sh\n\nI: Gonna bake dist/3p-base.js\nI: Finished dist/[…]\nI: Gonna bake dist/3p-tame.js\nI: Finished dist/[…]\nI: Gonna bake dist/3p-cfg.js\nI: Finished dist/[…]\nI: Gonna bake dist/al.js\namdldr16-pmb-0.1.0.tgz' }
chinesedfan commented 7 years ago

Right. It is better to determine the tar file name by meta.