Skip to content

Instantly share code, notes, and snippets.

@tivac
Created July 19, 2019 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tivac/ed07e34aa9a39f0e275dc652c1551636 to your computer and use it in GitHub Desktop.
Save tivac/ed07e34aa9a39f0e275dc652c1551636 to your computer and use it in GitHub Desktop.
const debug = {
BUILD_TYPE : "debug",
}
const ci = {
...debug,
CI : "true",
};
module.exports = {
ci,
debug,
};

Repro Steps

  1. download a copy of this gist, unzip somewhere
  2. open cli to that folder
  3. npm install
  4. npx env-cmd -e ci echo "hi"

outputs:

Error: Invalid .rc file path.
    at Object.<anonymous> (C:\Users\tivac\Desktop\env-cmd-test\node_modules\env-cmd\dist\parse-rc-file.js:27:19)
    at Generator.throw (<anonymous>)
    at rejected (C:\Users\tivac\Desktop\env-cmd-test\node_modules\env-cmd\dist\parse-rc-file.js:5:65)
{
"name": "env-cmd-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"env-cmd": "^9.0.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment