DEV Community

Discussion on: Testing npm packages against multiple versions of their peer dependency

Collapse
 
anduser96 profile image
Andrei Gatej

Very interesting! Thanks for sharing!

I think an alternative to cross-env(for unix systems at least) is to use the “env” command.

For example

env $(cat dev.env) command$
Collapse
 
joshx profile image
Jonas Scheffner

Thanks for the tip. I chose cross-env to make it easier for windows users to contribute. If it's a seperate script that runs only in the pipeline, the env command seems like a legit way to do it.