mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
chore: enforce erasable syntax in shared tsconfig (#42735)
This commit is contained in:
12 files changed
+31
-46
No files matched your search
@@ -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,8 +1,7 @@
|
||||
{
|
||||
"extends": "@dify/tsconfig/node.json",
|
||||
"compilerOptions": {
|
||||
"allowImportingTsExtensions": true,
|
||||
"erasableSyntaxOnly": true
|
||||
"allowImportingTsExtensions": true
|
||||
},
|
||||
"include": ["*.ts"]
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
"moduleDetection": "force",
|
||||
"isolatedModules": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
|
||||
"strict": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
|
||||
Reference in new issue
Block a user