Skip to content

Commit c0850a5

Browse files
chore(exports): stop using path fallbacks (#61)
1 parent a83b58e commit c0850a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/utils/postprocess-files.cjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ async function postprocess() {
5050
if (entry.isDirectory() && entry.name !== 'src' && entry.name !== 'internal' && entry.name !== 'bin') {
5151
const subpath = './' + entry.name;
5252
newExports[subpath + '/*.mjs'] = {
53-
default: [subpath + '/*.mjs', subpath + '/*/index.mjs'],
53+
default: subpath + '/*.mjs',
5454
};
5555
newExports[subpath + '/*.js'] = {
56-
default: [subpath + '/*.js', subpath + '/*/index.js'],
56+
default: subpath + '/*.js',
5757
};
5858
newExports[subpath + '/*'] = {
59-
import: [subpath + '/*.mjs', subpath + '/*/index.mjs'],
60-
require: [subpath + '/*.js', subpath + '/*/index.js'],
59+
import: subpath + '/*.mjs',
60+
require: subpath + '/*.js',
6161
};
6262
} else if (entry.isFile() && /\.[cm]?js$/.test(entry.name)) {
6363
const { name, ext } = path.parse(entry.name);

0 commit comments

Comments
 (0)