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