chore(docs): update typedocs config to use vueflow pkg as entry
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user