Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docgen-tool",
"type": "module",
"version": "6.4.1",
"version": "6.4.2",
"description": "A tool for creating HTML and PDF documentation",
"bin": "./dist/cli/cli.js",
"files": [
Expand Down Expand Up @@ -37,8 +37,8 @@
},
"dependencies": {
"@react-pdf/renderer": "^4.3.2",
"@tanstack/react-router": "^1.147.0",
"@vitejs/plugin-react": "5.0.2",
"@tanstack/react-router": "^1.150.0",
"@vitejs/plugin-react": "5.1.2",
"cheerio": "^1.1.2",
"classnames": "^2.5.1",
"commander": "^14.0.2",
Expand All @@ -58,18 +58,17 @@
"rehype-raw": "^7.0.0",
"remark-gfm": "^4.0.1",
"rolldown-vite": "^7.3.1",
"style-dictionary": "^5.1.3",
"vite": "npm:rolldown-vite@latest",
"vite-plugin-node-polyfills": "0.22.0",
"style-dictionary": "^5.1.4",
"vite": "8.0.0-beta.8",
"z-schema": "^6.0.2"
},
"devDependencies": {
"@prettier/plugin-oxc": "^0.1.3",
"@types/node": "^25.0.5",
"@types/node": "^25.0.9",
"@types/react": "^19.2.8",
"ncp": "^2.0.0",
"oxlint": "^1.38.0",
"prettier": "^3.7.4",
"oxlint": "^1.39.0",
"prettier": "^3.8.0",
"rimraf": "^6.1.2",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
Expand Down
21 changes: 1 addition & 20 deletions src/cli/generate/generate.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import path from 'node:path';
import { createRequire } from 'node:module';
import { build, createServer } from 'vite';
import react from '@vitejs/plugin-react';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import dotenv from 'dotenv';
import { deriveParameters } from '../../docgen/meta/derive-parameters.ts';
import { loadInputs } from '../../docgen/fs/load-inputs.ts';
Expand All @@ -14,7 +12,6 @@ import { watchInputDirPlugin } from './plugins/watch-input-dir-plugin.ts';

dotenv.config({ path: path.resolve(process.cwd(), '.env') });

const require = createRequire(import.meta.url);
const basePath = process.env.BASE_PATH || '/';

export const generate = async (command, mode: string) => {
Expand Down Expand Up @@ -42,26 +39,12 @@ export const generate = async (command, mode: string) => {
root: appPath,
publicDir: inputDir,
base: basePath,
resolve: {
// Remove once github.com/davidmyersdev/vite-plugin-node-polyfills/issues/140 is fixed
alias: {
'vite-plugin-node-polyfills/shims/process':
require.resolve('vite-plugin-node-polyfills/shims/process'),
'vite-plugin-node-polyfills/shims/buffer':
require.resolve('vite-plugin-node-polyfills/shims/buffer'),
'vite-plugin-node-polyfills/shims/global':
require.resolve('vite-plugin-node-polyfills/shims/global'),
},
},
plugins: [
nodePolyfills({
include: ['buffer'],
}),
styleVariablesPlugin(appPath, inputDir),
react({
// Exclude PRF worker from HMR (ReferenceError: window is not defined @react-refresh error caused by HMR)
// https://www.reddit.com/r/react/comments/1i808v1/comment/mxdh5xv/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
exclude: /\/src\/app\/pdf\//,
exclude: [/\/src\/app\/pdf\//, /\/node_modules\//],
}),
htmlTransformPlugin(parameters.title ?? 'DocGen'),
...(mode !== 'build' ? [watchInputDirPlugin(inputDir)] : []),
Expand All @@ -80,8 +63,6 @@ export const generate = async (command, mode: string) => {
build: {
outDir: outputDir,
emptyOutDir: true,
// See #187 - esbuild minification works, oxc minification currently conflicts with marked parsing...
minify: false,
},
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/docs/parameters.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"title": "DocGen - a documentation tool",
"name": "DocGen",
"version": "6.4.1",
"date": "10/01/2026",
"version": "6.4.2",
"date": "15/01/2026",
"organization": {
"name": "Inkit Inc. and contributors",
"url": "https://www.inkit.com"
Expand Down
6 changes: 5 additions & 1 deletion src/docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## DocGen 6.4.0, 6.4.1 10/01/2026
## DocGen 6.4.2 15/01/2026

- Upgrade all NPM dependencies and resolve build config issues: [PR189](https://github.com/mtmacdonald/docgen/pull/189)

## DocGen 6.4.0, 6.4.1 10/01/2026

- Support for customizable themes ([#134](https://github.com/mtmacdonald/docgen/issues/134))
- Fix code block indentation issue in PDF ([#183](https://github.com/mtmacdonald/docgen/issues/183))
Expand Down
Loading