Add manifest update command#2845
Draft
heyitsaamir wants to merge 1 commit into
Draft
Conversation
e603e13 to
94ce9a6
Compare
38fe140 to
a1e301a
Compare
a1e301a to
8aafccd
Compare
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.
Summary
teams app manifest updatefor quick manifest edits without the download/edit/upload dance.--set-jsonand--remove, with schema validation before anything gets uploaded.How it works
applyManifestUpdate()insrc/apps/manifest-update.ts.manifest.json, applies the requested mutations, bumps the patch version once, validates the final manifest, uploads it, then verifies the changed paths survived TDP import/export.$schemaURL when present, or derives it frommanifestVersion. Schemas are fetched only from Microsoft-hosted schema URLs and cached locally.--jsonmode stays non-interactive and returns structured errors/results. Mutating JSON mode requires--yes, unless it is a dry run.Notes
--set-jsonis intentionally the only set operationTest plan
npm run check-typesnpm run buildnpm run test -- manifest-mutate.test.ts manifest-update-command.test.ts manifest-schema-url-security.test.ts manifest-schema-validation.test.ts manifest-validation.test.tsnpm run test