I have a script in package.json
that runs as expected when using the standard .env
file.
"scripts": {
"commands": "ts-node-dev --files deploy-commands.ts",
},
but when I try specify a different .env file (.env.prod
)
"scripts": {
"commands": "dotenv -e .env.prod ts-node-dev --files deploy-commands.ts",
},
I get the error:
ts-node-dev: no script to run provided