egoist / egoist/tsup

running tsup with --watch, can't kill it with CTRL + C

Open
#1,089 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

I have a simple package, it looks like this:

```
{
"name": "some-project",
"version": "1.0.0",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts src/urbit/* --format esm --minify --dts --out-dir dist",
"dev": "npm run build -- --watch"
},
"dependencies": {},
"devDependencies": {
"tsup": "^8.0.1",
}
}
```

If I run `npm run dev`, I can't kill the process with SIGINT (CTRL + C), I have to SIGTERM it manually.

I'm running it within tmux on macOS Ventura.

Any idea as to what's going on? Is this a bug?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the npm run dev command, which invokes tsup with --watch, inside tmux on macOS Ventura. Investigate how the watch process handles SIGINT from Ctrl+C and confirm the behavior outside tmux as a comparison. Done means Ctrl+C exits the watch process cleanly without requiring SIGTERM.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.