Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/toolchain/cli/src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ impl Opts {
fs::write(project_path.join(script_name), script_body).await?;
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

fs::write(project_path.join(".yarnrc.yml"), yarnrc_body).await?;

let readme_body = readme_body.replace("__NAME__", &prompt.project_name);
fs::write(project_path.join("README.md"), readme_body).await?;

Expand Down
Loading