Skip to content

feat!: migrate to pnpm monorepo#247

Open
draedful wants to merge 2 commits intomainfrom
monorepo_2
Open

feat!: migrate to pnpm monorepo#247
draedful wants to merge 2 commits intomainfrom
monorepo_2

Conversation

@draedful
Copy link
Collaborator

BREAKING CHANGE: Package structure changed to monorepo with separate packages.

New packages:

  • @gravity-ui/graph-canvas-core@1.0.0 - Core Canvas rendering primitives
  • @gravity-ui/graph@1.8.3 - Main graph library
  • @gravity-ui/graph-react@1.8.3 - React integration
  • @gravity-ui/graph-storybook (private) - Development documentation

Changes:

  • Migrate to pnpm workspaces
  • Split code into 4 packages with workspace dependencies
  • Configure Rollup for ESM + CJS + d.ts builds for all packages
  • Set up release-please for monorepo releases
  • Update GitHub workflows for pnpm
  • Add .npmignore to exclude tests and source files from npm
  • Update all imports to use workspace packages
  • Preserve full git history with git mv (248 files renamed)

Migration preserves:

  • Full commit history (git log --follow)
  • Author information (git blame)
  • File rename tracking (R89-R100 similarity)

All packages publish only build artifacts:

  • ESM (index.js)
  • CommonJS (index.cjs)
  • TypeScript declarations (index.d.ts)
  • CSS bundles (where applicable)

BREAKING CHANGE: Package structure changed to monorepo with separate packages.

New packages:
- @gravity-ui/graph-canvas-core@1.0.0 - Core Canvas rendering primitives
- @gravity-ui/graph@1.8.3 - Main graph library
- @gravity-ui/graph-react@1.8.3 - React integration
- @gravity-ui/graph-storybook (private) - Development documentation

Changes:
- Migrate to pnpm workspaces
- Split code into 4 packages with workspace dependencies
- Configure Rollup for ESM + CJS + d.ts builds for all packages
- Set up release-please for monorepo releases
- Update GitHub workflows for pnpm
- Add .npmignore to exclude tests and source files from npm
- Update all imports to use workspace packages
- Preserve full git history with git mv (248 files renamed)

Migration preserves:
- Full commit history (git log --follow)
- Author information (git blame)
- File rename tracking (R89-R100 similarity)

All packages publish only build artifacts:
- ESM (index.js)
- CommonJS (index.cjs)
- TypeScript declarations (index.d.ts)
- CSS bundles (where applicable)
@draedful draedful requested a review from Antamansid as a code owner February 16, 2026 22:49
- Replace all ../../src imports with @gravity-ui/graph
- Replace all react-components imports with @gravity-ui/graph-react
- Fix deep imports to use root package exports
- Update 57 files with 199 import statements
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.

1 participant