Skip to content

Commit 4218131

Browse files
authored
fix(cli): remove deprecated patch-compat-table command (#8638)
1 parent 9adb404 commit 4218131

6 files changed

Lines changed: 13 additions & 323 deletions

File tree

packages/cli/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@
3030
},
3131
"files": [
3232
"dist",
33-
"CLAUDE.md",
34-
"patches"
33+
"CLAUDE.md"
3534
],
3635
"dependencies": {
37-
"dedent": "1.7.2",
38-
"execa": "9.6.1",
39-
"patch-package": "8.0.1"
36+
"dedent": "1.7.2"
4037
}
4138
}

packages/cli/patches/@ui5+webcomponents-compat+2.11.0.patch

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

packages/cli/patches/@ui5+webcomponents-react-compat+2.10.1.patch

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

packages/cli/src/bin/index.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#!/usr/bin/env node
2-
import { relative, resolve } from 'node:path';
3-
import { fileURLToPath } from 'node:url';
2+
import { resolve } from 'node:path';
43
import { parseArgs } from 'node:util';
54
import * as process from 'process';
6-
import { $ } from 'execa';
75

86
const { positionals } = parseArgs({ allowPositionals: true, strict: false });
97

@@ -123,21 +121,6 @@ switch (command) {
123121
break;
124122
}
125123

126-
case 'patch-compat-table': {
127-
const patchesPath = relative(process.cwd(), fileURLToPath(new URL('../../patches', import.meta.url)));
128-
console.warn(
129-
'This command is deprecated and will be removed in the future. Please apply scoping to the "compat" table and its subcomponents manually: https://ui5.github.io/webcomponents-react/v2/?path=/docs/legacy-components-docs--docs#using-the-compat-v1-table-together-with-the-v2-table-in-one-application',
130-
);
131-
try {
132-
await $`patch-package --patch-dir ${patchesPath}`;
133-
console.log('Patches applied successfully!');
134-
} catch (error) {
135-
console.error('Failed to apply patches:', error);
136-
process.exit(1);
137-
}
138-
139-
break;
140-
}
141124
default:
142125
console.warn('Unknown command', command);
143126
process.exit(1);

packages/cli/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"types": ["node"],
99
"skipLibCheck": true
1010
},
11-
"include": ["src", "**/*.json", "patches"]
11+
"include": ["src", "**/*.json"]
1212
}

0 commit comments

Comments
 (0)