Hacker News new | ask | show | jobs
by franciscop 3433 days ago
That cannot work at all!

See inside /bin/parse-server:

    require("../lib/cli/parse-server");
The same with the package.json, it points to /lib/index.js.

However there is no /lib folder, apparently its name is /src. So there is basically no possible way that is even able to run. How is this possible? Either someone linked /src to /lib (doesn't make sense) or they changed the name of the folder and didn't change anything else.

1 comments

Files in src/ are run through Babel and output to lib/ as a prepublish step. The version that you download from NPM contains a lib/ directory.

https://github.com/ParsePlatform/parse-server/blob/master/pa...

That makes sense, I would have put them in /dist though