Skip to content

Declare @directus-labs/utils in packages that import it - #334

Merged
bryantgillespie merged 2 commits into
mainfrom
bry/declare-utils-dep
Nov 13, 2026
Merged

bryantgillespie merged 2 commits into
mainfrom
bry/declare-utils-dep

Conversation

@bryantgillespie

Copy link
Copy Markdown
Contributor

Follow-up to #330. Three live packages import @directus-labs/utils without declaring it:

  • liquidjs-operation (src/app.ts)
  • pdf-viewer-interface (src/interface.vue)
  • video-player-interface (src/plyr.vue)

Without the dependency, pnpm doesn't know to build utils first. On a clean checkout utils/dist doesn't exist when these build, so the import stays external and the published extension breaks at runtime (same failure as SEO 1.2.0).

Adds "@directus-labs/utils": "workspace:*" as a devDependency (same as seo-plugin) and updates the lockfile.

No version bumps. The currently published builds are fine, this just keeps the next publish from breaking.

Verified

  • With utils/dist removed, building the three packages now runs utils first.
  • grep @directus-labs/utils packages/*/dist finds nothing for all three, so the import is bundled.

@bryantgillespie

Copy link
Copy Markdown
Contributor Author

@LZylstra this is the follow up for the utils fix I did on SEO plugin applied to the other remaining non deprecated extensions.

@LZylstra LZylstra 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.

LGTM

@bryantgillespie
bryantgillespie merged commit 97ad72a into main Nov 13, 2026
4 checks passed
@bryantgillespie
bryantgillespie deleted the bry/declare-utils-dep branch November 13, 2026 19:41
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.

2 participants