debugjs
debugjs copied to clipboard
No dist in package, can't import in node.js
Tried to use this sweet library in node.js, but failed.
-
There is no
dist
directory, so package.json'smain
property points to a file that doesn't exist. -
Even if I try to directly require
lib/index.js
, I can't because node.js doesn't support ES6 imports.
Also, I can't just run npm run build
in the node_module because your toolchain are dev-dependencies.
It IS possible to run in node if i clone this repo and run npm install
, but I'd very much like to use it as a normal npm package
Since you have the dist
folder in .gitignore
but not .npmignore
you should be able to publish those artifacts to NPM without checking them into git just by running npm run build
before npm publish
. There is no code change except to update the version in package.json
I'm running into this same issue, it would be amazing to use this library as a normal npm package!