egoist / egoist/tsup

.node files from node_modules are regenerated in watch mode

Open
#659 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.