Skip to content

Commit

Permalink
Removes the compatibility layer for Clipanion 2 (#4262)
Browse files Browse the repository at this point in the history
* Removes the compatibility layer for Clipanion 2

* Removes compat file
  • Loading branch information
arcanis committed Mar 25, 2022
1 parent 8e87c0e commit fde9dfa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
23 changes: 23 additions & 0 deletions .yarn/versions/6d6580e4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
releases:
"@yarnpkg/cli": major

declined:
- "@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"

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = ({modules, plugins}) => {
}).join(``);

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

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

return {
code: [
`import {backportClipanionCompatibility} from './backportClipanionCompatibility';\n`,
`\n`,
importSegment,
`export const getPluginConfiguration = () => ({\n`,
moduleSegment,
Expand Down

0 comments on commit fde9dfa

Please sign in to comment.