Skip to content

build: add prepare script for git-based installation#667

Open
douglance wants to merge 6 commits intofeat/enqueue-token-bridge-deploymentfrom
feat/add-prepare-script
Open

build: add prepare script for git-based installation#667
douglance wants to merge 6 commits intofeat/enqueue-token-bridge-deploymentfrom
feat/add-prepare-script

Conversation

@douglance
Copy link
Copy Markdown
Contributor

@douglance douglance commented Mar 23, 2026

Summary

  • Adds a prepare lifecycle script to src/package.json that builds the TypeScript output when the package is installed from a git URL
  • Adds payable mutator to the UpgradeExecutor ABI

Details

When installing chain-sdk from a git URL (e.g. github:OffchainLabs/arbitrum-chain-sdk#branch&path:src), package managers clone the repo but don't build it, so dist/ is missing and the package is empty. The prepare script runs automatically after install for git-hosted dependencies, navigating to the repo root and running the TypeScript compiler to produce the dist/ output.

This has no effect on installs from the npm registry, since published tarballs already contain the built dist/.

@douglance douglance force-pushed the feat/add-prepare-script branch from 900895e to 7e2a1f0 Compare March 23, 2026 18:02
When installing chain-sdk from a git URL with &path:src, package managers
extract only the subdirectory. This prepare script goes up to the repo root
and runs the TypeScript build so dist/ exists.
@douglance douglance force-pushed the feat/add-prepare-script branch from 7e2a1f0 to ba3e4e8 Compare March 23, 2026 18:04
@TucksonDev TucksonDev changed the base branch from main to feat/enqueue-token-bridge-deployment March 23, 2026 18:07
@TucksonDev TucksonDev requested review from spsjvc and yahgwai March 25, 2026 11:01
TucksonDev and others added 2 commits March 25, 2026 14:22
Apply Prettier formatting and allowlist 6 transitive dev-only CVEs
in audit-ci.jsonc (flatted, picomatch, brace-expansion, yaml).
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.

2 participants