chore: enforce erasable syntax in shared tsconfig (#42735)

This commit is contained in:
yyh authored and GitHub committed 2026-09-22 09:53:25 +00:00
1 parent 963a28b497
commit 509f3407a5
12 files changed
+31 -46

No files matched your search

+5 -1
View File
@@ -24,9 +24,13 @@
},
"scripts": {
"check:dimensions": "tsx ./scripts/check-icon-dimensions.ts",
"generate": "tsx ./scripts/generate-collections.ts"
"generate": "tsx ./scripts/generate-collections.ts",
"type-check": "tsc"
},
"devDependencies": {
"@dify/tsconfig": "workspace:*",
"@types/node": "catalog:",
"@typescript/native": "catalog:",
"iconify-import-svg": "catalog:",
"tsx": "catalog:"
}
@@ -0,0 +1,4 @@
{
"extends": "@dify/tsconfig/node.json",
"include": ["scripts/**/*.ts"]
}
+1 -2
View File
@@ -1,8 +1,7 @@
{
"extends": "@dify/tsconfig/node.json",
"compilerOptions": {
"allowImportingTsExtensions": true,
"erasableSyntaxOnly": true
"allowImportingTsExtensions": true
},
"include": ["*.ts"]
}
+1
View File
@@ -8,6 +8,7 @@
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": true,
"erasableSyntaxOnly": true,
"strict": true,
"noUncheckedIndexedAccess": true,