Skip to content

Accept package configs with any packageType value - #48

Merged
astolcenburg merged 1 commit into
rdkcentral:mainfrom
astolcenburg:main
Aug 10, 2026
Merged

astolcenburg merged 1 commit into
rdkcentral:mainfrom
astolcenburg:main

Conversation

@astolcenburg

Copy link
Copy Markdown
Contributor

This also changes package config validation to match the specification:

  • entryPoint is considered mandatory
  • versionName is optional

Ref: #RDKEAPPRT-936

Copilot AI lite review requested due to automatic review settings August 9, 2026 15:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates Bolt package config validation to align with the referenced spec change by accepting any string packageType, making entryPoint mandatory, and making versionName optional. This affects how pack validates configs and adds a warning path for unknown package types.

Changes:

  • Relaxed package config validation to accept any string packageType and require entryPoint.
  • Centralized config validation in pack.cjs via PackageConfig.validate.
  • Added PackageConfig.isKnownPackageType() and a warning in pack.cjs for unknown packageType values.

Reviewed changes

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

File Description
bolt/src/PackageConfig.cjs Updates validation rules and introduces known-packageType detection.
bolt/src/pack.cjs Switches to shared config validation and warns on unknown packageType.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread bolt/src/PackageConfig.cjs
This also changes package config validation to match
the specification:
- entryPoint is considered mandatory
- versionName is optional

Ref: #RDKEAPPRT-936
Copilot AI review requested due to automatic review settings August 9, 2026 16:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@astolcenburg
astolcenburg merged commit 1aa5d43 into rdkcentral:main Aug 10, 2026
4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants