Skip to content

Conversation

@RokuSerhii
Copy link
Contributor

@RokuSerhii RokuSerhii commented Nov 25, 2025

Add support for packageTask, packagePath, packageUploadOverrides properties for componentLibraries entries in launch options. This provides additional flexibility for configuring the channel app project if it relies on a componentLibrary built with a custom(e.g. make) script in the packageTask

Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

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

overall, this is a really nice and clean PR. I've sent you a few examples of how to write some unit tests for this in slack, would appreciate seeing some for each of the changed code here. but once those are in, this looks good to go!

Don't forget, we'll also need to open a PR in https://github.com/rokucommunity/vscode-brightscript-language to add support for these new properties in the componentLibraries launch.json json schema. (like we did in this PR)

to: (match: string) => {
// only alter file ending if it is a) pkg:/ url or b) relative url
let isPkgUrl = !!/^uri\s*=\s*"pkg:\//i.exec(match);
let isPkgUrl = !!/^uri\s*=\s*"(pkg:|libpkg:)\//i.exec(match);
Copy link
Member

Choose a reason for hiding this comment

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

Can you make sure to add a few unit tests around this to make sure we are capturing pkg: as well as libpkg:?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The PR to vscode-brightscript-language has been opened rokucommunity/vscode-brightscript-language#675

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've extended the existing src/managers/ProjectManager.spec.ts tests to also check libpkg: and added unit tests for packageTask, packagePath and packageUploadOverrides

@TwitchBronBron TwitchBronBron changed the title Add support for packageTask, packagePath, packageUploadOverrides properties for componentLibraries entries in launch.json Support packageTask, packagePath, packageUploadOverrides for complibs Nov 26, 2025
Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

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

The tests look great. Thanks!

@TwitchBronBron TwitchBronBron merged commit 0dd17bc into rokucommunity:master Nov 26, 2025
7 checks passed
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