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

refactor(which-pm): simplify yaml loading #201

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

Conversation

bluwy
Copy link
Contributor

@bluwy bluwy commented Aug 31, 2024

Use fs api and js-yaml directly to load yaml file instead of load-yaml-file package. The difference switching to this is:

  1. strip-bom is no longer called. In my tests, having the BOM didn't really affect yaml parsing and it worked fine as before.
  2. Upgraded js-yaml v3 to v4. The migration guide is here. The main difference is that the safeLoad API is renamed to load

NOTE: I also noticed that we could use read-yaml-file from this monorepo, but I feel like using fs + js-yaml directly is simpler.

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