Skip to content

fix: persist Apache-2.0 license in package.json via additionalPackageJSON#312

Merged
ismaelrumzan merged 1 commit into
mainfrom
fix/add-license-to-gen-yaml
Jun 10, 2026
Merged

fix: persist Apache-2.0 license in package.json via additionalPackageJSON#312
ismaelrumzan merged 1 commit into
mainfrom
fix/add-license-to-gen-yaml

Conversation

@ismaelrumzan

Copy link
Copy Markdown
Collaborator

Summary

  • Adds license: Apache-2.0 to additionalPackageJSON in .speakeasy/gen.yaml

Why

PR #311 adds the license field directly to package.json, but Speakeasy rewrites package.json on every generation run. Without this change, the license field would be overwritten and lost after the next generation.

Setting it in additionalPackageJSON ensures Speakeasy includes it in every generated package.json, making it permanent.

Verification

After the next generation run, confirm:

node -e "const p=require('./package.json'); console.log(p.license)"
# → Apache-2.0

…JSON

Adds license to gen.yaml so Speakeasy includes it on every generation run,
preventing it from being overwritten. Addresses the concern raised in PR #311.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ismaelrumzan ismaelrumzan requested a review from a team as a code owner June 10, 2026 16:27
@github-actions

Copy link
Copy Markdown
Contributor

SDK Test Report: vercel — tests failed   View Report

@ismaelrumzan ismaelrumzan merged commit e9bd85d into main Jun 10, 2026
2 of 3 checks passed
@ismaelrumzan ismaelrumzan deleted the fix/add-license-to-gen-yaml branch June 10, 2026 16:39
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.

1 participant