Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🤖 add isolatedModules: true #72

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 4 additions & 0 deletions packages/template-rax-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.4.14

- [chore] add `isolatedModules: true`

## 0.4.13

- [chore] remove using targets as dir name
Expand Down
2 changes: 1 addition & 1 deletion packages/template-rax-ts/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions packages/template-rax-ts/template/block/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"noImplicitAny": false,
"noImplicitThis": false,
"resolveJsonModule": true,
"isolatedModules": true,
"outDir": "lib",
"rootDir": "src",
"baseUrl": "."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"resolveJsonModule": true,
"outDir": "lib",
"rootDir": "src",
"baseUrl": "."
"baseUrl": ".",
"isolatedModules": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "lib"]
Expand Down
4 changes: 4 additions & 0 deletions packages/template-react-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.7.5

- [chore] add `isolatedModules: true`

## 0.7.4

- [scaffold] update ice map path in tsconfig.json
Expand Down
2 changes: 1 addition & 1 deletion packages/template-react-ts/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 2 additions & 1 deletion packages/template-react-ts/template/block/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"] // 排除编译的文件目录
Expand Down
3 changes: 2 additions & 1 deletion packages/template-react-ts/template/component/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions packages/template-react-ts/template/scaffold/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"skipLibCheck": true,
"isolatedModules": true,
"paths": {
"@/*": ["./src/*"],
"ice": [".ice"]
Expand Down