Skip to content

[compiler][snap] Fixes to relative path resolution; compile subcommand#35688

Merged
josephsavona merged 1 commit intofacebook:mainfrom
josephsavona:more-snap-improvements-2
Feb 4, 2026
Merged

[compiler][snap] Fixes to relative path resolution; compile subcommand#35688
josephsavona merged 1 commit intofacebook:mainfrom
josephsavona:more-snap-improvements-2

Conversation

@josephsavona
Copy link
Member

More snap improvements for use with agents:

  • yarn snap compile [--debug] <path> for compiling any file, optionally with debug logs
  • yarn snap minimize <path> now accepts path as a positional param for consistency w 'compile' command
  • Both compile/minimize commands properly handle paths relative to the compiler/ directory. When using yarn snap the current working directory is compiler/packages/snap, but you're generally running it from the compiler directory so this matches expectations of callers better.

More snap improvements for use with agents:
* `yarn snap compile [--debug] <path>` for compiling any file, optionally with debug logs
* `yarn snap minimize <path>` now accepts path as a positional param for consistency w 'compile' command
* Both compile/minimize commands properly handle paths relative to the compiler/ directory. When using `yarn snap` the current working directory is compiler/packages/snap, but you're generally running it from the compiler directory so this matches expectations of callers better.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant