You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating an NPM package and when somebody installs my package I want the install lifecycle script to run - which it does.
However the my package needs to know a few things about the downstream package that is installing it IE it's name and what directory it's in.
The documents explain how to get information about my own package via it's package.json file but not how to get information about the package that is installing it.
Is this possible and how would I do this using an NPM lifecycle script?
The text was updated successfully, but these errors were encountered:
I have read through the following document but it is missing a specific condition: https://docs.npmjs.com/cli/v7/using-npm/scripts#environment
I am creating an NPM package and when somebody installs my package I want the install lifecycle script to run - which it does.
However the my package needs to know a few things about the downstream package that is installing it IE it's name and what directory it's in.
The documents explain how to get information about my own package via it's package.json file but not how to get information about the package that is installing it.
Is this possible and how would I do this using an NPM lifecycle script?
The text was updated successfully, but these errors were encountered: