feat(cli): add generateFullProject property to LocalFileSystemOutputLocationSchema #11469
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.
Description
Linear ticket: Closes FER-8155, Closes FER-8154
Adds a new optional boolean property
generateFullProjectto theLocalFileSystemOutputLocationSchematype in the generators.yml schema and implements the configuration loading to handle this property. This is part of the larger effort to support local full-project SDK generation without GitHub files.Changes Made
generateFullProjectoptional boolean property toLocalFileSystemOutputLocationSchemainfern/apis/generators-yml/definition/group.ymlfalsewhen not specified (implicit for optional booleans)pnpm update:generators:generators-yml.schema.jsonwith the new propertypackages/cli/configuration/src/generators-yml/schemas/api/resources/group/types/packages/cli/configuration/src/generators-yml/schemas/serialization/resources/group/types/generateFullProjecttoGeneratorInvocationinterface inGeneratorsConfiguration.tsconvertGeneratorto readgenerateFullProjectfrom the raw schema when output location islocal-file-systemgetPublishConfigto usegenerateFullProjectfrom generator invocation (OR'd with org'sselfHostedSdKsflag)generateFullProject: falseto seed'sgetGeneratorInvocation.tsto satisfy the updated interfaceTesting
pnpm run check)pnpm update:generatorspnpm compile --filter @fern-api/seed-cli)generateFullProject: trueHuman Review Checklist
packages/ir-sdk/fern/apis/ir-types-latest/definition/publish.ymlgeneratorInvocation.generateFullProject || (org?.selfHostedSdKs ?? false)- this means either the config flag OR the org flag enables full project generationLink to Devin run
Requested by: @jsklan