Update TypeScript config to ES2020 to fix AJV imports (#1297)
This commit is contained in:
parent
67d79d45ee
commit
34c9e165fe
2 changed files with 5 additions and 4 deletions
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue