Skip to content

fix: move console app dependencies to devDependencies#503

Merged
hotlong merged 2 commits intomainfrom
copilot/fix-installation-failure
Feb 14, 2026
Merged

fix: move console app dependencies to devDependencies#503
hotlong merged 2 commits intomainfrom
copilot/fix-installation-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 14, 2026

@object-ui/console is uninstallable from npm because it declares 30+ workspace:* packages (including unpublished examples) as runtime dependencies. The published package only ships plugin.ts + dist/ static assets — plugin.ts uses exclusively Node.js built-ins (url, path, fs), and dist/ is a fully bundled Vite SPA.

  • Moved all dependenciesdevDependencies since every package is a build-time input only
  • Result: zero runtime dependencies, clean npm install @object-ui/console in external projects
// Before: 42 runtime deps including workspace-only packages
"dependencies": {
  "@object-ui/example-crm": "workspace:*",  // ← not on npm
  "@object-ui/example-todo": "workspace:*", // ← not on npm
  "react": "19.2.4",                        // ← bundled into dist/
  // ... 39 more
}

// After: all moved to devDependencies, no runtime deps
"devDependencies": { /* all 60 packages */ }

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 14, 2026

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

Project Deployment Actions Updated (UTC)
objectui Error Error Feb 14, 2026 3:58am
objectui-demo Ready Ready Preview, Comment Feb 14, 2026 3:58am
objectui-storybook Error Error Feb 14, 2026 3:58am

Request Review

The @object-ui/console package publishes plugin.ts (which only uses
Node.js built-ins: url, path, fs) and pre-built dist/ static assets.
All React, UI, and example dependencies are only needed at build time,
not when consumers install the package. Moving them to devDependencies
ensures `npm install @object-ui/console` succeeds without pulling in
workspace-only packages.

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix installation failure after releasing @object-ui/console fix: move console app dependencies to devDependencies Feb 14, 2026
Copilot AI requested a review from hotlong February 14, 2026 03:35
@hotlong hotlong marked this pull request as ready for review February 14, 2026 03:36
Copilot AI review requested due to automatic review settings February 14, 2026 03:36
@hotlong hotlong merged commit 445124e into main Feb 14, 2026
3 of 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 makes @object-ui/console installable from npm by removing workspace:* runtime dependencies (and other build-time inputs) from dependencies, aligning the published artifact (plugin.ts + prebuilt dist/) with a “no runtime deps” package model.

Changes:

  • Moved apps/console/package.json runtime dependencies into devDependencies so npm consumers don’t attempt to resolve unpublished workspace:* packages.
  • Updated pnpm-lock.yaml to reflect the dependency-type move and resulting resolution graph changes.

Reviewed changes

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

File Description
apps/console/package.json Moves all prior runtime deps to devDependencies to avoid npm install failures on workspace:* entries.
pnpm-lock.yaml Updates lockfile importer entries for apps/console (and prunes/resolves related graph changes).
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread apps/console/package.json
Comment on lines 60 to 67
"@object-ui/types": "workspace:*",
"@objectstack/cli": "^3.0.2",
"@objectstack/client": "^3.0.2",
"@objectstack/driver-memory": "^3.0.2",
"@objectstack/objectql": "^3.0.2",
"@objectstack/plugin-msw": "^3.0.2",
"@objectstack/runtime": "^3.0.2",
"@objectstack/spec": "^3.0.2",
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

The PR description says plugin.ts uses exclusively Node.js built-ins, but apps/console/plugin.ts does a runtime import('@hono/node-server/serve-static'). With this package now having no runtime deps, that import will only succeed if the host app provides @hono/node-server; otherwise it always falls back.

Suggested fix: either (a) update the PR description / package docs to explicitly call @hono/node-server an optional host-provided optimization, or (b) declare @hono/node-server as an optional peer/optional dependency if you want the fast path to work by default.

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