With the following folder structure:
mypackage/
index.js
package.json
mypackage.json
When I run node mypackage
, node quits without running the program, because of mypackage.json
. If I rename it to mypackage.jsonx
, then the program executes as expected.
I really want this file to be named mypackage.json
, and I want to run program with a package name without specifying path to index.js
, because I want to use an advantage of exports and different entrypoints.
I've tried to specify node ./mypackage
and node ./mypackage/
and node mypackage/
- it still "runs" the json.
Comments
Post a Comment