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 4a0c4bf..d7b22ac 100644 --- a/packages/template-rax-ts/CHANGELOG.md +++ b/packages/template-rax-ts/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.4.14 + +- [chore] add `isolatedModules: true` + ## 0.4.13 - [chore] remove using targets as dir name 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" 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"]