Node 22 makes node:sqlite importable (isBuiltin() returns true) but doesn't
list it in module.builtinModules, which Vite/Rolldown use to decide what to
externalize instead of bundle. That made the whole Vitest run fail on CI
("Cannot bundle Node.js built-in node:sqlite") even after pinning Node 22.
Root-caused by reproducing directly in node:22 vs node:24 Linux containers on
the VPS. Bumped ci.yml/release.yml/sonarqube.yml and package.json engines to
Node 24, and verified 473/473 tests pass in a real Linux Node 24 container.
Also:
- Exclude coachStore.ts/memory/store.ts/meetingStore.ts from coverage.include:
Vitest's coverage-v8 still tries to transform them via Vite's "client"
environment (which can't bundle Node builtins at all) when establishing the
baseline for unimported files, independently of the Node 22/24 issue above.
- Fix tests/unit/captureWorker.test.ts: hardcoded Windows path separator in
an expectation didn't match path.join's output on Linux.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
91 lines
3.0 KiB
JSON
91 lines
3.0 KiB
JSON
{
|
|
"name": "forge-avatar",
|
|
"version": "1.0.0",
|
|
"description": "Avatar de bureau IA Max, assistant vocal avec modes Coach et Assistant",
|
|
"main": "./out/main/index.js",
|
|
"author": "Vandal William",
|
|
"engines": {
|
|
"node": ">=24.0.0"
|
|
},
|
|
"scripts": {
|
|
"format": "prettier --write .",
|
|
"lint": "eslint --cache .",
|
|
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
|
|
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
|
|
"typecheck": "npm run typecheck:node && npm run typecheck:web",
|
|
"start": "electron-vite preview",
|
|
"dev": "electron-vite dev",
|
|
"build": "npm run typecheck && electron-vite build",
|
|
"postinstall": "install-electron && electron-builder install-app-deps",
|
|
"build:unpack": "npm run build && electron-builder --dir",
|
|
"build:win": "npm run build && electron-builder --win",
|
|
"build:mac": "electron-vite build && electron-builder --mac",
|
|
"build:linux": "electron-vite build && electron-builder --linux",
|
|
"test": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "npm run build && playwright test",
|
|
"prepare": "husky"
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,tsx}": [
|
|
"node node_modules/eslint/bin/eslint.js --fix",
|
|
"node node_modules/prettier/bin/prettier.cjs --write"
|
|
],
|
|
"*.{json,md,yml,yaml}": [
|
|
"node node_modules/prettier/bin/prettier.cjs --write"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@electron-toolkit/preload": "^3.0.2",
|
|
"@electron-toolkit/utils": "^4.0.0",
|
|
"cheerio": "^1.2.0",
|
|
"docx": "^9.13.0",
|
|
"dotenv": "^18.0.8",
|
|
"electron-updater": "^6.8.11",
|
|
"mammoth": "^1.13.0",
|
|
"mermaid": "^12.2.0",
|
|
"pdf-lib": "^1.17.1",
|
|
"pdf-parse": "^1.1.1",
|
|
"pptxgenjs": "^4.0.1",
|
|
"roughjs": "^4.6.6",
|
|
"three": "^0.186.1"
|
|
},
|
|
"devDependencies": {
|
|
"@electron-toolkit/eslint-config-prettier": "^3.0.1",
|
|
"@electron-toolkit/eslint-config-ts": "^4.0.0",
|
|
"@electron-toolkit/tsconfig": "^2.0.0",
|
|
"@playwright/test": "^1.64.1",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@testing-library/user-event": "^14.6.8",
|
|
"@types/node": "^24.19.2",
|
|
"@types/pdf-parse": "^1.1.5",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@types/three": "^0.186.0",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"@vitest/coverage-v8": "^5.0.5",
|
|
"electron": "^44.7.2",
|
|
"electron-builder": "^26.15.3",
|
|
"electron-playwright-helpers": "^3.1.2",
|
|
"electron-vite": "^6.0.0",
|
|
"eslint": "^9.39.5",
|
|
"eslint-plugin-import": "^2.32.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
"eslint-plugin-security": "^4.2.0",
|
|
"husky": "^9.1.7",
|
|
"jsdom": "^30.1.3",
|
|
"lint-staged": "^17.6.0",
|
|
"playwright": "^1.64.1",
|
|
"prettier": "^3.9.10",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^8.3.4",
|
|
"vitest": "^5.0.5"
|
|
}
|
|
}
|