Skip to content

Commit

Permalink
build: dist
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Sep 15, 2023
1 parent 42520ad commit 22c3e23
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.

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-node16.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,15 @@ function checkResolutionsVersionsMatch(pkg, pkgPathName, {
} = {}) {
const pkgResolutions = pkg.resolutions || {};
const reportError = customCreateReportError('Resolutions match other dependencies', pkgPathName);
Object.entries(pkgResolutions).forEach(([depName, resolutionDepVersion]) => {
Object.entries(pkgResolutions).forEach(([resolutionKey, resolutionValue]) => {
let depName = resolutionKey;
let resolutionDepVersion = resolutionValue;
if (resolutionValue.startsWith('patch:')) {
const matchResolutionInKey = /^(.+)@npm:(.+)$/.exec(resolutionKey);
if (matchResolutionInKey) {
[, depName, resolutionDepVersion] = matchResolutionInKey;
}
}
['dependencies', 'devDependencies'].forEach(depType => {
const range = pkg?.[depType]?.[depName];
if (!range) return;
Expand Down
2 changes: 1 addition & 1 deletion dist/index-node16.mjs.map

Large diffs are not rendered by default.

0 comments on commit 22c3e23

Please sign in to comment.