Skip to content

[BUG] How to settig, npm publish will include the lock file #5582

@alanhe421

Description

@alanhe421

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

I don't know the reason that package publish contains the package.lock file.

  1. my node version is v16.
  2. my package.json files property setting include package-lock.json
  3. Of course, I know that it is right not to contain lock-file, but the current problem is that I find that sometimes it is carried and sometimes it is not. I want to know if it can be set to carry it, or it will not take effect regardless of whether the setting is set or not. is it a bug?

Expected Behavior

Doesn't carry a lock file anyway, or can control it yourself, not weirdly random.

Steps To Reproduce

I can't reproduce it effectively, it's more like random

Environment

  • npm: v8
  • Node.js: v16
  • OS Name: Linux/Mac

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