这是indexloc提供的服务,不要输入任何密码
Skip to content

--watch mode leaving without watching #1373

@Mikael256

Description

@Mikael256

Hello,

Putting "watch": "tsup --watch", in my package.json scripts and running it only does the build and leave right after insead of watching for changes.
Tsup output shows "CLI Running in watch mode".

tsup.config.ts:

import { defineConfig } from 'tsup';
import { EXECUTABLE_NAME } from './src/consts';

export default defineConfig({
  entry: {
    [EXECUTABLE_NAME]: 'src/index.ts',
  },
  target: 'node22',
  format: 'cjs',
  outDir: '.',
  treeshake: true,
  // minify: true,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions