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

feat(typescript): add outputProjectFiles option when generating locally #5086

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mstade
Copy link
Contributor

@mstade mstade commented Nov 3, 2024

This adds a new option outputProjectFiles which, when generating an SDK locally, will output the entire project as opposed to just the source files. This option takes precedence over the outputSourceFiles option.

Fixes #3257.

@coderabbitai summary

…ally

This adds a new option `outputProjectFiles` which, when generating an SDK
locally, will output the entire project as opposed to just the source
files. This option takes precedence over the `outputSourceFiles` option.

Fixes fern-api#3257.
@mstade mstade requested a review from dsinghvi as a code owner November 3, 2024 22:40
Copy link
Contributor Author

@mstade mstade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Author Notes

@dsinghvi this should fix #3257.

Comment on lines +127 to +130
await typescriptProject.copyProjectAsZipTo({
logger,
destinationZip
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the key to outputting the project files locally. Because this option outputs the entire project, the outputSourceFiles option is essentially implied since the src directory is included in the project. That's why this should take priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] fernapi/fern-typescript-browser-sdk does not generate project files
1 participant