Files
zeekay 82120531a1 fix(debrand): read the TypeScript import graph before dropping a product
drop_closure exists to refuse a drop that is really a refactor: if code we
keep still imports a product, deleting it is a ModuleNotFoundError waiting
for the next boot. It only ever read Python, so half the dependency graph was
invisible to it and five products whose TypeScript the core still imports were
dropped anyway — 21 files left importing 25 specifiers that resolve to
nothing, including lib/api.ts, which 760 files import, and seven lazy scene
imports in productScenes.tsx.

Django booted past it and the bundle did not, which is why the Python-only
rule looked like it was working.

The closure now reads both module systems through one table of
(extensions, pattern) pairs, so a third one is a row rather than a branch. The
TypeScript pattern is anchored on the import keyword rather than on the path,
because jest's testPathIgnorePatterns and oxlint's ignore list quote a product
path precisely because it is NOT built; matching those would hold desktop, the
4,797-file product the drop is mostly for.

integrations, wizard, platform_features, visual_review and ai_gateway come
back with their Django apps and workspace entries, since the closure now
spares them. desktop, field_notes, ingestion and support stay dropped.
2026-08-01 22:17:05 -07:00

32 lines
717 B
JSON

{
"name": "@hanzo/visual-review-cli",
"version": "0.0.1",
"private": true,
"bin": {
"vr": "./dist/cli/src/index.js"
},
"type": "module",
"scripts": {
"build": "tsc",
"dev": "tsx src/index.ts",
"test": "vitest run",
"typecheck": "tsc --noEmit",
"typecheck:tsgo": "tsgo --noEmit"
},
"dependencies": {
"@napi-rs/blake-hash": "^1.3.6",
"commander": "^12.0.0",
"sharp": "^0.35.3",
"yaml": "^2.3.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"tsx": "^4.0.0",
"typescript": "6.0.3",
"vitest": "^4.1.0"
},
"engines": {
"node": ">=24 <25"
}
}