From 10215b4631cbb767f7c0eded0d461496a4009d95 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 17 Nov 2021 01:39:50 +0100 Subject: [PATCH] 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> --- package.json | 5 +- .../Background/Background.vue | 4 +- .../Controls/Controls.vue | 4 +- src/additional-components/MiniMap/MiniMap.vue | 4 +- .../ConnectionLine/ConnectionLine.vue | 4 +- src/components/Edges/BezierEdge.vue | 2 +- src/components/Edges/Edge.vue | 4 +- src/components/Edges/EdgeAnchor.vue | 2 +- src/components/Edges/SmoothStepEdge.vue | 2 +- src/components/Edges/StepEdge.vue | 2 +- src/components/Edges/StraightEdge.vue | 2 +- src/components/Handle/Handle.vue | 4 +- src/components/Nodes/DefaultNode.vue | 2 +- src/components/Nodes/InputNode.vue | 2 +- src/components/Nodes/Node.vue | 4 +- src/components/Nodes/OutputNode.vue | 2 +- .../NodesSelection/NodesSelection.vue | 4 +- .../UserSelection/UserSelection.vue | 2 +- src/components/UserSelection/utils.ts | 2 +- src/container/EdgeRenderer/EdgeRenderer.vue | 8 +- src/container/EdgeRenderer/utils.ts | 2 +- src/container/NodeRenderer/NodeRenderer.vue | 6 +- src/container/SelectionPane/SelectionPane.vue | 10 +- src/container/VueFlow/VueFlow.vue | 16 +- src/container/ZoomPane/ZoomPane.vue | 6 +- yarn.lock | 163 +++++++++++------- 26 files changed, 153 insertions(+), 115 deletions(-) diff --git a/package.json b/package.json index f23c250f..2a212376 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/additional-components/Background/Background.vue b/src/additional-components/Background/Background.vue index 024e519e..e1ed7390 100644 --- a/src/additional-components/Background/Background.vue +++ b/src/additional-components/Background/Background.vue @@ -1,7 +1,7 @@