Skip to content

fix: prevent examples and apps from publishing to npm#386

Merged
hotlong merged 2 commits intomainfrom
copilot/remove-published-examples
Feb 5, 2026
Merged

fix: prevent examples and apps from publishing to npm#386
hotlong merged 2 commits intomainfrom
copilot/remove-published-examples

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 5, 2026

Changeset config was using incorrect ignore pattern (@examples/*) that didn't match actual package names (@object-ui/example-*). Console app was marked for publishing despite being a runtime application, not a library.

Changes

.changeset/config.json

  • Fixed ignore pattern: @examples/*@object-ui/example-*
  • Added apps to ignore list: @object-ui/console, @object-ui/site

apps/console/package.json

  • Added "private": true
  • Removed publishConfig (no longer needed)

Impact

Will NOT publish (7 packages):

  • 4 examples: @object-ui/example-*
  • 2 apps: @object-ui/console, @object-ui/site
  • 1 vscode extension (already private)

Will publish (26 packages):

  • All packages in /packages/* at unified version 0.5.0
Original prompt

引用: https://github.com/objectstack-ai/objectui/actions/runs/21697846899/job/62571778463#step:9:1

所有的example不应该发布,并确认其他的软件包是否都已发布,并且统一版本号


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

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectui Ready Ready Preview, Comment Feb 5, 2026 3:57am
objectui-console Ready Ready Preview, Comment Feb 5, 2026 3:57am
objectui-storybook Ready Ready Preview, Comment Feb 5, 2026 3:57am

Request Review

- Update .changeset/config.json to correctly ignore example packages (changed from @examples/* to @object-ui/example-*)
- Add @object-ui/console and @object-ui/site to changeset ignore list
- Mark @object-ui/console as private in package.json
- Remove publishConfig from @object-ui/console as it's now private

All example packages already have "private": true
All publishable packages are at unified version 0.5.0

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove published examples and verify package versions fix: prevent examples and apps from publishing to npm Feb 5, 2026
Copilot AI requested a review from hotlong February 5, 2026 03:54
@hotlong hotlong marked this pull request as ready for review February 5, 2026 04:10
Copilot AI review requested due to automatic review settings February 5, 2026 04:10
@hotlong hotlong merged commit 78f1317 into main Feb 5, 2026
6 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the changeset configuration to prevent examples and apps from being published to npm. The previous ignore pattern @examples/* didn't match actual package names, which follow the @object-ui/example-* convention. Additionally, the console app was configured for publishing despite being a runtime application.

Changes:

  • Fixed changeset ignore pattern from @examples/* to @object-ui/example-* to correctly match example package names
  • Added @object-ui/console and @object-ui/site to the changeset ignore list
  • Marked @object-ui/console as private and removed its publishConfig

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.changeset/config.json Updated ignore patterns to correctly exclude example packages and apps from publishing
apps/console/package.json Marked package as private and removed unnecessary publishConfig

Comment thread apps/console/package.json
{
"name": "@object-ui/console",
"version": "0.5.0",
"private": true,
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The console package is now marked as private, but its README still documents how to import it as a plugin with import ConsolePlugin from '@object-ui/console'. This documentation should be updated to reflect that the package is not published to npm and is only intended for internal use. Consider updating the README to clarify the intended usage pattern for this runtime application.

Copilot uses AI. Check for mistakes.
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.

3 participants