Skip to content

Commit

Permalink
chore(deps): update the version of yarn (#121)
Browse files Browse the repository at this point in the history
chore: update the version of yarn
  • Loading branch information
AntoineThibi authored Nov 4, 2024
1 parent 41c123d commit fc047ef
Show file tree
Hide file tree
Showing 8 changed files with 16,574 additions and 11,728 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

/.yarn/releases/** binary
/.yarn/plugins/** binary

10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
node_modules/
dist
dist
# yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

22 changes: 22 additions & 0 deletions .yarn/plugins/plugin-dedupe-on-install.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
name: `plugin-dedupe-on-install`,
factory: (require) => {
const {execute} = require('@yarnpkg/shell')
return {
hooks: {
// yarn / yarn install / yarn add / yarn dedupe -> afterAllInstalled
async afterAllInstalled() {
// use env var to prevent infinite loops
if (!process.env.DEDUPED && !process.argv.includes('dedupe')) {
process.env.DEDUPED = 'yes'
// fast check for duplicates
if (await execute('yarn dedupe --check')) {
// run actual dedupe/link step
await execute('yarn dedupe')
}
}
},
},
}
},
}
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.1.cjs

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
nmMode: hardlinks-local

nodeLinker: node-modules

plugins:
- checksum: 7930a64ba6239d4502df0204edda913788df1a9614a9056d23b53345d844f6f13526dae71c2be5282071502c3c077db7b1e97bcf019037db3ca35c737cd25b0c
path: .yarn/plugins/plugin-dedupe-on-install.cjs
spec: "https://raw.githubusercontent.com/ambar/yarn-plugin-dedupe-on-install/main/index.js"

yarnPath: .yarn/releases/yarn-4.5.1.cjs
2 changes: 1 addition & 1 deletion example-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"prettier": "^3.0.0",
"typescript": "^5.0.0"
},
"private": "true",
"private": true,
"dependencies": {
"expo": "^49.0.0",
"react": "^18.2.0",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"markdownlint-cli": "^0.38.0",
"markdownlint-rule-helpers": "^0.23.0",
"prettier": "^3.0.0"
}
},
"packageManager": "[email protected]"
}
27,317 changes: 15,592 additions & 11,725 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit fc047ef

Please sign in to comment.