The build script currently fails with Error: ENOENT: no such file or directory, stat './dist' the first time anyone clones this repo and runs npm run build.
This happens because the dist folder does not exist yet, so rmdirSync(DIR, { recursive: true }); can't remove it.
The build script currently fails with
Error: ENOENT: no such file or directory, stat './dist'
the first time anyone clones this repo and runsnpm run build
.This happens because the
dist
folder does not exist yet, sormdirSync(DIR, { recursive: true });
can't remove it.To reproduce:
This is fixed by ignoring the
ENOENT
error.