Skip to content

[BUG] dist files were not packed #4813

@aladdin-add

Description

@aladdin-add

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

package.json :

{
"name": "xxx",
"files": ["./dist/"]
}

running npm publish, the dist will not be packed.

Expected Behavior

the dist should be packed.

I just found a workaround: "files": ["dist/"]

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • npm: 8.5.5
  • Node.js: v16.15.0
  • OS Name: macos
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions