Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Added support to read arguments from npm env variables #47

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

hokiedsp
Copy link

This PR adds

argparse.env('npm_config_');

to grab the npm config env variables. This feature mimics node-gyp's (implemented around Line 150 in lib/node-gyp.js), and has been tested with electron runtime setup:

https://electronjs.org/docs/tutorial/using-native-node-modules

A couple other related changes:

  • dist-url/disturl alias is added
  • double quotes around the values of NODEJS_URL and NODEJS_NAME are removed as the quotation marks remain in the defined strings in CMake.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant