File tree Expand file tree Collapse file tree 8 files changed +16574
-11728
lines changed Expand file tree Collapse file tree 8 files changed +16574
-11728
lines changed Original file line number Diff line number Diff line change 1+
2+ /.yarn /releases /** binary
3+ /.yarn /plugins /** binary
4+
Original file line number Diff line number Diff line change 11node_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+
Original file line number Diff line number Diff line change 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+ }
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1414 "markdownlint-cli" : " ^0.38.0" ,
1515 "markdownlint-rule-helpers" : " ^0.23.0" ,
1616 "prettier" : " ^3.0.0"
17- }
17+ },
18+ "packageManager" : " yarn@4.5.1"
1819}
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments