Accept npm 12 pack output in app publish

Merged
CA
14h ago
+24-2

Fixes #30548

npm 12 prints npm pack --json as an object keyed by package name instead of a list, so twenty app publish rejected it with "npm pack returned an invalid package description". The parser now accepts both shapes and still expects exactly one package.

Tested with a publish test that uses the npm 12 shape (it fails without the change), plus an empty-object case. The rest of the publish tests, lint and typecheck pass.