.node files from node_modules are regenerated in watch mode
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
Since `.node` files are coming from `node_modules` they shouldn't need to be regenerated yet that's exactly what I'm seeing.
I ran `npm run dev -s` in this case. Then I saved a file a few times to cause `tsup` to rebuild the files.
Let me know if I'm missing any details. 😄
```json
"dev": "npm run build -- --watch --onSuccess \"node ./dist/index.js\"",
"build": "tsup ./src/index.ts --dts"
```
```
DTS ⚡️ Build success in 596ms
DTS Build start
DTS ⚡️ Build success in 354ms
CLI Change detected: change src/modules/user.ts
CJS Build start
CJS ⚡️ Build success in 88ms
Error: EBUSY: resource busy or locked, open 'C:\Users\xo\code\project-name\api\dist\argon2-WCPEYWGU.node'
```
Contributor guide
Assessment
This issue has not been assessed yet.