4 ms·
I've always thought that we should publish our sources to NPM, then during the `npm install` phase, the sources would be compiled (if needed) to your project's
by Osiris 8y ago
I've always thought that we should publish our sources to NPM, then during the `npm install` phase, the sources would be compiled (if needed) to your project's settings.
- AgentME 8y agoThen you'd have to have your compiler (like typescript or babel) be dependencies instead of devDependencies.
- Osiris 8y agoThat's not exactly what I meant. I was thinking something along the lines of a more universal way for npm to serve up compatible code without the package publisher having to pre-compile everything to make it compatible with every possible usage scenario. I'm not exactly sure how that would work, but I think it's a bad idea to push all that to package publishers .
- gedy 8y agoThat's a cool idea, assuming you mean something like: npm install some-library -type umd and have npm server handle this automatically.