update: Transform d.ts file paths to resolve correctly

* Add typescript-transform-paths plugin as dev-dep
* Add ts-patch as dev-dep
* Use tsc instead of vue-tsc to build declaration files
* Update tsconfig.json to emit declaration and use transform plugin
* Remove vue-tsc from dev-deps

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-16 09:04:42 +01:00
parent 7c72507234
commit 65b73d3f7b
3 changed files with 74 additions and 10 deletions
+8 -3
View File
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"outDir": "./dist",
"baseUrl": ".",
"module": "ESNext",
"target": "es2020",
@@ -8,6 +7,8 @@
"DOM",
"ESNext"
],
"declaration": true,
"declarationDir": "./dist",
"strict": true,
"esModuleInterop": true,
"incremental": false,
@@ -24,9 +25,13 @@
"~/*": [
"src/*"
]
}
},
"plugins": [
// Transform paths in output .d.ts files (Include this line if you output declarations files)
{ "transform": "typescript-transform-paths", "afterDeclarations": true }
]
},
"include": ["src"],
"include": ["src/**/*"],
"exclude": [
"node_modules",
"build",