Open
Description
Reproduction link or steps
https://github.com/YoungChengSf/my-turborepo.git
What is expected?
Restart the node application correctly
What is actually happening?
Report port is occupied
Any additional comments?
I tried the following and got the same result
My demo is a monoreop, the main code is in packages/app1
import { defineConfig } from 'tsdown'
export default defineConfig({
entry: ['src/main.ts'],
dts: false,
noExternal: [/^@repo\/.*/],
onSuccess: "tsc -b && node --enable-source-maps dist/main.js",
sourcemap: true,
})
"scripts": {
"dev": "tsdown -w",
"dev2": "tsdown -w --onSuccess 'tsc -b && node --enable-source-maps dist/main.js'"
},