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

A hook that runs once after all builds have completed #777

@steveluscher

Description

@steveluscher

Current behavior

The onSuccess hook runs once for every build config. In this example, ./prepareNpmEntrypoints.sh will run twice.

// tsup.config.ts
export default defineConfig([
  { /* ... */ },
  { /* ... */ },
]);
pnpm tsup --watch --onSuccess "./prepareNpmEntrypoints.sh"

Feature request

A hook that runs once, when all of the builds have completed. This can be used, for instance, to run a script that patches up the build products in some way that's not possible to do during the build.

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