Closed whmountains closed 7 years ago
@geekjuice Anything special with that?
Just add a package.json
and then define module.exports if you detect a commonjs environment.
Here's an example of the type of logic that's required:
https://github.com/kriskowal/q/blob/master/q.js
That particular library also supports quite a few other formats, but you only need commonjs to publish to npm.
I see that you're using Grunt for build automation. In that case probably the easiest way to do it would be with https://github.com/bebraw/grunt-umd
Hey @whmountains, offline is published to npm as offline-js
. The recent language updates haven't been published yet, and we'll get to that soon. Otherwise, the way we publish the package isn't going to change, as we aren't maintaining this project any more.
It would be really nice!