Skip to content

[BUG] postpack script runs BEFORE the tarball has been generated and moved to its final destination. #2220

Description

@palavrov

Current Behavior:

postpack script runs BEFORE the tarball has been generated and moved to its final destination.

Expected Behavior:

As is in the documentation:

Runs AFTER the tarball has been generated and moved to its final destination.

Steps To Reproduce:

copy this package.json to an empty directory

{
  "name": "postpacktest",
  "version": "1.0.0",
  "scripts": {
    "prepack": "rm postpacktest-1.0.0.tgz",
    "postpack": "ls -al"
  }
}

run:
npm pack
and then
ls -al

Environment:

*nix

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 1high priority issueRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions