Uh oh!
There was an error while loading. Please reload this page.
feat/publish - #1000
Conversation
0b58a78 to
3a0f260CompareUh oh!
There was an error while loading. Please reload this page.
4d8543b to
529111dCompare
isaacs
left a comment
There was a problem hiding this comment.
Only some pretty minor changes requested. This is looking great!
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| }) | ||
| .tap(() => lifecycle(pkg, 'postpack', dir)) | ||
| const tarballs = await Promise.all(args.map((arg) => pack_(arg))) |
There was a problem hiding this comment.
Since there's an await here, any errors will throw. Probably want to wrap this whole thing in a try { ... } catch (er) { cb(er) }
Uh oh!
There was an error while loading. Please reload this page.
| defaultTag: 'latest', | ||
| json: false, | ||
| tmp: {}, | ||
| ...npm.flatOptions |
There was a problem hiding this comment.
The aliasing is weird here, does libnpmpublish or libnpmpack do something with those?
Any reason you can't just pass npm.flatOptions in as the opts?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
b9d0625 to
fbf0f01Compare
isaacs
left a comment
There was a problem hiding this comment.
Just need to put the usage/completion on the exported function. Otherwise looks great!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
isaacs
commented
Mar 31, 2020
💯 |
This PR refactors both
npm publishandnpm pack. Both now uselibnpmpackto pack tarballs andnpm publishno longer needs to write on disk to display to console the tarball contents.