Skip to content

Commit 9caf8d6

Browse files
authored
fix: add ES2022.RegExp for RegExpIndicesArray; fixes #2603 (#2604)
without ES2022.RegExp, `npm install` will fail due to RegExpIndicesArray not being present in the ES2018 lib. Specifically: ```sh $ npm install > [email protected] prepublish > npm run build > [email protected] build > rm -rf dist && tsc && cp -r lib/refs dist && rm dist/refs/json-schema-2019-09/index.ts && rm dist/refs/json-schema-2020-12/index.ts && rm dist/refs/jtd-schema.ts node_modules/re2/re2.d.ts:11:15 - error TS2304: Cannot find name 'RegExpIndicesArray'. 11 indices?: RegExpIndicesArray; ~~~~~~~~~~~~~~~~~~ Found 1 error in node_modules/re2/re2.d.ts:11 ```
1 parent 2065350 commit 9caf8d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"include": ["lib"],
44
"compilerOptions": {
55
"outDir": "dist",
6-
"lib": ["ES2018", "DOM"],
6+
"lib": ["ES2018", "ES2022.RegExp", "DOM"],
77
"types": ["node"],
88
"allowJs": true,
99
"target": "ES2018",

0 commit comments

Comments
 (0)