Skip to content

npm running _postinstall!?!??! #22

Closed
@djMax

Description

@djMax

I have the following package.json

  "scripts": {
    "prepack": "pinst --disable",
    "postpack": "pinst --enable",
    "postinstall": "run-my-thing"
  },

When I publish this package, as expected, the tarball contains:

  "scripts": {
    "prepack": "pinst --disable",
    "postpack": "pinst --enable",
    "_postinstall": "run-my-thing"
  },

But, shockingly, when I npx this module (or npm i in a blank project), it tries to run run-my-thing. What could POSSIBLY be causing this? I am so very confused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions