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

chore(cli): Add @fern-api/path-utils #5285

Merged
merged 6 commits into from
Nov 26, 2024
Merged

chore(cli): Add @fern-api/path-utils #5285

merged 6 commits into from
Nov 26, 2024

Conversation

amckinney
Copy link
Contributor

This adds the new @fern-api/path-utils package, which replaces a subset of @fern-api/fs-utils package. With this, packages that need to be browser-compatible can opt into a slimmed down version of the original package that contains no node-specific dependencies.

Note that we continue to export the AbsoluteFilePath and RelativeFilePath types from @fern-api/fs-utils so that old callers can still import the types from a single location. New packages can opt into @fern-api/path-utils as needed.

Copy link

github-actions bot commented Nov 26, 2024

};
// For convenience, we re-export the AbsoluteFilePath type for any caller
// that requires fs-utils.
export { AbsoluteFilePath } from "@fern-api/path-utils";
Copy link
Member

Choose a reason for hiding this comment

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

Genius 🔥

@amckinney amckinney merged commit ea5e828 into main Nov 26, 2024
51 checks passed
@amckinney amckinney deleted the amckinney/path-utils branch November 26, 2024 20:56
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.

2 participants