Skip to content

Commit aae8c0f

Browse files
authored
build: remove outdated prepare.ts steps (#501)
1 parent c06f452 commit aae8c0f

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

scripts/prepare.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
import {rm} from 'node:fs/promises';
88
import {resolve} from 'node:path';
99

10-
import {sed} from './sed.ts';
11-
1210
const projectRoot = process.cwd();
1311

1412
const filesToRemove = [
1513
'node_modules/chrome-devtools-frontend/package.json',
1614
'node_modules/chrome-devtools-frontend/front_end/models/trace/lantern/testing',
1715
'node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/package.json',
18-
'node_modules/chrome-devtools-frontend/front_end/third_party/codemirror.next/codemirror.next.js',
1916
];
2017

2118
async function main() {
@@ -30,28 +27,6 @@ async function main() {
3027
process.exit(1);
3128
}
3229
}
33-
// TODO: remove once https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7072054 is available.
34-
sed(
35-
'node_modules/chrome-devtools-frontend/front_end/core/sdk/NetworkManager.ts',
36-
`declare global {
37-
// TS typedefs are not up to date
38-
interface URLPattern {
39-
hash: string;
40-
hostname: string;
41-
password: string;
42-
pathname: string;
43-
port: string;
44-
protocol: string;
45-
search: string;
46-
username: string;
47-
hasRegExpGroups: boolean;
48-
test(url: string): boolean;
49-
}
50-
/* eslint-disable-next-line @typescript-eslint/naming-convention */
51-
var URLPattern: {prototype: URLPattern, new (input: string): URLPattern};
52-
}`,
53-
'',
54-
);
5530
console.log('Clean up of chrome-devtools-frontend complete.');
5631
}
5732

0 commit comments

Comments
 (0)