chore(docs): update typedocs config to use vueflow pkg as entry

This commit is contained in:
braks
2022-10-10 21:33:44 +02:00
committed by Braks
parent 4587540ef3
commit 028d79306c
5 changed files with 17 additions and 14 deletions
-2
View File
@@ -8,7 +8,6 @@ import IconsResolver from 'unplugin-icons/resolver'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'
import { useVueFlow } from '@vue-flow/core'
import { copyVueFlowPlugin } from './copy-plugin'
import head from './head'
const { vueFlowVersion } = useVueFlow()
@@ -50,7 +49,6 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
exclude: ['@animxyz/vue3'],
},
plugins: [
copyVueFlowPlugin(),
AutoImport({
imports: ['vue', '@vueuse/core'],
dts: resolve(__dirname, '../auto-imports.d.ts'),
+5 -2
View File
@@ -7,8 +7,11 @@ export function copyVueFlowPlugin(): Plugin {
name: 'copy-vue-flow',
generateBundle() {
;[
{ path: '../../node_modules/@vue-flow/core/dist/', pkgName: 'vue-flow.es.js' },
{ path: '../../node_modules/@vue-flow/additional-components/dist/', pkgName: 'additional-components.es.js' },
{ path: '../../node_modules/@vue-flow/core/dist/', pkgName: 'vue-flow-core.es.js' },
{
path: '../../node_modules/@vue-flow/additional-components/dist/',
pkgName: 'vue-flow-core-additional-components.es.js',
},
].forEach(({ path, pkgName }) => {
const filePath = resolve(__dirname, `${path}/${pkgName}`)
if (!existsSync(filePath)) {