Skip to content

@remotion/layout-utils: Don't publish test files#7430

Merged
JonnyBurger merged 1 commit into
mainfrom
fix/layout-utils-npmignore-test-files
May 19, 2026
Merged

@remotion/layout-utils: Don't publish test files#7430
JonnyBurger merged 1 commit into
mainfrom
fix/layout-utils-npmignore-test-files

Conversation

@JonnyBurger
Copy link
Copy Markdown
Member

Summary

  • The release on 4.0.463 aborted because set-version.ts's no-dev-files monorepo test failed: @remotion/layout-utils was publishing dist/cjs/test/Root.d.ts and other test artifacts.
  • Root cause: layout-utils builds to dist/cjs (its tsconfig sets "outDir": "dist/cjs"), but its .npmignore only excluded dist/test/**. shapes works because its outDir is ./dist.
  • Added dist/cjs/test (matching the convention in core, player, lottie, noise, lambda-client) and vitest.config.ts (matching media, web-renderer) to packages/layout-utils/.npmignore.

Test plan

  • bun test src/monorepo/no-dev-files.test.ts → 94 pass, 0 fail
  • bun pm pack --dry-run in packages/layout-utils no longer lists any test/ or .ts (non-.d.ts) files

🤖 Generated with Claude Code

The package builds to `dist/cjs`, but `.npmignore` only excluded
`dist/test/**`, so the newly added test files landed in `dist/cjs/test`
and got published. Also excludes `vitest.config.ts`. Matches the
convention used by core, player, lottie and noise.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pullfrog
Copy link
Copy Markdown
Contributor

pullfrog Bot commented May 19, 2026

This run was cancelled 🛑

The workflow was cancelled before completion. Please check the link below for details.

Pullfrog  | View workflow run | via Pullfrog𝕏

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment May 19, 2026 6:05am
remotion Ready Ready Preview, Comment May 19, 2026 6:05am

Request Review

@JonnyBurger JonnyBurger enabled auto-merge May 19, 2026 06:02
@JonnyBurger JonnyBurger disabled auto-merge May 19, 2026 06:07
@JonnyBurger JonnyBurger merged commit 3166e92 into main May 19, 2026
18 checks passed
@JonnyBurger JonnyBurger deleted the fix/layout-utils-npmignore-test-files branch May 19, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant