mirror of
https://github.com/hanzoai/extension.git
synced 2026-10-31 21:57:06 +00:00
make build builds the workspace, or one target with target=chrome (firefox, safari, or any packages/<name>). browser writes dist/chrome, firefox and safari itself; every other package builds in place, where its package.json points, and dist/<name> links to it. make test runs every suite, and all of them pass. The Makefile, README and root src/, scripts/, test/, docs/, examples/, benchmark/ and tsconfigs belonged to the hanzo-dev CLI this repo used to be; none of it built or described anything here. CLAUDE.md, AGENTS.md and GEMINI.md are symlinks to LLM.md and stay out of git. jupyter ran a jupyter binary nobody installs; it runs under uvx pinned to jupyterlab 4.5, since 4.6 fetches core metadata from GitHub at build time. pdf's tests load pdf.js's legacy build, the one made for Node. vscode's test is its vitest suite; the Electron harness is test:electron. Claude-Session: https://claude.ai/code/session_01Dc8DXc3fEQCRHUa6XWK4Ku
14 lines
395 B
TypeScript
14 lines
395 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
// The modern pdf.js build calls Uint8Array.prototype.toHex, which browsers
|
|
// have and Node 24 does not; the legacy build is pdf.js's build for Node.
|
|
resolve: {
|
|
alias: { 'pdfjs-dist': 'pdfjs-dist/legacy/build/pdf.mjs' },
|
|
},
|
|
test: {
|
|
include: ['tests/**/*.test.ts'],
|
|
environment: 'node',
|
|
},
|
|
});
|