Skip to content

Issue with Dependency Packages on publish #731

@ganeshsacharya

Description

@ganeshsacharya

Description

Assume there is a npm package which can only work for another package(so as to say a helper package), also it has a postinstall script which checks the parent package for something. In such cases on command np the workflow fails as the postinstall will never succeed.

Steps to reproduce

  1. Go to @njs2/sql
  2. check its postinstall script which np will find and execute on Step 4 (Installing dependencies using npm)
  3. It will fail

Expected behavior

Why not have an option to not execute postinstall script or any script which is not really needed for np to go through?

Environment

np - 7.7.0
Node.js - any
npm - any
Git - any
OS - any

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