mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
* [AI] Add publishConfig.imports sync validator with pre-commit integration Add a TypeScript script that validates publishConfig.imports stays in sync with imports in all packages/*/package.json files. Runs automatically in the pre-commit hook via lint-staged with --fix mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * [AI] Add release notes for #7469 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * [AI] Guard main() with require.main and respect lint-staged file args Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * [AI] Handle non-string imports targets in derivePublishImports - Add type guard to check for non-string values in imports - Throw descriptive error when conditional imports are encountered - Update type signature to accept Record<string, string | object> - Add test case for non-string imports error handling This prevents TypeError when packages have conditional imports (e.g., #browser-preload in desktop-client) Co-authored-by: Matiss Janis Aboltins <MatissJanis@users.noreply.github.com> * [AI] Limit resolvePackageJsonPaths scope to packages directory - Add packagesRoot constant to restrict path resolution - Update while loop condition to only traverse within packages directory - Add additional check to ensure candidate paths are under packages/ - Prevents resolution to repo root package.json for missing/deleted files This ensures the validator only processes package.json files under packages/* and avoids accidentally targeting the monorepo root manifest. Co-authored-by: Matiss Janis Aboltins <MatissJanis@users.noreply.github.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Matiss Janis Aboltins <MatissJanis@users.noreply.github.com>
20 lines
503 B
TypeScript
20 lines
503 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
'bin/vitest.config.mts',
|
|
'packages/*/vitest.config.{ts,mts}',
|
|
'packages/component-library/vitest.web.config.ts',
|
|
{
|
|
extends: 'packages/loot-core/vitest.web.config.ts',
|
|
test: { name: 'loot-core-web', dir: 'packages/loot-core' },
|
|
},
|
|
],
|
|
onConsoleLog: (log, type) => {
|
|
// print only console.error
|
|
return type === 'stderr';
|
|
},
|
|
},
|
|
});
|