简体   繁体   中英

How i can add AWS env varaible into my package json

I was trying to make my package json script more dynamic and based on which env the e2e test is executed in pipeline it will trigger the relevant conf file

"protractor": "xvfb-run --server-args='-screen 0 1920x1080x24' protractor src/test/tests/conf.js"

i want to replace conf file name with something like process.env["NODE_ENV"]

so if it was development for example code will be like

"protractor": "xvfb-run --server-args='-screen 0 1920x1080x24' protractor src/test/tests/development.js"

solved by handling the environment from Config file itself

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM