Skip to content

Commit

Permalink
build: dist
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Mar 6, 2024
1 parent e9b07fd commit df1dd7d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/definitions/checks/checkExactVersions.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion dist/index-node18.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,15 @@ async function checkExactVersions(pkg, pkgPathName, types, {
reportError(`Unexpected range dependency in "${type}" for "${dependencyName}"`, `expecting "${version}" to be exact "${resolvedDep.version}".`, shouldOnlyWarn, true);
}
} else {
reportError(`Unexpected range dependency in "${type}" for "${dependencyName}"`, `expecting "${version}" to be exact "${version.slice(version[1] === '=' ? 2 : 1)}".`, shouldOnlyWarn, false);
let exactVersion = version.slice(version[1] === '=' ? 2 : 1);
if (exactVersion.split('.').length < 3) {
if (exactVersion.split('.').length === 1) {
exactVersion = `${exactVersion}.0.0`;
} else {
exactVersion = `${exactVersion}.0`;
}
}
reportError(`Unexpected range dependency in "${type}" for "${dependencyName}"`, `expecting "${version}" to be exact "${exactVersion}".`, shouldOnlyWarn, false);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index-node18.mjs.map

Large diffs are not rendered by default.

0 comments on commit df1dd7d

Please sign in to comment.