Skip to content

Commit fc047ef

Browse files
authored
chore(deps): update the version of yarn (#121)
chore: update the version of yarn
1 parent 41c123d commit fc047ef

File tree

8 files changed

+16574
-11728
lines changed

8 files changed

+16574
-11728
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
/.yarn/releases/** binary
3+
/.yarn/plugins/** binary
4+

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
node_modules/
2-
dist
2+
dist
3+
# yarn
4+
.yarn/*
5+
!.yarn/patches
6+
!.yarn/plugins
7+
!.yarn/releases
8+
!.yarn/sdks
9+
!.yarn/versions
10+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
name: `plugin-dedupe-on-install`,
3+
factory: (require) => {
4+
const {execute} = require('@yarnpkg/shell')
5+
return {
6+
hooks: {
7+
// yarn / yarn install / yarn add / yarn dedupe -> afterAllInstalled
8+
async afterAllInstalled() {
9+
// use env var to prevent infinite loops
10+
if (!process.env.DEDUPED && !process.argv.includes('dedupe')) {
11+
process.env.DEDUPED = 'yes'
12+
// fast check for duplicates
13+
if (await execute('yarn dedupe --check')) {
14+
// run actual dedupe/link step
15+
await execute('yarn dedupe')
16+
}
17+
}
18+
},
19+
},
20+
}
21+
},
22+
}

.yarn/releases/yarn-4.5.1.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
nmMode: hardlinks-local
2+
3+
nodeLinker: node-modules
4+
5+
plugins:
6+
- checksum: 7930a64ba6239d4502df0204edda913788df1a9614a9056d23b53345d844f6f13526dae71c2be5282071502c3c077db7b1e97bcf019037db3ca35c737cd25b0c
7+
path: .yarn/plugins/plugin-dedupe-on-install.cjs
8+
spec: "https://raw.githubusercontent.com/ambar/yarn-plugin-dedupe-on-install/main/index.js"
9+
10+
yarnPath: .yarn/releases/yarn-4.5.1.cjs

example-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"prettier": "^3.0.0",
3434
"typescript": "^5.0.0"
3535
},
36-
"private": "true",
36+
"private": true,
3737
"dependencies": {
3838
"expo": "^49.0.0",
3939
"react": "^18.2.0",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
"markdownlint-cli": "^0.38.0",
1515
"markdownlint-rule-helpers": "^0.23.0",
1616
"prettier": "^3.0.0"
17-
}
17+
},
18+
"packageManager": "[email protected]"
1819
}

yarn.lock

Lines changed: 15592 additions & 11725 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)