Skip to content

Commit e6639ca

Browse files
committed
Update TypeScript config to ES2020 with bundler resolution and fix Ajv import
Changes module system from Node16 to ES2020 with bundler resolution, adds allowSyntheticDefaultImports flag, and updates Ajv import to use default import instead of named import.
1 parent 67d79d4 commit e6639ca

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": "es2020",
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)