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:
+8
-3
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user