Skip to content

Comments

refactor(export): consolidate export testing into export-app CLI#345

Merged
pasevin merged 1 commit intomainfrom
refactor/consolidate-export-testing-cli
Feb 20, 2026
Merged

refactor(export): consolidate export testing into export-app CLI#345
pasevin merged 1 commit intomainfrom
refactor/consolidate-export-testing-cli

Conversation

@pasevin
Copy link
Collaborator

@pasevin pasevin commented Feb 20, 2026

Summary

  • Remove the unmaintained scripts/test-exported-app-local.sh and consolidate its "pack and test" approach into the export-app CLI as a new --env packed mode
  • The packed mode builds all monorepo packages, packs them into tarballs via pnpm pack, exports an app, swaps dependencies with file: tarball paths (+ pnpm overrides), and then runs pnpm install + pnpm build to verify types and bundling behave correctly
  • This catches .d.ts resolution issues (like the one fixed in fix(adapter): resolve adapter-evm-core type declarations and clean up type hierarchy #344) that file: workspace links miss, since tarballs simulate real npm installs
  • Update pnpm test:export to use the new packed mode by default

Three --env modes

Mode Use Case Dep Resolution
local (default) Fast dev iteration file: links to workspace dirs
packed (new) Pre-publish verification pnpm pack tarballs
production Real-world test Published npm versions

Test plan

  • Run pnpm export-app export --env packed and verify it builds + packs + exports + installs + builds successfully
  • Run pnpm export-app export --env packed -c polkadot for Polkadot adapter
  • Run pnpm export-app export --env packed -c stellar for Stellar adapter
  • Verify pnpm export-app export (local mode, default) still works
  • Verify pnpm export-app export --env production still works

Remove the unmaintained test-exported-app-local.sh script and add a
new --env packed mode to the export-app CLI. The packed mode builds
and packs monorepo adapter packages into tarballs, then exports an
app, swaps deps with file: tarball paths, and runs pnpm install +
build to verify types and bundling behave correctly post-publish.

This catches .d.ts resolution issues that file: workspace links miss.
@pasevin pasevin requested a review from a team as a code owner February 20, 2026 14:07
@pasevin pasevin merged commit a45f00d into main Feb 20, 2026
12 checks passed
@pasevin pasevin deleted the refactor/consolidate-export-testing-cli branch February 20, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant