Skip to content

Commit fde9dfa

Browse files
authored
Removes the compatibility layer for Clipanion 2 (#4262)
* Removes the compatibility layer for Clipanion 2 * Removes compat file
1 parent 8e87c0e commit fde9dfa

File tree

3 files changed

+24
-27
lines changed

3 files changed

+24
-27
lines changed

.yarn/versions/6d6580e4.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
releases:
2+
"@yarnpkg/cli": major
3+
4+
declined:
5+
- "@yarnpkg/plugin-compat"
6+
- "@yarnpkg/plugin-constraints"
7+
- "@yarnpkg/plugin-dlx"
8+
- "@yarnpkg/plugin-essentials"
9+
- "@yarnpkg/plugin-init"
10+
- "@yarnpkg/plugin-interactive-tools"
11+
- "@yarnpkg/plugin-nm"
12+
- "@yarnpkg/plugin-npm-cli"
13+
- "@yarnpkg/plugin-pack"
14+
- "@yarnpkg/plugin-patch"
15+
- "@yarnpkg/plugin-pnp"
16+
- "@yarnpkg/plugin-pnpm"
17+
- "@yarnpkg/plugin-stage"
18+
- "@yarnpkg/plugin-typescript"
19+
- "@yarnpkg/plugin-version"
20+
- "@yarnpkg/plugin-workspace-tools"
21+
- "@yarnpkg/builder"
22+
- "@yarnpkg/core"
23+
- "@yarnpkg/doctor"

packages/yarnpkg-cli/sources/tools/backportClipanionCompatibility.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/yarnpkg-cli/sources/tools/getPluginConfiguration.val.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = ({modules, plugins}) => {
77
}).join(``);
88

99
const moduleSegment = ` modules: new Map([\n${modules.map((request, index) => {
10-
return ` [${JSON.stringify(require(`${request}/package.json`).name)}, ${request === `clipanion` ? `backportClipanionCompatibility` : ``}(_${index})],\n`;
10+
return ` [${JSON.stringify(require(`${request}/package.json`).name)}, _${index}],\n`;
1111
}).join(``)} ]),\n`;
1212

1313
const pluginSegment = ` plugins: new Set([\n${plugins.map(request => {
@@ -16,8 +16,6 @@ module.exports = ({modules, plugins}) => {
1616

1717
return {
1818
code: [
19-
`import {backportClipanionCompatibility} from './backportClipanionCompatibility';\n`,
20-
`\n`,
2119
importSegment,
2220
`export const getPluginConfiguration = () => ({\n`,
2321
moduleSegment,

0 commit comments

Comments
 (0)