egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
8.46k stars 209 forks source link

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

Open patosullivan opened 4 months ago

patosullivan commented 4 months ago

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?

Upvote & Fund

Fund with Polar