Skip to content

Commit

Permalink
[Fix] in --multi, exports should not have polyfill or impl entryp…
Browse files Browse the repository at this point in the history
…oints
  • Loading branch information
ljharb committed May 4, 2023
1 parent 3cb59a0 commit a6f4a41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ var validateModule = function validateAPIModule(t, nameOrFilePaths) {
}

t.test('`exports` field', { skip: !('exports' in pkg) }, function (st) {
var expectedKeys = ['.', './auto', './polyfill', './implementation', './shim', './package.json'];
var expectedKeys = isMulti
? ['.', './auto', './shim', './package.json']
: ['.', './auto', './polyfill', './implementation', './shim', './package.json'];
var keysToCheck = keys(pkg.exports).filter(function (key) {
return includes(expectedKeys, key);
});
Expand Down

0 comments on commit a6f4a41

Please sign in to comment.