deploy: packages/web imports undeclared deps (clean install build fails) #35
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The o2 deploy of
devatdb5b5cbfails in the clean aarch64 build container:@lucide/svelteis declared only inpackages/ui/package.json, butpackages/webimports it directly. bun's isolated linker (node_modules/.bun) does not hoist it, so a clean install cannot resolve the import. Local builds pass only because the dev VM still has stale hoistednode_modules.Fix: declare every package that
packages/webimports directly in its ownpackage.json, and add a check so an undeclared import failsverify fastinstead of only failing in a clean install.Starting web dependency declaration fix on branch
web-deps, based ondevatdb5b5cbf19a7c5d2455225c75e3b8216075f76e7.The import inventory found undeclared package imports in two workspaces:
packages/webimports@lucide/svelte/icons/*but onlypackages/uideclared@lucide/svelte;packages/stream/src/browser_bench.tsimports@playwright/testwhile only the root and terminal manifests declared it. Added direct declarations with the repo-pinned versions (@lucide/svelte1.48.0 and@playwright/test^1.63.0).Finished on branch
web-deps.Head:
ce194d4bf53bf370a6bcccb76745c74c74240494.The clean-clone check used a fresh clone of this commit, ran
bun install --frozen-lockfile, and builtpackages/web. The clone was deleted afterward.Frozen install output:
Web build completion output (verbatim lines):
The successful build also printed a chunk-size advisory for bundles above 500 kB.
scripts/verify fastoutput:The dependency check passed on the repository and failed as expected against a temporary fixture importing an undeclared scoped package: