File tree Expand file tree Collapse file tree 5 files changed +23
-6
lines changed
Expand file tree Collapse file tree 5 files changed +23
-6
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "extends" : " @tomjs/tsconfig/vue-dom.json" ,
33 "compilerOptions" : {
4+ "composite" : true ,
45 "tsBuildInfoFile" : " ./node_modules/.tmp/tsconfig.app.tsbuildinfo" ,
56 "paths" : {
67 "@/*" : [
Original file line number Diff line number Diff line change 11{
22 "extends" : " @tomjs/tsconfig/node.json" ,
33 "compilerOptions" : {
4- "tsBuildInfoFile" : " ./node_modules/.tmp/tsconfig.node.tsbuildinfo"
4+ "tsBuildInfoFile" : " ./node_modules/.tmp/tsconfig.node.tsbuildinfo" ,
5+ "types" : [
6+ " @tomjs/hbuilderx/types" ,
7+ " @tomjs/vite-plugin-hbuilderx/types"
8+ ]
59 },
610 "include" : [
711 " hbuilderx.d.ts" ,
8- " extension/**/*.ts" ,
9- " extension/**/*.d.ts" ,
12+ " extension" ,
1013 " vite.config.ts"
1114 ]
1215}
Original file line number Diff line number Diff line change @@ -70,6 +70,19 @@ npm add -D @tomjs/vite-plugin-hbuilderx
7070
7171### extension
7272
73+ ` tsconfig.json `
74+
75+ ``` json
76+ {
77+ "compilerOptions" : {
78+ "types" : [
79+ " @tomjs/hbuilderx/types" ,
80+ " @tomjs/vite-plugin-hbuilderx/types"
81+ ]
82+ }
83+ }
84+ ```
85+
7386代码片段,更多配置看示例
7487
7588``` ts
Original file line number Diff line number Diff line change 2626 "." : " ./dist/index.js" ,
2727 "./webview" : " ./dist/webview.js" ,
2828 "./client" : " ./dist/client.iife.js" ,
29- "./env" : " ./env.d.ts"
29+ "./types" : {
30+ "types" : " ./env.d.ts"
31+ }
3032 },
3133 "module" : " ./dist/index.js" ,
3234 "types" : " ./dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments