Skip to content

Conversation

@NathanFlurry
Copy link
Member

Changes

@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 8, 2025

Merge activity

  • Feb 7, 8:03 PM EST: A user added this pull request to the Graphite merge queue.
  • Feb 7, 8:04 PM EST: CI is running for this PR on a draft PR: #2007
  • Feb 7, 8:05 PM EST: A user merged this pull request with the Graphite merge queue via draft PR: #2007.

Copy link
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@NathanFlurry NathanFlurry changed the base branch from 02-07-fix_cli_set_abs_path_for_esbuild_to_support_yarn_pnp to graphite-base/2003 February 8, 2025 01:03
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR adds automatic generation of a .yarnrc.yml file during project initialization to disable Yarn's Plug'n'Play feature, addressing compatibility issues with TSX and older Node versions.

  • Added .yarnrc.yml file generation in /packages/toolchain/cli/src/commands/init.rs with nodeLinker: node-modules configuration
  • Included explanatory comment linking to TSX compatibility issue (privatenumber/tsx#166)
  • Implemented file generation before README.md creation for TypeScript/JavaScript projects

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

fs::write(project_path.join(test_name), test_body).await?;

// Yarn P'n'P doesn't play nice with TSX and older Node versions (https://github.com/privatenumber/tsx/issues/166)
let yarnrc_body = "nodeLinker: node-modules\n";
Copy link

Choose a reason for hiding this comment

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

style: Consider adding a version field to the .yarnrc.yml file to ensure compatibility with future Yarn versions

graphite-app bot pushed a commit that referenced this pull request Feb 8, 2025
…2003)

<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
@graphite-app graphite-app bot closed this Feb 8, 2025
@graphite-app graphite-app bot deleted the 02-07-fix_cli_auto-generate_.yarnrc.yml_to_disable_pnp_for_tsx_support branch February 8, 2025 01:05
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