Skip to content

Commit

Permalink
build: use pnpm nodeLinker to save disk
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jan 25, 2024
1 parent c9a5e2d commit 3f0133a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodeLinker: node-modules
nodeLinker: pnpm
6 changes: 3 additions & 3 deletions packages/synthetic-chain/src/cli/doctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const fixupProposal = (proposal: ProposalInfo) => {
fs.writeFileSync(yarnLock, '');
}

// default to node-modules linker
// default to pnpm linker because it saves disk space
const yarnRc = path.join(proposalPath, '.yarnrc.yml');
if (!fs.existsSync(yarnRc)) {
console.log(`creating ${yarnRc} with node-modules linker`);
fs.writeFileSync(yarnRc, 'nodeLinker: node-modules\n');
console.log(`creating ${yarnRc} with pnpm linker`);
fs.writeFileSync(yarnRc, 'nodeLinker: pnpm\n');
}

// refresh install
Expand Down
2 changes: 1 addition & 1 deletion proposals/34:upgrade-10/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodeLinker: node-modules
nodeLinker: pnpm
2 changes: 1 addition & 1 deletion proposals/43:upgrade-11/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodeLinker: node-modules
nodeLinker: pnpm
2 changes: 1 addition & 1 deletion proposals/49:smart-wallet-nft/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodeLinker: node-modules
nodeLinker: pnpm

0 comments on commit 3f0133a

Please sign in to comment.