Skip to content

Commit 34c9e16

Browse files
authored
Update TypeScript config to ES2020 to fix AJV imports (#1297)
1 parent 67d79d4 commit 34c9e16

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/validation/ajv-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* AJV-based JSON Schema validator provider
33
*/
44

5-
import { Ajv } from 'ajv';
5+
import Ajv from 'ajv';
66
import _addFormats from 'ajv-formats';
77
import type { JsonSchemaType, JsonSchemaValidator, JsonSchemaValidatorResult, jsonSchemaValidator } from './types.js';
88

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"compilerOptions": {
3-
"target": "es2018",
4-
"module": "Node16",
5-
"moduleResolution": "Node16",
3+
"target": "es2020",
4+
"module": "es2022",
5+
"moduleResolution": "bundler",
66
"declaration": true,
77
"declarationMap": true,
88
"sourceMap": true,
99
"outDir": "./dist",
1010
"strict": true,
1111
"esModuleInterop": true,
12+
"allowSyntheticDefaultImports": true,
1213
"forceConsistentCasingInFileNames": true,
1314
"resolveJsonModule": true,
1415
"isolatedModules": true,

0 commit comments

Comments
 (0)