Skip to content

test-sdk.mjs imports from packages/stellar-agent-kit/dist, breaks when dist is missing #9

@CodewMilan

Description

@CodewMilan

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

  1. Clone the repo
  2. npm install
  3. 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.

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions