@@ -6,11 +6,15 @@ import { AllPackages, getDefinitelyTyped } from "@definitelytyped/definitions-pa
6
6
import { NpmPublishClient } from "@definitelytyped/utils" ;
7
7
import { graphql } from "@octokit/graphql" ;
8
8
import search from "libnpmsearch" ;
9
+ // @ts -expect-error
10
+ import { packages } from "typescript-dom-lib-generator/deploy/createTypesPackages.js" ;
9
11
import yargs from "yargs" ;
10
12
11
13
( async ( ) => {
12
- const { dryRun } = yargs . argv as never ;
14
+ const { dryRun } = yargs ( process . argv ) . argv as never ;
13
15
const options = { definitelyTypedPath : undefined , progress : false , parseInParallel : false } ;
16
+ // @ts -expect-error
17
+ const domLibs = new Set ( packages . map ( ( pkg ) => pkg . name ) ) ;
14
18
const dt = await getDefinitelyTyped ( options , console ) ;
15
19
const allPackages = await AllPackages . read ( dt ) ;
16
20
const client = await NpmPublishClient . create ( process . env . NPM_TOKEN ! ) ;
@@ -22,6 +26,8 @@ import yargs from "yargs";
22
26
// Won't return already-deprecated packages.
23
27
results = await search ( "@types" , opts ) ;
24
28
for ( const result of results ) {
29
+ // Skip @types /web, etc.
30
+ if ( domLibs . has ( result . name ) ) continue ;
25
31
const types = result . name . slice ( "@types/" . length ) ;
26
32
// Skip ones that exist, either in the types/ directory or in notNeededPackages.json.
27
33
if ( allPackages . tryGetLatestVersion ( types ) || allPackages . getNotNeededPackage ( types ) ) continue ;
0 commit comments