Skip to content

Commit

Permalink
fix: temp disable docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Nov 25, 2023
1 parent 34c23b1 commit 6e5aa5f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env node
import { cac } from 'cac'
import { init } from 'create-vocs'

import { build } from './commands/build.js'
import { dev } from './commands/dev.js'
Expand All @@ -10,7 +9,6 @@ import { version } from './version.js'
export const cli = cac('vocs')

cli.command('[root]').alias('dev').option('-h, --host', 'Expose host URL').action(dev)
cli.command('init').option('-n, --name [name]', 'Name of project').action(init)
cli
.command('build')
.option('-l, --logLevel [level]', 'info | warn | error | silent')
Expand Down
3 changes: 0 additions & 3 deletions src/react.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/vite/plugins/docgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function docgen(): PluginOption {
return {
name: 'docgen',
async configureServer(server) {
const project = new Project({ tsConfigFilePath: '../tsconfig.json' })
const project = new Project({ tsConfigFilePath: 'tsconfig.json' })
const sourceFiles = project.getSourceFiles()
if (sourceFiles.length) {
const rootDirs = new Set<string>()
Expand Down Expand Up @@ -45,7 +45,7 @@ export function docgen(): PluginOption {
}

function getFiles() {
const project = new Project({ tsConfigFilePath: '../tsconfig.json' })
const project = new Project({ tsConfigFilePath: 'tsconfig.json' })
const sourceFiles = project.getSourceFiles()

const files: Record<string, string> = {}
Expand Down
4 changes: 2 additions & 2 deletions src/vite/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import react from '@vitejs/plugin-react'
import { defineConfig, splitVendorChunkPlugin } from 'vite'

import { css } from './plugins/css.js'
// import { docgen } from './plugins/docgen.js'
import { mdx } from './plugins/mdx.js'
import { virtualConfig } from './plugins/virtual-config.js'
import { virtualRoot } from './plugins/virtual-root.js'
import { virtualRoutes } from './plugins/virtual-routes.js'
import { docgen } from './plugins/docgen.js'

export default defineConfig({
plugins: [
Expand All @@ -23,7 +23,7 @@ export default defineConfig({
emitCssInSsr: true,
}),
css(),
docgen(),
// docgen(),
mdx(),
virtualRoutes(),
virtualRoot(),
Expand Down

0 comments on commit 6e5aa5f

Please sign in to comment.