Skip to content

Commit f05d31c

Browse files
committed
fix: fixed types not building correctly
1 parent 52fd428 commit f05d31c

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

tsconfig.eslint.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{ // i give up, idk why eslint thinks vue files are not included in the regular tsconfig
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"baseUrl": "."
6+
},
7+
"include": [
8+
"**/*"
9+
]
10+
}

tsconfig.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@
1010
"lib": [ "dom", "esnext" ] // dom needed for browser utils
1111
},
1212
"include": [
13-
"src/**/*.ts",
14-
"src/**/*.stories.js",
15-
"src/**/*.d.ts",
16-
"src/**/*.vue",
13+
"**/*.ts",
14+
"**/*.stories.js",
15+
"**/*.d.ts",
16+
"**/*.vue",
1717
// so eslint doesn't bother us, we don't build with tsc anyways, and to emit types, there's tsconfig.types.json
1818
"*.ts",
1919
"*.cjs",
2020
".*.cjs",
2121
"*.js"
2222
],
23-
"tsc-alias": {
24-
"resolveFullPaths": true // for esm compatibility
25-
}
2623
}

tsconfig.types.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
"removeComments": false
1515
},
1616
"exclude": [
17+
"dist/**/*",
1718
"src/App.vue",
1819
"src/main.ts",
1920
"src/TestWrapper.vue",
2021
"*.ts",
2122
"*.cjs",
2223
"*.js"
23-
]
24+
],
25+
"tsc-alias": {
26+
"resolveFullPaths": true // for esm compatibility
27+
}
2428
}

0 commit comments

Comments
 (0)