Skip to content

[steps][create-eas-build-function] Declare missing dependencies#3798

Open
pataar wants to merge 1 commit into
expo:mainfrom
pataar:fix/declare-missing-deps
Open

[steps][create-eas-build-function] Declare missing dependencies#3798
pataar wants to merge 1 commit into
expo:mainfrom
pataar:fix/declare-missing-deps

Conversation

@pataar
Copy link
Copy Markdown

@pataar pataar commented May 28, 2026

Why

@expo/steps imports fast-glob (in BuildStepContext.ts) and create-eas-build-function imports arg (in cli.ts and utils/args.ts), but neither package declares those dependencies in its package.json. Today they resolve through workspace hoisting, so everything works locally — but the packages would break when installed standalone, where hoisting doesn't help.

This is the same class of issue as #3741 (which added a direct debug dependency for similar reasons).

How

  • packages/steps: added "fast-glob": "^3.3.2" to dependencies (matches @expo/build-tools).
  • packages/create-eas-build-function: added "arg": "^5.0.2" to devDependencies, following the convention there where ncc-bundled runtime libs (chalk, ora, prompts, fs-extra, …) live under devDependencies.

I also audited the rest of the monorepo with depcheck. Other "missing" hits were either type-only imports backed by ambient declarations (metro-config, xcode, @expo/app-store) or transitive false positives (@jest/types via jest), so no additional changes were needed.

Test Plan

  • yarn install succeeds with no new warnings.
  • pnpx depcheck in both packages no longer reports the missing deps.
  • yarn typecheck passes across all 13 packages.

/changelog-entry chore Declare fast-glob in @expo/steps and arg in create-eas-build-function.

`fast-glob` and `arg` were imported but not declared in their packages,
resolving only via workspace hoisting. Declare them explicitly so the
packages keep working when installed standalone.
@github-actions
Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention

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