Closed transitive-bullshit closed 7 months ago
Can you open an issue or link to an existing npm issue about this as a code comment? I would like to be able to eventually remove that workaround.
Looks like this is the corresponding issue to track for npm/cli
https://github.com/npm/cli/issues/7354
as a code comment
Ahhh missed that. Done 😃
Random sidenote: Reminds the that this would be awesome: https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1858#issuecomment-1379476814
Fixes #740
Anyone using
np
with newer versions of Node.js andnpm >= 10
is probably running into this issue. This PR just sanitizes thestdout
fromnpm pack
to look for the first[
character to start parsing the output JSON array, which should be backwards compatible with previous functionality.