Closed stevus closed 8 years ago
Put this in your package.json which will auto-compile/transpile your code before publishing to NPM:
package.json
"scripts": { "compile": "babel -d lib/ src/", "prepublish": "npm run compile" },
This way, I don't need to transpile your module to use it in my project. You would just publish as normal:
npm publish ./
I think I'm going to close this out. I only really want to support Node 4.x going forward, since that has ES6 support.
Put this in your
package.json
which will auto-compile/transpile your code before publishing to NPM:This way, I don't need to transpile your module to use it in my project. You would just publish as normal: