Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .yarn/versions/2c93d723.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
releases:
"@yarnpkg/cli": patch

declined:
- "@yarnpkg/eslint-config"
- "@yarnpkg/plugin-compat"
- "@yarnpkg/plugin-constraints"
- "@yarnpkg/plugin-dlx"
- "@yarnpkg/plugin-essentials"
- "@yarnpkg/plugin-init"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-nm"
- "@yarnpkg/plugin-npm-cli"
- "@yarnpkg/plugin-pack"
- "@yarnpkg/plugin-patch"
- "@yarnpkg/plugin-pnp"
- "@yarnpkg/plugin-pnpm"
- "@yarnpkg/plugin-stage"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/plugin-version"
- "@yarnpkg/plugin-workspace-tools"
- "@yarnpkg/builder"
- "@yarnpkg/core"
- "@yarnpkg/doctor"
3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ npmPublishAccess: public

npmPublishProvenance: true

catalog:
typescript: "^5.9.2"

packageExtensions:
markdown-it@*:
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"jest": "^29.2.1",
"pirates": "^4.0.5",
"tslib": "^2.4.0",
"typescript": "^5.9.2"
"typescript": "catalog:"
},
"resolutions": {
"ink@^3.2.0": "patch:ink@npm%3A3.2.0#~/.yarn/patches/ink-npm-3.2.0-2f1df5b094.patch",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"three": "^0.145.0",
"tslib": "^2.4.0",
"typedoc": "^0.25.7",
"typescript": "^5.9.2",
"typescript": "catalog:",
"unist-util-visit-parents": "^6.0.1",
"usehooks-ts": "^3.1.1",
"webpack": "^5.88.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"devDependencies": {
"eslint": "^9.20.1",
"typescript": "^5.9.2"
"typescript": "catalog:"
},
"stableVersion": "3.1.0"
}
2 changes: 1 addition & 1 deletion packages/yarnpkg-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@types/semver": "^7.1.0",
"@yarnpkg/monorepo": "workspace:^",
"typescript": "^5.9.2"
"typescript": "catalog:"
},
"scripts": {
"postpack": "rm -rf lib",
Expand Down
4 changes: 2 additions & 2 deletions packages/yarnpkg-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"bundles": {
"standard": [
"@yarnpkg/plugin-essentials",
"@yarnpkg/plugin-catalog",
"@yarnpkg/plugin-compat",
"@yarnpkg/plugin-constraints",
"@yarnpkg/plugin-dlx",
Expand All @@ -101,8 +102,7 @@
"@yarnpkg/plugin-stage",
"@yarnpkg/plugin-typescript",
"@yarnpkg/plugin-version",
"@yarnpkg/plugin-workspace-tools",
"@yarnpkg/plugin-catalog"
"@yarnpkg/plugin-workspace-tools"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-doctor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"micromatch": "^4.0.2",
"p-limit": "^2.2.0",
"tslib": "^2.4.0",
"typescript": "^5.9.2"
"typescript": "catalog:"
},
"devDependencies": {
"@types/micromatch": "^4.0.1",
Expand Down
18 changes: 18 additions & 0 deletions scripts/setup-local-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const DYNAMIC_LIBS_MODULE = require.resolve(`${PACKAGES}/yarnpkg-cli/sources/too
require.cache[PLUGIN_CONFIGURATION_MODULE] = {exports: {getPluginConfiguration}};

function getPluginConfiguration() {
const pluginOrder = require(`@yarnpkg/cli/package.json`)[`@yarnpkg/builder`].bundles.standard;

const folders = fs.readdirSync(PACKAGES);

const pluginFolders = folders.filter(folder => {
Expand All @@ -40,9 +42,25 @@ function getPluginConfiguration() {
console.warn(`Disabled non-requirable plugin ${folder}: ${e.message}`);
isRequirable = false;
}

return isRequirable;
});

pluginFolders.sort((a, b) => {
const indexA = pluginOrder.indexOf(`@yarnpkg/${a}`);
const indexB = pluginOrder.indexOf(`@yarnpkg/${b}`);

if (indexA === -1 && indexB === -1)
return a.localeCompare(b);

if (indexA === -1)
return 1;
if (indexB === -1)
return -1;

return indexA - indexB;
});

// Note that we don't need to populate the `modules` field, because the
// plugins will be loaded without being transformed by the builder wrapper,
// so they will simply access their own set of dependencies.
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5811,7 +5811,7 @@ __metadata:
esbuild: "npm:esbuild-wasm@^0.23.0"
semver: "npm:^7.1.2"
tslib: "npm:^2.4.0"
typescript: "npm:^5.9.2"
typescript: "catalog:"
bin:
builder: ./sources/boot-cli-dev.js
languageName: unknown
Expand Down Expand Up @@ -5931,7 +5931,7 @@ __metadata:
micromatch: "npm:^4.0.2"
p-limit: "npm:^2.2.0"
tslib: "npm:^2.4.0"
typescript: "npm:^5.9.2"
typescript: "catalog:"
bin:
doctor: ./sources/boot-cli-dev.js
languageName: unknown
Expand Down Expand Up @@ -6019,7 +6019,7 @@ __metadata:
three: "npm:^0.145.0"
tslib: "npm:^2.4.0"
typedoc: "npm:^0.25.7"
typescript: "npm:^5.9.2"
typescript: "catalog:"
unified: "npm:^11.0.4"
unist-util-visit-parents: "npm:^6.0.1"
usehooks-ts: "npm:^3.1.1"
Expand All @@ -6040,7 +6040,7 @@ __metadata:
eslint-plugin-react: "npm:^7.37.4"
globals: "npm:^15.15.0"
tslib: "npm:^2.4.0"
typescript: "npm:^5.9.2"
typescript: "catalog:"
peerDependencies:
eslint: "*"
typescript: "*"
Expand Down Expand Up @@ -6125,7 +6125,7 @@ __metadata:
pirates: "npm:^4.0.5"
semver: "npm:^7.1.2"
tslib: "npm:^2.4.0"
typescript: "npm:^5.9.2"
typescript: "catalog:"
dependenciesMeta:
core-js:
built: false
Expand Down