Description
scripts/test-sdk.mjs imports directly from ../packages/stellar-agent-kit/dist/index.js. If a contributor runs the script without having run npm run build from the repo root first, the script fails with a file-not-found or module resolution error. New contributors may not know they must build the workspace before running the test script.
Steps to reproduce
- Clone the repo
npm install
- Run
node scripts/test-sdk.mjs from the repo root (without running npm run build first)
Expected
Script either runs successfully or prints a clear message like "Run npm run build from the repo root first."
Actual
Script fails with module-not-found or ENOENT for packages/stellar-agent-kit/dist/index.js.
Description
scripts/test-sdk.mjsimports directly from../packages/stellar-agent-kit/dist/index.js. If a contributor runs the script without having runnpm run buildfrom the repo root first, the script fails with a file-not-found or module resolution error. New contributors may not know they must build the workspace before running the test script.Steps to reproduce
npm installnode scripts/test-sdk.mjsfrom the repo root (without runningnpm run buildfirst)Expected
Script either runs successfully or prints a clear message like "Run
npm run buildfrom the repo root first."Actual
Script fails with module-not-found or ENOENT for
packages/stellar-agent-kit/dist/index.js.