Skip to content

Migration tool doesn't convert entryPoints: [] to entry: [] #485

@veksen

Description

@veksen

Reproduction link or steps

  • Set up a project with tsup, for example a starter of turborepo which has a packages/ui using tsup: npx create-turbo@latest -e design-system
  • cd and run npx tsdown migrate
  • error: @acme/ui:dev: ERROR Error: No input files, try "tsdown <your-file>" or create src/index.ts

which is solved on updating entryPoints to entry, as per the docs: https://tsdown.dev/options/entry#multiple-entry-files

What is expected?

expecting config to look like this:

import { defineConfig } from "tsdown";

export default defineConfig((options) => ({
  entry: ["src/button.tsx"],
  format: ["cjs", "esm"],
  dts: true,
  external: ["react"],
  ...options,
}));

What is actually happening?

config file actually looks like:

import { defineConfig } from "tsdown";

export default defineConfig((options) => ({
  entryPoints: ["src/button.tsx"],
  format: ["cjs", "esm"],
  dts: true,
  external: ["react"],
  ...options,
}));

Any additional comments?

Furthermore, entryPoints is not showing as an error in Options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions