update(dist): Remove rollup and use vite to build lib

* Remove custom tsconfig paths to avoid resolving issues on published package
This commit is contained in:
Braks
2021-11-06 08:54:35 +01:00
parent 64df75d405
commit 61779638ac
59 changed files with 282 additions and 177 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import Handle from '~/components/Handle/Handle.vue'
import { NodeProps, Position } from '~/types'
import Handle from '../Handle/Handle.vue'
import { NodeProps, Position } from '../../types'
interface DefaultNodeProps extends NodeProps {
data?: NodeProps['data']
+2 -2
View File
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import Handle from '~/components/Handle/Handle.vue'
import { NodeProps, Position } from '~/types'
import Handle from '../Handle/Handle.vue'
import { NodeProps, Position } from '../../types'
interface InputNodeProps extends NodeProps {
data?: NodeProps['data']
+3 -3
View File
@@ -1,8 +1,8 @@
<script lang="ts" setup>
import { DraggableEventListener, DraggableCore } from '@braks/revue-draggable'
import { Node, NodeType, SnapGrid } from '~/types'
import { NodeIdContextKey } from '~/context'
import { useHooks, useStore } from '~/composables'
import { Node, NodeType, SnapGrid } from '../../types'
import { NodeIdContextKey } from '../../context'
import { useHooks, useStore } from '../../composables'
interface NodeProps {
node: Node
+2 -2
View File
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import Handle from '~/components/Handle/Handle.vue'
import { NodeProps, Position } from '~/types'
import Handle from '../Handle/Handle.vue'
import { NodeProps, Position } from '../../types'
interface OutputNodeProps extends NodeProps {
data?: NodeProps['data']
+2 -2
View File
@@ -1,5 +1,5 @@
import { HandleElement, Position } from '~/types'
import { getDimensions } from '~/utils'
import { HandleElement, Position } from '../../types'
import { getDimensions } from '../../utils'
export const getHandleBoundsByHandleType = (
selector: string,