From 2981acbb8d2bd48037b1b06afdc1d13d690ebc67 Mon Sep 17 00:00:00 2001 From: Nikita Skovoroda Date: Sat, 28 Dec 2024 23:18:26 +0300 Subject: [PATCH] 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 - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). - [x] I have set the packages that need to be released for my changes to be effective. - [x] I will check that all automated PR checks pass before the PR gets reviewed. --- .yarn/versions/30ae755e.yml | 35 ++++++++++++++++++++++++++++++ packages/yarnpkg-core/package.json | 4 ++++ 2 files changed, 39 insertions(+) create mode 100644 .yarn/versions/30ae755e.yml diff --git a/.yarn/versions/30ae755e.yml b/.yarn/versions/30ae755e.yml new file mode 100644 index 00000000000..1e428af4766 --- /dev/null +++ b/.yarn/versions/30ae755e.yml @@ -0,0 +1,35 @@ +releases: + "@yarnpkg/core": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugin-constraints" + - "@yarnpkg/plugin-dlx" + - "@yarnpkg/plugin-essentials" + - "@yarnpkg/plugin-exec" + - "@yarnpkg/plugin-file" + - "@yarnpkg/plugin-git" + - "@yarnpkg/plugin-github" + - "@yarnpkg/plugin-http" + - "@yarnpkg/plugin-init" + - "@yarnpkg/plugin-interactive-tools" + - "@yarnpkg/plugin-link" + - "@yarnpkg/plugin-nm" + - "@yarnpkg/plugin-npm" + - "@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/cli" + - "@yarnpkg/doctor" + - "@yarnpkg/extensions" + - "@yarnpkg/nm" + - "@yarnpkg/pnpify" + - "@yarnpkg/sdks" + - "@yarnpkg/shell" diff --git a/packages/yarnpkg-core/package.json b/packages/yarnpkg-core/package.json index 0a085cfbc7b..4d33ad78532 100644 --- a/packages/yarnpkg-core/package.json +++ b/packages/yarnpkg-core/package.json @@ -5,6 +5,8 @@ "main": "./sources/index.ts", "exports": { ".": "./sources/index.ts", + "./structUtils": "./sources/structUtils.ts", + "./semverUtils": "./sources/semverUtils.ts", "./package.json": "./package.json" }, "sideEffects": false, @@ -69,6 +71,8 @@ "main": "./lib/index.js", "exports": { ".": "./lib/index.js", + "./structUtils": "./lib/structUtils.js", + "./semverUtils": "./lib/semverUtils.js", "./package.json": "./package.json" } },