Closed superelement closed 2 years ago
Hi @superelement, thank you for the PR.
Those packages should be in devDependencies
in accordance with customary practice.
https://anseki.github.io/plain-draggable/#development
Thank you for your time. :smile:
That's a bit disappointing. It's a great package and I just wanted to import it into my project (like every other npm package) and have it run on pipelines and stuff without having to do extra manual installs. When I tried to use the min version, importing won't work (am I doing something wrong here?), but in any case, the source is generally better for debugging locally. Otherwise you're forcing me to use my forked version... which isn't ideal.
That is specification of NPM (and Node.js).
An option that installs devDependencies
packages might be supported by future version of NPM.
Ok, I see what you mean. I've created another PR for exporting a separate bundle for easy import. https://github.com/anseki/plain-draggable/pull/104
I moved the dependencies needed for the module to run out of devDependencies and into dependencies so that it can be imported (using webpack) without the need to npm install from within the node_modules package.