-
Notifications
You must be signed in to change notification settings - Fork 11
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
Inline fix logic #47
Inline fix logic #47
Conversation
wraithgar
commented
Jul 7, 2023
- deps: add semver@7.5.3
- deps: add hosted-git-info@6.1.1
- fix: pull in fix logic from normalize-package-data
- fix: only report bundleDependencies change if it was changed
Looks good! One minor swap for a |
This brings in the logic from `normalize-package-data` to be in this repo instead. It doesn't bring all of the logic, just the steps involved with "fix". There was some re-duplication of `bundleDependencies` that `normalize-package-data` was doing that has been removed. It was also completely re-implementing the script fixing, which we already call as part of "fix" so that was dropped.
87403b4
to
1a05d6d
Compare
if (!data.version) { | ||
data.version = '' | ||
} else { | ||
if (!semver.valid(data.version, !loose)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Here and line 80) bool arg is loose
based on typings: https://unpkg.com/browse/@types/semver@7.3.10/functions/valid.d.ts
if (!semver.valid(data.version, !loose)) { | |
if (!semver.valid(data.version, loose)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep this is a typo from refactoring, I'd changed it to !strict but then decided to keep the loose param.