Skip to content

Commit

Permalink
fixup: de-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Oct 7, 2024
1 parent 8da2484 commit cdc908a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ function resolveExports(nmPath, request) {
if (!name) { return; }
const pkgPath = path.resolve(nmPath, name);
const { data: pkg, path: pjsonPath } = _readPackage(pkgPath);
if (pkg.type != 'none' && pkg.exports != null) {
if (pkg.type !== 'none' && pkg.exports != null) {
try {
const { packageExportsResolve } = require('internal/modules/esm/resolve');
return finalizeEsmResolution(packageExportsResolve(
Expand Down
7 changes: 6 additions & 1 deletion lib/internal/modules/esm/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,12 @@ function packageResolve(specifier, base, conditions) {
}

// Package match.
const { data: packageConfig } = packageJsonReader.read(packageJSONPath, { __proto__: null, specifier, base, isESM: true });
const { data: packageConfig } = packageJsonReader.read(packageJSONPath, {
__proto__: null,
base,
isESM: true,
specifier,
});
if (packageConfig.exports != null) {
return packageExportsResolve(
packageJSONUrl, packageSubpath, packageConfig, base, conditions);
Expand Down

0 comments on commit cdc908a

Please sign in to comment.