open-design/tools/pack/tests
Guillermo Alcántara 2ea2c91a92
fix(pack): add missing download and host packages to Linux INTERNAL_PACKAGES (#2837)
* fix(pack): add missing download and host packages to Linux INTERNAL_PACKAGES

The native (non-containerized) Linux AppImage build fails with npm 404
errors because @open-design/download and @open-design/host — runtime
dependencies of @open-design/desktop and @open-design/web — were not
included in the INTERNAL_PACKAGES list. Without tarballs for these two
packages, npm install in the assembled app directory tries to resolve
them from the public registry where they don't exist.

Add both packages to INTERNAL_PACKAGES and their build steps to
buildWorkspaceArtifacts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(pack): apply same download/host fix to mac and win lanes, add regression test

1. Extend the INTERNAL_PACKAGES fix to mac/constants.ts, mac/workspace.ts, win/constants.ts, and win/app.ts so all three pack lanes produce tarballs for @open-design/download and @open-design/host.

2. Add internal-packages-coverage.test.ts that derives required workspace runtime deps from apps/desktop and apps/web package.json files and asserts every pack lane's INTERNAL_PACKAGES includes them. This prevents the same drift from recurring when a new workspace dependency is added.

3. Update win-app.test.ts and workspace-build.test.ts mock directory lists to include the two new packages.

* fix(pack): include runtime packages in workspace build cache

* fix(pack): install platform with desktop prebundle packages

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Siri-Ray <2667192167@qq.com>
2026-05-29 09:44:03 +00:00
..
cache.test.ts Improve Windows beta packaging and installer flow (#768) 2026-05-07 16:44:15 +08:00
config.test.ts feat(runtimes): register AMR (vela) as an ACP stdio agent (#2355) 2026-05-28 05:09:55 +00:00
desktop-package-runtime.test.ts refactor desktop host bridge (#2246) 2026-05-19 18:27:05 +08:00
internal-packages-closure.test.ts fix(pack): bundle download and host packages in Linux AppImage assembly (#2845) 2026-05-29 07:25:03 +00:00
internal-packages-coverage.test.ts fix(pack): add missing download and host packages to Linux INTERNAL_PACKAGES (#2837) 2026-05-29 09:44:03 +00:00
linux.test.ts feat(runtimes): register AMR (vela) as an ACP stdio agent (#2355) 2026-05-28 05:09:55 +00:00
mac-identity.test.ts feat(runtimes): register AMR (vela) as an ACP stdio agent (#2355) 2026-05-28 05:09:55 +00:00
mac-lifecycle.test.ts feat(runtimes): register AMR (vela) as an ACP stdio agent (#2355) 2026-05-28 05:09:55 +00:00
mac-prebundle.test.ts fix(pack): add missing download and host packages to Linux INTERNAL_PACKAGES (#2837) 2026-05-29 09:44:03 +00:00
mac.test.ts feat(runtimes): register AMR (vela) as an ACP stdio agent (#2355) 2026-05-28 05:09:55 +00:00
package-source-hash.test.ts Improve Windows beta packaging and installer flow (#768) 2026-05-07 16:44:15 +08:00
release-workflows.test.ts feat(runtimes): register AMR (vela) as an ACP stdio agent (#2355) 2026-05-28 05:09:55 +00:00
resources.test.ts feat(runtimes): register AMR (vela) as an ACP stdio agent (#2355) 2026-05-28 05:09:55 +00:00
versions.test.ts Support nightly and preview package identity (#2437) 2026-05-20 19:46:39 +08:00
web-sourcemaps.test.ts feat(runtimes): register AMR (vela) as an ACP stdio agent (#2355) 2026-05-28 05:09:55 +00:00
web-standalone-after-pack.test.ts Fix packaged beta build resources 2026-05-14 18:01:52 +08:00
win-app.test.ts fix(pack): add missing download and host packages to Linux INTERNAL_PACKAGES (#2837) 2026-05-29 09:44:03 +00:00
win-builder.test.ts feat(pack): add Windows portable zip target alongside NSIS installer (#2937) 2026-05-26 06:14:44 +00:00
win-identity.test.ts Fix Windows reinstall detection and duplicate plugin nav (#2466) 2026-05-20 22:08:44 +08:00
win-prebundle.test.ts fix(pack): add missing download and host packages to Linux INTERNAL_PACKAGES (#2837) 2026-05-29 09:44:03 +00:00
win-resources.test.ts feat(runtimes): register AMR (vela) as an ACP stdio agent (#2355) 2026-05-28 05:09:55 +00:00
win-size-index.test.ts Improve Windows beta packaging and installer flow (#768) 2026-05-07 16:44:15 +08:00
win-targets.test.ts feat(pack): add Windows portable zip target alongside NSIS installer (#2937) 2026-05-26 06:14:44 +00:00
workspace-build.test.ts fix(pack): add missing download and host packages to Linux INTERNAL_PACKAGES (#2837) 2026-05-29 09:44:03 +00:00