Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger fern from typescript #363

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

billytrend-cohere
Copy link
Collaborator

@billytrend-cohere billytrend-cohere commented Jan 16, 2025

This pull request introduces changes to the fern/apis/sdks/generators.yml and packages/autorelease/src/create-releases.ts files, primarily focusing on updating the SDK language groups and enhancing the release creation process.

Summary

The fern/apis/sdks/generators.yml file undergoes a series of updates, replacing the existing SDK language groups (node-sdk, go-sdk, java-sdk, and python-sdk) with new ones (typescript, go, java, and python). This change likely reflects a shift in the SDK language structure or naming conventions.

In the packages/autorelease/src/create-releases.ts file, the createRelease function is modified to include an additional step, runFernGenerate, which is executed for each language. This new function, runFernGenerate, asynchronously runs a command to generate code for a specific language and version, handling potential errors and output.

Changes

  • SDK Language Groups Update:
    • In fern/apis/sdks/generators.yml, the SDK language groups are updated:
      • node-sdk is replaced with typescript.
      • go-sdk is replaced with go.
      • java-sdk is replaced with java.
      • python-sdk is replaced with python.
  • Release Creation Enhancement:
    • In packages/autorelease/src/create-releases.ts, the createRelease function is modified:
      • The runFernGenerate function is introduced to generate code for a specific language and version.
      • The createRelease function now includes runFernGenerate in its execution flow for each language.

Copy link

Copy link

Copy link

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