update: create vue.d.ts files

* add vue-tsc to emit d.ts files from vue components
* use absolute paths in components
* avoids conflicts with ts custom paths in vue-tsc generated vue.d.ts files

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-17 01:39:50 +01:00
parent a21238f9aa
commit 10215b4631
26 changed files with 153 additions and 115 deletions
+3 -2
View File
@@ -23,7 +23,7 @@
"scripts": {
"prepare": "ts-patch install -s",
"dev": "vite",
"build": "vite build && tsc && rm -rf tmp",
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly && tsc && rm -rf tmp",
"prepublishOnly": "yarn build",
"test": "exit 0;",
"lint:js": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
@@ -62,7 +62,8 @@
"vite": "^2.6.10",
"vite-svg-loader": "^2.2.0",
"vue": "^3.2.21",
"vue-router": "^4.0.12"
"vue-router": "^4.0.12",
"vue-tsc": "^0.29.5"
},
"peerDependencies": {
"vue": "^3.2.21"