-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update the version of yarn (#121)
chore: update the version of yarn
- Loading branch information
1 parent
41c123d
commit fc047ef
Showing
8 changed files
with
16,574 additions
and
11,728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
/.yarn/releases/** binary | ||
/.yarn/plugins/** binary | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | ||
} | ||
} | ||
}, | ||
}, | ||
} | ||
}, | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ | |
"markdownlint-cli": "^0.38.0", | ||
"markdownlint-rule-helpers": "^0.23.0", | ||
"prettier": "^3.0.0" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |