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:
+5
-3
@@ -21,8 +21,9 @@
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"prepare": "ts-patch install -s",
|
||||
"dev": "vite",
|
||||
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly",
|
||||
"build": "vite build && tsc",
|
||||
"prepublishOnly": "yarn build",
|
||||
"test": "exit 0;",
|
||||
"lint:js": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
|
||||
@@ -54,13 +55,14 @@
|
||||
"postcss-nested": "^5.0.6",
|
||||
"prettier": "^2.4.1",
|
||||
"rollup-plugin-copy": "^3.4.0",
|
||||
"ts-patch": "^2.0.1",
|
||||
"typescript": "^4.4.4",
|
||||
"typescript-transform-paths": "^3.3.1",
|
||||
"unplugin-auto-import": "^0.4.12",
|
||||
"vite": "^2.6.10",
|
||||
"vite-svg-loader": "^2.2.0",
|
||||
"vue": "^3.2.21",
|
||||
"vue-router": "^4.0.12",
|
||||
"vue-tsc": "^0.28.7"
|
||||
"vue-router": "^4.0.12"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vue": "^3.2.21"
|
||||
|
||||
Reference in New Issue
Block a user