Skip to content

Convert to monorepo with scoped packages#8

Merged
huangyiirene merged 5 commits intomainfrom
copilot/upgrade-to-multi-package-structure
Jan 18, 2026
Merged

Convert to monorepo with scoped packages#8
huangyiirene merged 5 commits intomainfrom
copilot/upgrade-to-multi-package-structure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 18, 2026

Restructure repository from single package to pnpm workspace with 5 scoped packages for granular consumption.

Package Structure

  • @objectstack/spec-meta - Metamodel types (ObjectEntity, ObjectField, ObjectView)
  • @objectstack/spec-plugin - Plugin runtime interfaces (ObjectStackPlugin, PluginContext)
  • @objectstack/spec-schemas - Zod validation schemas (ManifestSchema)
  • @objectstack/spec-constants - Path conventions (PKG_CONVENTIONS)
  • @objectstack/spec - Aggregator package re-exporting all sub-packages

Backward Compatibility

Existing imports remain unchanged:

// Still works
import { ObjectEntity, ManifestSchema, PKG_CONVENTIONS } from '@objectstack/spec';

// New: granular imports for smaller bundles
import { ObjectEntity } from '@objectstack/spec-meta';

Changes

  • Moved source files to packages/*/src/
  • Configured pnpm workspace with workspace:* dependencies
  • Updated tsconfig to base configuration pattern
  • Configured changesets with linked versioning for all packages
  • Added files field to package.json for publish control
Original prompt

升级为多包结构


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits January 18, 2026 12:08
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade project to multi-package structure Convert to monorepo with scoped packages Jan 18, 2026
Copilot AI requested a review from huangyiirene January 18, 2026 12:15
@huangyiirene huangyiirene marked this pull request as ready for review January 18, 2026 12:23
@huangyiirene huangyiirene merged commit fde0b69 into main Jan 18, 2026
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