Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
3,347 changes: 1,752 additions & 1,595 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,35 @@
"prepare": "husky"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@eslint/js": "^10.0.1",
"@axe-core/playwright": "^4.11.1",
"@playwright/test": "^1.58.2",
"@types/node": "^25.2.2",
"@types/node": "^25.5.0",
"@types/tmp": "^0.2.6",
"eslint": "^9.39.2",
"eslint": "^10.1.0",
"execa": "^9.6.1",
"globals": "^17.3.0",
"globals": "^17.4.0",
"husky": "^9.1.7",
"istanbul-lib-coverage": "^3.2.2",
"istanbul-lib-report": "^3.0.1",
"istanbul-reports": "^3.2.0",
"lint-staged": "^16.2.7",
"jsdom": "^29.0.1",
"lint-staged": "^16.4.0",
"prettier": "^3.8.1",
"tmp": "^0.2.5",
"turbo": "^2.8.3",
"turbo": "^2.8.20",
"typescript": "^5.9.3",
"typescript-eslint": "^8.54.0",
"typescript-eslint": "^8.57.1",
"v8-to-istanbul": "^9.3.0",
"vitest": "^4.0.18"
"vitest": "^4.1.1"
},
"overrides": {
"minimatch": ">=3.1.4",
"glob": {
"minimatch": ">=3.1.4"
},
"rollup": ">=4.59.0",
"vite": "8.0.2",
"undici": ">=7.24.0",
"qs": ">=6.14.2",
"ajv": ">=6.14.0 <7",
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"chalk": "^5.6.2",
"chokidar": "^5.0.0",
"commander": "^14.0.3",
"cosmiconfig": "^9.0.0",
"cosmiconfig": "^9.0.1",
"express": "^5.2.1",
"glob": "^13.0.3",
"inquirer": "^13.2.4",
"glob": "^13.0.6",
"inquirer": "^13.3.2",
"jiti": "^2.6.1",
"open": "^11.0.0",
"ora": "^9.3.0"
Expand All @@ -46,8 +46,8 @@
"@types/express": "^5.0.6",
"@types/inquirer": "^9.0.9",
"@types/jest": "^30.0.0",
"@types/node": "^25.2.2",
"jest": "^30.2.0",
"@types/node": "^25.5.0",
"jest": "^30.3.0",
"ts-jest": "^29.4.6",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
Expand Down
7 changes: 6 additions & 1 deletion packages/cli/src/config/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ export async function loadConfig(searchFrom?: string): Promise<AutodocsConfig |

return mergeConfig(DEFAULT_CONFIG, config as Partial<AutodocsConfig>);
} catch (error) {
throw new Error(`Failed to load config: ${(error as Error).message}`);
throw new Error(
`Failed to load config: ${error instanceof Error ? error.message : String(error)}`,
{
cause: error,
}
);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^25.2.2",
"jest": "^30.2.0",
"@types/node": "^25.5.0",
"jest": "^30.3.0",
"ts-jest": "^29.4.6",
"tsup": "^8.5.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugins/PluginManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class PluginManager {
const exported = this.getModuleExport(module);
return this.resolvePluginExport(exported);
} catch (error) {
throw new Error(`Failed to load plugin ${packageName}: ${String(error)}`);
throw new Error(`Failed to load plugin ${packageName}: ${String(error)}`, { cause: error });
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"devDependencies": {
"@opensyntaxhq/autodocs-core": "^2.1.1",
"@types/node": "^25.2.2",
"@types/node": "^25.5.0",
"tsup": "^8.5.1"
}
}
6 changes: 3 additions & 3 deletions packages/plugins/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@
"clean": "rm -rf dist"
},
"dependencies": {
"glob": "^13.0.3",
"glob": "^13.0.6",
"gray-matter": "^4.0.3",
"marked": "^17.0.2"
"marked": "^17.0.5"
},
"peerDependencies": {
"@opensyntaxhq/autodocs-core": "^2.1.1"
},
"devDependencies": {
"@opensyntaxhq/autodocs-core": "^2.1.1",
"@types/node": "^25.2.2",
"@types/node": "^25.5.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
}
Expand Down
34 changes: 17 additions & 17 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,36 @@
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"flexsearch": "^0.8.212",
"lucide-react": "^0.564.0",
"lucide-react": "^0.577.0",
"radix-ui": "^1.4.3",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-markdown": "^10.1.0",
"react-router-dom": "^7.13.0",
"react-router-dom": "^7.13.1",
"remark-gfm": "^4.0.1",
"tailwind-merge": "^3.4.1",
"zustand": "^5.0.11"
"tailwind-merge": "^3.5.0",
"zustand": "^5.0.12"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/vite": "^4.1.18",
"@tailwindcss/postcss": "^4.2.2",
"@tailwindcss/vite": "^4.2.2",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^19.2.13",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.3",
"@vitest/coverage-v8": "^4.0.18",
"autoprefixer": "^10.4.24",
"eslint": "^9.39.2",
"jsdom": "^28.0.0",
"postcss": "^8.5.6",
"rollup-plugin-visualizer": "^6.0.5",
"@vitejs/plugin-react": "^6.0.1",
"@vitest/coverage-v8": "^4.1.1",
"autoprefixer": "^10.4.27",
"eslint": "^10.1.0",
"jsdom": "^29.0.1",
"postcss": "^8.5.8",
"rollup-plugin-visualizer": "^7.0.1",
"tailwindcss": "^4.1.18",
"terser": "^5.46.0",
"terser": "^5.46.1",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vitest": "^4.0.18"
"vite": "^8.0.2",
"vitest": "^4.1.1"
},
"repository": {
"type": "git",
Expand Down
25 changes: 22 additions & 3 deletions packages/ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,28 @@ export default defineConfig(({ mode }) => {
},
rollupOptions: {
output: {
manualChunks: {
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
search: ['flexsearch'],
/**
* Vite 8+ (rolldown) expects `manualChunks` to be a function.
*/
manualChunks(id) {
const normalizedId = id.replaceAll('\\', '/');
const inNodeModules = normalizedId.includes('/node_modules/');
if (!inNodeModules) {
return;
}

const isNodeModulePackage = (pkgName: string): boolean =>
normalizedId.includes(`/node_modules/${pkgName}/`) ||
normalizedId.endsWith(`/node_modules/${pkgName}`);

const reactPackages = ['react', 'react-dom', 'react-router-dom'];
if (reactPackages.some(isNodeModulePackage)) {
return 'react-vendor';
}

if (isNodeModulePackage('flexsearch')) {
return 'search';
}
},
},
},
Expand Down
Loading