diff --git a/src/package_test.ts b/src/package_test.ts index 0d4d17920c9..68a80e9ae33 100644 --- a/src/package_test.ts +++ b/src/package_test.ts @@ -1,4 +1,5 @@ import { expect } from 'chai'; +import { URL } from 'url'; // Generic set of tests to verify the package is built and configured correctly describe('package', () => { diff --git a/tsconfig.json b/tsconfig.json index 68cd4bb16d5..bf18bad069c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,8 @@ "module": "commonjs", "noImplicitAny": false, "suppressImplicitAnyIndexErrors": true, - "target": "es6", + "target": "es2019", + "lib": ["es2020"], "moduleResolution": "node", "removeComments": false, "sourceMap": true,