Skip to content

Commit

Permalink
fix: typescript build error
Browse files Browse the repository at this point in the history
  • Loading branch information
chilingling committed Dec 18, 2024
1 parent 8a73c46 commit 2db2210
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 32 deletions.
2 changes: 1 addition & 1 deletion packages/block-compiler/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ interface compiledItem {
blobURL: string
}

interface IResultMap {
export interface IResultMap {
[key: string]: compiledItem
}

Expand Down
27 changes: 0 additions & 27 deletions packages/block-compiler/tsconfig.app.json

This file was deleted.

26 changes: 25 additions & 1 deletion packages/block-compiler/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
{
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"emitDeclarationOnly": true,
"jsx": "preserve",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["./src/**/*.ts", "./src/**/*.tsx", "./src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
}
5 changes: 2 additions & 3 deletions packages/block-compiler/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
"noFallthroughCasesInSwitch": true
},
"include": ["./vite.config.ts", "./.eslintrc.cjs"]
"include": ["vite.config.ts", ".eslintrc.cjs"]
}

0 comments on commit 2db2210

Please sign in to comment.