Skip to content

chore: do not ignore errors when clearing the npm/ output directory - #70

Merged
coderbyheart merged 1 commit into
mainfrom
chore/npm-outdir-cleanup-errors
Aug 5, 2026
Merged

chore: do not ignore errors when clearing the npm/ output directory#70
coderbyheart merged 1 commit into
mainfrom
chore/npm-outdir-cleanup-errors

Conversation

@coderbyheart

Copy link
Copy Markdown
Member

rmSync already ignores a missing directory via force: true, so the try/catch only swallowed real errors such as EACCES or EBUSY. Since package.json ships the entire npm/ folder, a partially cleared output directory meant stale JavaScript from earlier builds could be published.

Ports nRFCloud/wait-for-it@d1060ed to this repository.

rmSync already ignores a missing directory via force: true, so the
try/catch only swallowed real errors such as EACCES or EBUSY. Since
package.json ships the entire npm/ folder, a partially cleared output
directory meant stale JavaScript from earlier builds could be published.
@coderbyheart
coderbyheart requested a review from a team as a code owner August 5, 2026 13:38
@coderbyheart

Copy link
Copy Markdown
Member Author

Non-significant change, no PR review required.

@coderbyheart
coderbyheart merged commit b966c3c into main Aug 5, 2026
2 checks passed
@coderbyheart
coderbyheart deleted the chore/npm-outdir-cleanup-errors branch August 5, 2026 13:43
@coderbyheart coderbyheart added the non-significant Non-significant changes that do not need a PR review label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

non-significant Non-significant changes that do not need a PR review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant