1.1.0 • Published 4 years ago

cross-env-var v1.1.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

cross-env-var

Reference environment variables in npm scripts

Usage

I use this in my npm scripts:

{
  "config": {
    "Configuration": "Debug"
  },
  "scripts": {
    "msbuild": "cross-env-var msbuild /p:Configuration=$npm_config_configuration"
  }
}

The command that is executed when running npm run msbuild:

msbuild /p:Configuration=Debug

The command that is executed when running npm run msbuild --Configuration=Release:

msbuild /p:Configuration=Release
1.1.0

4 years ago

1.0.0

4 years ago