Skip to content

fix(workspace): skip include-glob matches that hold no package - #1078

Open
Sandbye wants to merge 1 commit into
rolldown:mainfrom
Sandbye:fix/1067-workspace-include-globs-match-direc/trunk
Open

Sandbye wants to merge 1 commit into
rolldown:mainfrom
Sandbye:fix/1067-workspace-include-globs-match-direc/trunk

Conversation

@Sandbye

@Sandbye Sandbye commented Sep 18, 2026

Copy link
Copy Markdown

AI usage

  • No AI was used in this PR.
  • AI was used: Claude Code + Opus 5, in parallel worktrees
    • I have carefully reviewed the AI-generated content myself.

Description

A user-provided workspace.include glob matches directories, not packages, so a
directory with no package.json was resolved as a workspace package, inherited
the root config and failed the build.

Matched directories are now dropped unless they hold a package.json or a
tsdown.config.*. The filter is skipped when workspace.config names an
explicit file, since there the config is named by the user and package-ness is
not the signal. No workspace packages found now reports how many directories
were skipped for that reason.

Scoped to the workspace half of #1067 on purpose: the error-message half is
already covered by #1068. #1069 took this same approach and was closed by its
author, who wrote that the implementation was "yours to take, rewrite, or drop";
this is a rewrite of it, with the explicit-config carve-out and unit tests.

Linked Issues

Closes #1067

Additional context

Behaviour change worth attention in review: a glob-matched directory without a
package is now skipped silently instead of failing later in the build.

Copilot AI lite review requested due to automatic review settings September 18, 2026 09:22
@netlify

netlify Bot commented Sep 18, 2026

Copy link
Copy Markdown

Deploy Preview for tsdown-main ready!

Name Link
🔨 Latest commit 9f98be3
🔍 Latest deploy log https://app.netlify.com/projects/tsdown-main/deploys/6aad189a01dc1f00089772c0
😎 Deploy Preview https://deploy-preview-1078--tsdown-main.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@pkg-pr-new

pkg-pr-new Bot commented Sep 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

tsdown

pnpm add https://pkg.pr.new/rolldown/tsdown@1078 -D
npm i https://pkg.pr.new/rolldown/tsdown@1078 -D
yarn add https://pkg.pr.new/rolldown/tsdown@1078.tgz -D

create-tsdown

pnpm add https://pkg.pr.new/rolldown/tsdown/create-tsdown@1078 -D
npm i https://pkg.pr.new/rolldown/tsdown/create-tsdown@1078 -D
yarn add https://pkg.pr.new/rolldown/tsdown/create-tsdown@1078.tgz -D

@tsdown/css

pnpm add https://pkg.pr.new/rolldown/tsdown/@tsdown/css@1078 -D
npm i https://pkg.pr.new/rolldown/tsdown/@tsdown/css@1078 -D
yarn add https://pkg.pr.new/rolldown/tsdown/@tsdown/css@1078.tgz -D

@tsdown/exe

pnpm add https://pkg.pr.new/rolldown/tsdown/@tsdown/exe@1078 -D
npm i https://pkg.pr.new/rolldown/tsdown/@tsdown/exe@1078 -D
yarn add https://pkg.pr.new/rolldown/tsdown/@tsdown/exe@1078.tgz -D

tsdown-migrate

pnpm add https://pkg.pr.new/rolldown/tsdown/tsdown-migrate@1078 -D
npm i https://pkg.pr.new/rolldown/tsdown/tsdown-migrate@1078 -D
yarn add https://pkg.pr.new/rolldown/tsdown/tsdown-migrate@1078.tgz -D

commit: 9f98be3

@Sandbye
Sandbye force-pushed the fix/1067-workspace-include-globs-match-direc/trunk branch 2 times, most recently from 78dc2ad to 9f98be3 Compare September 18, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants