Skip to content

Commit

Permalink
fixus: restore return signature of jpsonReader.read
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Oct 8, 2024
1 parent 841848f commit 945c207
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/internal/modules/package_json_reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
specifier == null ? undefined : `${specifier}`,
);

return deserializePackageJSON(jsonPath, parsed);
const result = deserializePackageJSON(jsonPath, parsed);

return {
...result.data,
exists: result.data !== 'none',
pjsonPath: result.path,
};
}

/**
Expand Down

0 comments on commit 945c207

Please sign in to comment.