Update TypeScript config to ES2020 to fix AJV imports (#1297)

This commit is contained in:
Matt 2025-12-15 15:33:10 +00:00 • committed by GitHub
commit 34c9e165fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,7 @@
* AJV-based JSON Schema validator provider
*/
import { Ajv } from 'ajv';
import Ajv from 'ajv';
import _addFormats from 'ajv-formats';
import type { JsonSchemaType, JsonSchemaValidator, JsonSchemaValidatorResult, jsonSchemaValidator } from './types.js';

View file

@ -1,14 +1,15 @@
{
"compilerOptions": {
"target": "es2018",
"module": "Node16",
"moduleResolution": "Node16",
"target": "es2020",
"module": "es2022",
"moduleResolution": "bundler",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"strict": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,