node-env-run icon indicating copy to clipboard operation
node-env-run copied to clipboard

Runs "start" command instead of what I provide

Open wkaskie opened this issue 4 years ago • 1 comments

I have a package.json set up with a "server" script. Running nodenv server triggers start instead of server/index.js.

The setup is the generic create-react-app folder. A subfolder added named server with an index.js file inside. The index.js is generic test Express app. Package.json has only been modified to include the script to run nodenv.

wkaskie avatar Jul 22 '20 15:07 wkaskie

Can you try calling explicitly nodenv server/index.js or alternatively set your "main" entry in the package.json to server/index.js?

dkundel avatar Jul 30 '20 01:07 dkundel