oleeskild / digitalgarden

261 stars 147 forks source link

Cleanup dist before build #269

Open davidkopp opened 1 month ago

davidkopp commented 1 month ago

Currently, when a note is moved or renamed, the old file is not deleted. Therefore I recommend to do a cleanup before the build.

Executing npm run build executes prebuild as the first step.

oleeskild commented 1 week ago

Nice, thanks! Do you think it would be possible to make a solution that would also work on windows, that way it won't crash if anyone tries to run it locally on their windows machine 😄

davidkopp commented 1 week ago

I have changed it to use rimraf, rm -rf for node in a cross-platform implementation.