From 083cd893d7e6446c61d99f934ea9ec795126913b Mon Sep 17 00:00:00 2001 From: ahnpnl Date: Wed, 10 Jul 2024 01:23:41 +0200 Subject: [PATCH] test(examples): use `module: Node16` for CJS tests where possible --- examples/js-with-babel/tsconfig.json | 2 +- examples/js-with-ts/tsconfig.json | 2 +- examples/monorepo-app/tsconfig.base.json | 2 +- examples/react-app/tsconfig.spec.json | 2 +- examples/ts-only/tsconfig.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/js-with-babel/tsconfig.json b/examples/js-with-babel/tsconfig.json index a299f08b63..06c64d06da 100644 --- a/examples/js-with-babel/tsconfig.json +++ b/examples/js-with-babel/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "CommonJS", + "module": "Node16", "target": "ESNext", "allowJs": true, "types": ["jest"], diff --git a/examples/js-with-ts/tsconfig.json b/examples/js-with-ts/tsconfig.json index 8c7dda375a..24dd15b095 100644 --- a/examples/js-with-ts/tsconfig.json +++ b/examples/js-with-ts/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "CommonJS", + "module": "Node16", "target": "ESNext", "allowJs": true, "skipLibCheck": true, diff --git a/examples/monorepo-app/tsconfig.base.json b/examples/monorepo-app/tsconfig.base.json index 91ef0b80cb..066530a0a5 100644 --- a/examples/monorepo-app/tsconfig.base.json +++ b/examples/monorepo-app/tsconfig.base.json @@ -12,7 +12,7 @@ "importHelpers": true, "skipLibCheck": true, "target": "ESNext", - "module": "CommonJS", + "module": "Node16", "lib": ["ESNext", "dom"], "types": ["jest"] } diff --git a/examples/react-app/tsconfig.spec.json b/examples/react-app/tsconfig.spec.json index 7b9c93977b..9b55e8f8db 100644 --- a/examples/react-app/tsconfig.spec.json +++ b/examples/react-app/tsconfig.spec.json @@ -2,8 +2,8 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "CommonJS", - "target": "ESNext", "moduleResolution": "Node10", + "target": "ESNext", "skipLibCheck": true, "types": ["jest"] } diff --git a/examples/ts-only/tsconfig.json b/examples/ts-only/tsconfig.json index 61ef104119..8e2dc63a31 100644 --- a/examples/ts-only/tsconfig.json +++ b/examples/ts-only/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "CommonJS", + "module": "Node16", "target": "ESNext", "skipLibCheck": true, "types": ["jest"]