Skip to content

Commit

Permalink
try pnp linker
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jan 25, 2024
1 parent 3f0133a commit 50ec208
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ dist

# We preceed with wildcard to allow for yarn installs below root
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
**/.pnp.*
**/.yarn/*
**/!.yarn/cache
**/!.yarn/patches
Expand Down
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodeLinker: pnpm
nodeLinker: pnp
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 pnpm linker because it saves disk space
// default to pnp linker because it saves disk space
const yarnRc = path.join(proposalPath, '.yarnrc.yml');
if (!fs.existsSync(yarnRc)) {
console.log(`creating ${yarnRc} with pnpm linker`);
fs.writeFileSync(yarnRc, 'nodeLinker: pnpm\n');
console.log(`creating ${yarnRc} with pnp linker`);
fs.writeFileSync(yarnRc, 'nodeLinker: pnp\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: pnpm
nodeLinker: pnp
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: pnpm
nodeLinker: pnp
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: pnpm
nodeLinker: pnp

0 comments on commit 50ec208

Please sign in to comment.