Repository navigation
feat: --json and --host for generate, inspect command (1.2.0) - #1
Merged
Merged
Conversation
…ole build on abort, flush result before exit
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a machine-readable mode so other tools can drive
roku-pkgwithout its interactive prompts. Roku Dev Studio's new Packager panel is the first user. Releases as 1.2.0.What changes
generate --jsonstep,log, and exactly oneresult, which is always last.NEEDS_BUILD_CHOICEorPROJECT_NOT_FOUND.0ok,1failed,130cancelled. SIGTERM or SIGINT cleans up.roku-deploy-tempand reportsCANCELLED.defaultBuildTask.generate --host <ip>: uses a specific device without changing the saved one. It can't be combined with--discover. It also works in text mode.inspect <dir> [--json]: shows the manifest title and version, the build folder and where it was found, and the VSCode tasks.~/.roku-pkg/config.jsonis now written readable by its owner only (0600), since it holds sign keys and the device password.--host.Things a reviewer should know
--jsonruns a new non-interactive pipeline (src/lib/generate-json.ts) instead of branching inside the existinggenerateaction. This keeps the interactive flow untouched. The cost is that the two flows now repeat some steps.doGetRequestonplugin_inspect). That helper is private in roku-deploy's typings, so it is cast.getDevIdcan't be used because it reads ECP without auth, so it can't detect a wrong password.npm run buildand its children, not just the wrapper shell.--password), visible inpsduring a run. This was an accepted trade-off.Testing
npm test: 29/29 pass. New suites:events,inspect,generate-json: every step, every error code, cancel, and checks that no secret is printed. It uses fake device and disk dependencies.generate-cli: runs the built CLI and checks it prints only JSON lines and never prompts.Dependency and CI changes
npm audit fixremoves the fixable advisories intmp,postman-request,uuidandqs.jest-utilis now a dev dependency. It is a peer dependency of ts-jest. npm 9, which ships with Node 18, didn't install it, sonpm ci+jestfailed on Node 18.audit-ci.jsonc), failing on moderate and above.bracesGHSA-vfj7-8cjw-p6xm (≤3.0.3; 3.0.3 is the latest release),sprintf-jsGHSA-hp3w-g68c-fv3c (≤1.1.3; 1.1.3 is the latest release).bracesonly expands our own glob patterns, never user input.