From 69e7d8e3c0619556830fd55ba6d58671c6c08eb2 Mon Sep 17 00:00:00 2001 From: Adam Mcgrath Date: Wed, 28 Jun 2023 18:57:07 +0100 Subject: [PATCH] Fix issue with TS rewriting fetch dynamic imports (#878) --- package.json | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ef3bf8089..13827f6f2 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "build": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json && echo '{\"type\": \"commonjs\"}'> dist/cjs/package.json", "docs": "typedoc --options typedoc.cjs", "test": "npm run test:mocha && npm run test:jest", - "test:mocha": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' mocha", + "test:mocha": "TS_NODE_COMPILER_OPTIONS='{\"moduleResolution\":\"node\"}' NODE_OPTIONS='--experimental-vm-modules --no-warnings' mocha", "test:jest": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest", "test:ci": "c8 npm run test", "precommit": "pretty-quick --staged", diff --git a/tsconfig.json b/tsconfig.json index a61715b61..a98b0f475 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "esModuleInterop": true, "sourceMap": true, "declaration": false, - "moduleResolution": "node", + "moduleResolution": "node16", "skipLibCheck": true, "module": "ESNext", "strict": true