max-kamps / jpd-breader

MIT License
102 stars 26 forks source link

Switch build script from shell commands to JavaScript #9

Closed max-kamps closed 1 year ago

max-kamps commented 1 year ago

Using shell features for the build script is extremely brittle and non-portable. I am only able to test the code on Linux, and do not want to accidentally break it for Windows users.

Porting the current build commands in package.json to a JavaScript build script instead would be much appreciated.

nico-abram commented 1 year ago

As an example, it seems on windows the build script is currently broken because copy-and-watch --watch 'src/**/!(*.{mts,ts,tsx})' is trying to read from a folder called 'src, and I think the quotes are needed to avoid shell expansion in bash