Skip to content

Conversation

@Mercurial
Copy link

Summary

Add dev:local script to package.json that delegates to the regular dev script.

Why this change?

This maintains consistency with other packages in monorepos that need local development mode support. Some monorepos distinguish between hosted and local development environments, and this script provides that flexibility without changing the existing development workflow.

Changes

  • Added "dev:local": "npm run dev" script to package.json
  • No changes to existing functionality - maintains full backward compatibility

Test plan

  • Verified npm run dev continues to work as expected
  • Verified npm run dev:local works and delegates correctly
  • Confirmed no breaking changes to existing scripts

The change is minimal and maintains full backward compatibility while providing the needed flexibility for monorepo environments.

Add dev:local script that delegates to the regular dev script to maintain
consistency with other packages in monorepos that need local development
mode support.
@JustLeif
Copy link
Collaborator

JustLeif commented Oct 3, 2025

Hello @Mercurial, in our current monorepo configuration, npm run dev in the root directory runs a turbo task that has a 'prebuild' step of building the web3-sdk. This command in the root directory is meant to be the entry point for local development.

Maybe I'm missing the advantages of this new command? If so please let me know what I'm missing. Thanks.

If it's a JavaScript repository standard thing that is expected by some of our users, I think this is a fine change. Like you said no changes to existing functionality so low risk.

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