From 5712dd8d68c429122b1d144b13cd012c013d03b4 Mon Sep 17 00:00:00 2001 From: maoxiaoke Date: Wed, 8 Dec 2021 12:35:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20`isolatedModu?= =?UTF-8?q?les:=20true`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/component/tsconfig.json | 3 ++- packages/template-rax-ts/CHANGELOG.md | 5 +++++ packages/template-rax-ts/package.json | 2 +- packages/template-rax-ts/template/block/tsconfig.json | 1 + .../template-rax-ts/template/component/tsconfig.json.ejs | 3 ++- packages/template-react-ts/CHANGELOG.md | 4 ++++ packages/template-react-ts/package.json | 2 +- packages/template-react-ts/template/block/tsconfig.json | 3 ++- packages/template-react-ts/template/component/tsconfig.json | 3 ++- packages/template-react-ts/template/scaffold/tsconfig.json | 1 + 10 files changed, 21 insertions(+), 6 deletions(-) diff --git a/packages/template-icestark-module-ts/template/component/tsconfig.json b/packages/template-icestark-module-ts/template/component/tsconfig.json index a511d68..574785d 100644 --- a/packages/template-icestark-module-ts/template/component/tsconfig.json +++ b/packages/template-icestark-module-ts/template/component/tsconfig.json @@ -14,7 +14,8 @@ "noImplicitReturns": true, "noImplicitThis": true, "noImplicitAny": true, - "skipLibCheck": true + "skipLibCheck": true, + "isolatedModules": true }, "include": ["src/*.ts", "src/*.tsx"], "exclude": ["node_modules", "build", "public"] diff --git a/packages/template-rax-ts/CHANGELOG.md b/packages/template-rax-ts/CHANGELOG.md index 7b776a2..ef91bbe 100644 --- a/packages/template-rax-ts/CHANGELOG.md +++ b/packages/template-rax-ts/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog + +## 0.4.13 + +- [chore] add `isolatedModules: true` + ## 0.4.12 - [component] upgrade `build-scripts` to 1.x diff --git a/packages/template-rax-ts/package.json b/packages/template-rax-ts/package.json index 22b5bed..db4a7ea 100644 --- a/packages/template-rax-ts/package.json +++ b/packages/template-rax-ts/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/template-rax", - "version": "0.4.12", + "version": "0.4.13", "description": "Rax 物料模板", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/packages/template-rax-ts/template/block/tsconfig.json b/packages/template-rax-ts/template/block/tsconfig.json index 65a160e..d63d3c0 100644 --- a/packages/template-rax-ts/template/block/tsconfig.json +++ b/packages/template-rax-ts/template/block/tsconfig.json @@ -18,6 +18,7 @@ "noImplicitAny": false, "noImplicitThis": false, "resolveJsonModule": true, + "isolatedModules": true, "outDir": "lib", "rootDir": "src", "baseUrl": "." diff --git a/packages/template-rax-ts/template/component/tsconfig.json.ejs b/packages/template-rax-ts/template/component/tsconfig.json.ejs index 65a160e..e0e60e5 100644 --- a/packages/template-rax-ts/template/component/tsconfig.json.ejs +++ b/packages/template-rax-ts/template/component/tsconfig.json.ejs @@ -20,7 +20,8 @@ "resolveJsonModule": true, "outDir": "lib", "rootDir": "src", - "baseUrl": "." + "baseUrl": ".", + "isolatedModules": true }, "include": ["src/**/*"], "exclude": ["node_modules", "lib"] diff --git a/packages/template-react-ts/CHANGELOG.md b/packages/template-react-ts/CHANGELOG.md index 435951d..09133f9 100644 --- a/packages/template-react-ts/CHANGELOG.md +++ b/packages/template-react-ts/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.7.5 + +- [chore] add `isolatedModules: true` + ## 0.7.4 - [scaffold] update ice map path in tsconfig.json diff --git a/packages/template-react-ts/package.json b/packages/template-react-ts/package.json index 21ee708..665c360 100644 --- a/packages/template-react-ts/package.json +++ b/packages/template-react-ts/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/ice-react-ts-material-template", - "version": "0.7.4", + "version": "0.7.5", "description": "自定义物料源的初始模板", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/packages/template-react-ts/template/block/tsconfig.json b/packages/template-react-ts/template/block/tsconfig.json index 000156e..bed5f06 100644 --- a/packages/template-react-ts/template/block/tsconfig.json +++ b/packages/template-react-ts/template/block/tsconfig.json @@ -15,7 +15,8 @@ "noImplicitReturns": true, "noImplicitThis": true, "noImplicitAny": true, - "skipLibCheck": true + "skipLibCheck": true, + "isolatedModules": true }, "include": ["src/*.ts", "src/*.tsx"], // 需要编译的文件目录 "exclude": ["node_modules", "build", "public"] // 排除编译的文件目录 diff --git a/packages/template-react-ts/template/component/tsconfig.json b/packages/template-react-ts/template/component/tsconfig.json index a511d68..574785d 100644 --- a/packages/template-react-ts/template/component/tsconfig.json +++ b/packages/template-react-ts/template/component/tsconfig.json @@ -14,7 +14,8 @@ "noImplicitReturns": true, "noImplicitThis": true, "noImplicitAny": true, - "skipLibCheck": true + "skipLibCheck": true, + "isolatedModules": true }, "include": ["src/*.ts", "src/*.tsx"], "exclude": ["node_modules", "build", "public"] diff --git a/packages/template-react-ts/template/scaffold/tsconfig.json b/packages/template-react-ts/template/scaffold/tsconfig.json index bf65f22..311521d 100644 --- a/packages/template-react-ts/template/scaffold/tsconfig.json +++ b/packages/template-react-ts/template/scaffold/tsconfig.json @@ -22,6 +22,7 @@ "suppressImplicitAnyIndexErrors": true, "noUnusedLocals": true, "skipLibCheck": true, + "isolatedModules": true, "paths": { "@/*": ["./src/*"], "ice": [".ice"] From 66bd3c711ef1843ea44c9f51492cf18c227289af Mon Sep 17 00:00:00 2001 From: maoxiaoke Date: Mon, 20 Dec 2021 11:14:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=F0=9F=A4=96=20modify=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/template-rax-ts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/template-rax-ts/package.json b/packages/template-rax-ts/package.json index db4a7ea..497f770 100644 --- a/packages/template-rax-ts/package.json +++ b/packages/template-rax-ts/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/template-rax", - "version": "0.4.13", + "version": "0.4.14", "description": "Rax 物料模板", "scripts": { "test": "echo \"Error: no test specified\" && exit 1"