Skip to content

Commit ba3e4e8

Browse files
committed
Add prepare script to src/ for git-based installation
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.
1 parent a0ec198 commit ba3e4e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
"repository": "git+https://github.com/OffchainLabs/arbitrum-chain-sdk.git",
4848
"author": "Offchain Labs, Inc.",
4949
"license": "Apache-2.0",
50+
"scripts": {
51+
"prepare": "cd .. && npm run build"
52+
},
5053
"engines": {
5154
"node": ">=18"
5255
},

0 commit comments

Comments
 (0)