Skip to content

[BUG] npx npm-packlist broken #164

@GeoffreyEmerson

Description

@GeoffreyEmerson

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Official npm docs (here) recommend using npx npm-packlist.

To see what will be included in your package, run npx npm-packlist.

I believe that feature was broken in #128 with the removal of the "bin" property from "package.json".

Current behavior is:

$ npx npm-packlist
npm ERR! could not determine executable to run

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/username/.npm/_logs/2023-03-19T00_30_14_201Z-debug-0.log

@nlf noted in the PR that "the npm-packlist bin has also been removed." but did not explain why.

Expected Behavior

npx npm-packlist should a list of files that will be included during npm publish.

Steps To Reproduce

  1. In a repo of a project that is ready to be published to npm
  2. Execute on the command line npx npm-packlist

Environment

  • npm: 8.19.3
  • Node: 18.13.0
  • OS: macOS 13.2.1
  • platform: Macbook Pro
  • iTerm2
  • zsh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions