From 2e279e876b4f6209fc75ef1f54f90d6889aa77a4 Mon Sep 17 00:00:00 2001 From: lijiaheng Date: Sat, 6 May 2023 15:50:45 +0800 Subject: [PATCH 1/2] feat: add module for tsconfig.node --- template/tsconfig/base/tsconfig.node.json | 1 + 1 file changed, 1 insertion(+) diff --git a/template/tsconfig/base/tsconfig.node.json b/template/tsconfig/base/tsconfig.node.json index 779f2cc0..04deb324 100644 --- a/template/tsconfig/base/tsconfig.node.json +++ b/template/tsconfig/base/tsconfig.node.json @@ -3,6 +3,7 @@ "include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"], "compilerOptions": { "composite": true, + "module": "esnext", "types": ["node"] } } From 4b5a2a038785c6d0e3881c5a9909aaabf267cdd7 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Sat, 6 May 2023 16:39:02 +0800 Subject: [PATCH 2/2] chore: `esnext` -> `ESNext` Though it makes no difference in practical use, `ESNext` matches the one specified in the JSON schema https://json.schemastore.org/tsconfig --- template/tsconfig/base/tsconfig.node.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/tsconfig/base/tsconfig.node.json b/template/tsconfig/base/tsconfig.node.json index 04deb324..a52f76f3 100644 --- a/template/tsconfig/base/tsconfig.node.json +++ b/template/tsconfig/base/tsconfig.node.json @@ -3,7 +3,7 @@ "include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"], "compilerOptions": { "composite": true, - "module": "esnext", + "module": "ESNext", "types": ["node"] } }