I am trying to pass a command line (specifically not in version control) option to my main index.js
script, which does some stuff based on a specific S3 bucket.
In my package.json:
"scripts": {
"start": "bucket_name=${bucket_name:=null} node babel.runtime.js"
},
And via command line:
npm start -- --bucket_name="test"
But bucket_name
keeps coming back as null, so the var isn't being passed correctly. I assume this is something simple, but I can't figure out what I'm doing wrong.