x icon indicating copy to clipboard operation
x copied to clipboard

🏗 2.x: Monorepo Structure with npm Workspaces

Open elrrrrrrr opened this issue 9 months ago • 2 comments

  1. 📂 Project Organization

    • Split into independent packages:
      • @ant-design/x
      • @ant-design/x-card
      • @ant-design/x-sdk
      • @ant-design/x-markdown
  2. 🔧 npm Workspaces Integration

    • Uses native npm workspaces ("workspaces" in package.json) for:
      • Shared dependency hoisting
      • Cross-package script execution
      • Streamlined development

Why This Matters

  • ✅ Consistent versioning & dependency management
  • ⚡ Faster local development with linked packages
  • 🛠️ Standard monorepo tooling compatibility
  • 🌖 Changesets & Workflow Orchestration by utoo

elrrrrrrr avatar May 13 '25 09:05 elrrrrrrr

It seems like you're sharing information about the monorepo structure with npm workspaces for the ant-design/x project. This structure involves organizing the project into independent packages such as @ant-design/x, @ant-design/x-card, @ant-design/x-sdk, and @ant-design/x-markdown. The use of npm workspaces facilitates shared dependency hoisting, cross-package script execution, and streamlined development.

The benefits of this approach include consistent versioning and dependency management, faster local development with linked packages, standard monorepo tooling compatibility, and changesets & workflow orchestration by utoo.

If you have any specific questions or need further assistance regarding this setup, feel free to ask!

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

petercat-assistant[bot] avatar May 13 '25 09:05 petercat-assistant[bot]

👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻

afc163 avatar May 14 '25 04:05 afc163