New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with .env files #41
Comments
Duplicate of #29 |
This is weird. It works without even using the But in the package.json scripts it will never work no matter where I put the --dot option.
Sadly because of this the package becomes useless to me |
Doesn't work at all in package.json. am I doing something wrong? Works on cli normally and with NPX: Running at the root of the project. Works:
does not work: "scripts": {
"sync": "cpy 'build/data/clientes.json' 'build/data/transmissao.json' 'data' --flat"
}, I'm not even using
The files exist in the specified structure, I'm not sure what is wrong with package.json scripts? |
I am using version "cpy-cli": "^4.2.0",
I am trying to copy ".env.qa" contents to ".env" file in the same directory structure but its not working as intended. Instead of writing the contents, it creates a "/.env/.env.qa" directory & file.
I have tried the --dot and --flat flags but that doesn't solve the problem.
cpy .env.qa .env --dot --flat
I wanted to copy my environment variables from .env.qa or .env.production to .env file so it can be used with .dotenv package.
The text was updated successfully, but these errors were encountered: