Repository navigation
Add typed JSON output to app function info - #8755
Conversation
|
/snapit |
|
🫰✨ Thanks @gonzaloriestra! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20261005124840Caution After installing, validate the version by running |
65d493f to
f9af47f
Compare
f9af47f to
119577b
Compare
isaacroldan
left a comment
There was a problem hiding this comment.
Found one issue with configured paths.
🤖 Generated by the review-pr skill
119577b to
5229989
Compare
|
| Changeset | Package |
|---|---|
function-info-json-contract.md |
'@shopify/cli': major |
Related to https://github.com/shop/issues-develop/issues/23666
WHY are these changes introduced?
app function info --jsonhas no discoverable schema and exposes targeting as a keyed object with omitted missing fields.WHAT is this pull request doing?
Return a typed
functionresource with atargetsarray, absolute native paths, and null for unavailable fields. Keep human-readable sections in the presenter. This changes the existing JSON contract and includes a major changeset.Normal output (excerpt):
Matching JSON:
{ "function": { "handle": "my-function", "name": "My Function", "apiVersion": "2024-01", "directory": "/app/extensions/my-function", "targets": [], "schemaPath": "/app/extensions/my-function/schema.graphql", "wasmPath": "/app/extensions/my-function/dist/index.wasm", "functionRunnerPath": "/cli/function-runner" } }How to manually test your changes?
Checklist
Stack