Skip to content

Commit 2981acb

Browse files
authored
feat: add yarnpkg/core sub exports (#6614)
## What's the problem this PR addresses? Same reason as #6611 Those are already fully exported here: https://github.com/yarnpkg/berry/blob/8bfe2d545e986993e4450072bac8b1044e5ebed7/packages/yarnpkg-core/sources/index.ts#L9-L10 But importing them from top pulls in all the yarpkg/core subdeps, while those two are pretty light on their own and don't need all that ## How did you fix it? Adding them as separate exports would fix this ## Checklist <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
1 parent 3978649 commit 2981acb

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.yarn/versions/30ae755e.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
releases:
2+
"@yarnpkg/core": patch
3+
4+
declined:
5+
- "@yarnpkg/plugin-compat"
6+
- "@yarnpkg/plugin-constraints"
7+
- "@yarnpkg/plugin-dlx"
8+
- "@yarnpkg/plugin-essentials"
9+
- "@yarnpkg/plugin-exec"
10+
- "@yarnpkg/plugin-file"
11+
- "@yarnpkg/plugin-git"
12+
- "@yarnpkg/plugin-github"
13+
- "@yarnpkg/plugin-http"
14+
- "@yarnpkg/plugin-init"
15+
- "@yarnpkg/plugin-interactive-tools"
16+
- "@yarnpkg/plugin-link"
17+
- "@yarnpkg/plugin-nm"
18+
- "@yarnpkg/plugin-npm"
19+
- "@yarnpkg/plugin-npm-cli"
20+
- "@yarnpkg/plugin-pack"
21+
- "@yarnpkg/plugin-patch"
22+
- "@yarnpkg/plugin-pnp"
23+
- "@yarnpkg/plugin-pnpm"
24+
- "@yarnpkg/plugin-stage"
25+
- "@yarnpkg/plugin-typescript"
26+
- "@yarnpkg/plugin-version"
27+
- "@yarnpkg/plugin-workspace-tools"
28+
- "@yarnpkg/builder"
29+
- "@yarnpkg/cli"
30+
- "@yarnpkg/doctor"
31+
- "@yarnpkg/extensions"
32+
- "@yarnpkg/nm"
33+
- "@yarnpkg/pnpify"
34+
- "@yarnpkg/sdks"
35+
- "@yarnpkg/shell"

packages/yarnpkg-core/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"main": "./sources/index.ts",
66
"exports": {
77
".": "./sources/index.ts",
8+
"./structUtils": "./sources/structUtils.ts",
9+
"./semverUtils": "./sources/semverUtils.ts",
810
"./package.json": "./package.json"
911
},
1012
"sideEffects": false,
@@ -69,6 +71,8 @@
6971
"main": "./lib/index.js",
7072
"exports": {
7173
".": "./lib/index.js",
74+
"./structUtils": "./lib/structUtils.js",
75+
"./semverUtils": "./lib/semverUtils.js",
7276
"./package.json": "./package.json"
7377
}
7478
},

0 commit comments

Comments
 (0)