8000 Watch Mode onSuccess cannot properly shut down and restart the node service when there are multiple commands · Issue #364 · rolldown/tsdown · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Watch Mode onSuccess cannot properly shut down and restart the node service when there are multiple commands #364
Open
@faner11

Description

@faner11

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'"
  },

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0