Skip to content

fix cli build - #443

Merged
nikgraf merged 3 commits into
mainfrom
ng/fix-cli-build
Aug 7, 2025
Merged

fix cli build#443
nikgraf merged 3 commits into
mainfrom
ng/fix-cli-build

Conversation

@nikgraf

@nikgraf nikgraf commented Aug 7, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 a CLI build issue by ensuring the package.json includes the type field when copying package configuration for the create-hypergraph CLI tool.

  • Adds the type field from the source package.json to the generated package.json
  • Reorganizes imports for better consistency

Reviewed Changes

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

File Description
apps/create-hypergraph/scripts/copy-package-json.ts Adds type field to copied package.json and reorganizes imports
.changeset/eighty-terms-film.md Documents the CLI build fix in changeset

'create-hypergraph': 'bin.js',
ch: 'bin.js',
},
type: json.type,

Copilot AI Aug 7, 2025

Copy link

Choose a reason for hiding this comment

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

The type field is being copied without validation. If json.type is undefined, this will add type: undefined to the package.json, which could cause issues. Consider adding a conditional check or default value.

Suggested change
type: json.type,
...(json.type ? { type: json.type } : {}),

Copilot uses AI. Check for mistakes.
@nikgraf
nikgraf merged commit 12f956a into main Aug 7, 2025
6 checks passed
@nikgraf
nikgraf deleted the ng/fix-cli-build branch August 7, 2025 15:24
@nikgraf nikgraf mentioned this pull request Aug 6, 2025
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