Closed EndBug closed 2 years ago
As of now, if the package gets installed from GitHub it won't be compiled, and so it will not be usable. A solution to this would be adding a prepare script that checks whether the dist folder is already there, otherwise runs the build script. A working example is dbots.js: https://github.com/dbots-pkg/dbots.js/blob/adb1219db00a1d11daece7e2309834fa33a3e963/package.json#L18
prepare
dist
build
dbots.js
What do you think?
As long as it doesn't interfere with npm package — I'm for it.
As of now, if the package gets installed from GitHub it won't be compiled, and so it will not be usable. A solution to this would be adding a
prepare
script that checks whether thedist
folder is already there, otherwise runs thebuild
script. A working example isdbots.js
: https://github.com/dbots-pkg/dbots.js/blob/adb1219db00a1d11daece7e2309834fa33a3e963/package.json#L18What do you think?