Skip to content

Set up Cursor Cloud dev environment - #1

Draft
brianshattuck wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-67c9
Draft

Set up Cursor Cloud dev environment#1
brianshattuck wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-67c9

Conversation

@brianshattuck

Copy link
Copy Markdown
Owner

Summary

Sets up the development environment for the Superchain Token List (@eth-optimism/tokenlist) so future Cloud Agents can lint, test, build, generate, and validate the list out of the box.

This is a Node.js/TypeScript CLI + library (no web UI / long-running server). Development happens through the package.json scripts.

Changes

  • Add AGENTS.md with a ## Cursor Cloud specific instructions section documenting runtime choice (system Node v22 works; no need to force the mise.toml-pinned 18.18.0), the harmless ${NPM_TOKEN} .npmrc warning, the standard scripts, and the optional bot service.

No application/source code was modified.

Environment

  • Package manager: pnpm 8.6.0
  • Node: system /exec-daemon/node v22 (always first on PATH; project runs fine on it)
  • Update script (dependency refresh): NPM_TOKEN=nada pnpm install --frozen-lockfile

Verification

All run successfully:

Command Result
pnpm typecheck passes
pnpm lint:check passes (no warnings)
pnpm test 1/1 suite, 1/1 test passed
pnpm generate --datadir ./data --outfile <file> generated Superchain Token List, 1086 tokens
pnpm build ESM + CJS bundles built
pnpm validate --datadir ./data --tokens OP exit 0 (network to RPC/Etherscan/CoinGecko works)

Note: the generated optimism.tokenlist.json is intentionally not committed (regenerated & published only by CI on master); output was written to /tmp.

Open in Web Open in Cursor 

Co-authored-by: brianshattuck <brianshattuck@users.noreply.github.com>
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