Skip to content

Commit 3861929

Browse files
committed
Fix package.json for core-js-types
1 parent 02c25b8 commit 3861929

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/core-js-types/package.tpl.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@
2525
"email": "zloirock@zloirock.ru",
2626
"url": "http://zloirock.ru"
2727
},
28-
"types": "./index.d.ts",
2928
"sideEffects": false
3029
}

scripts/build-entries-and-types/build-types.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ async function buildPackageJson(breakpoints, namespaces) {
261261

262262
const packageJson = await readJson(PACKAGE_TEMPLATE);
263263
packageJson.typesVersions = {};
264-
packageJson.typesVersions['*'] = { '*': [`./ts${ defaultBreakpoint }/*`] };
265264
breakpoints.forEach(breakpoint => {
266265
packageJson.typesVersions[`>=${ breakpoint }`] = {
267266
'*': [`./ts${ breakpoint.toString().replace('.', '-') }/*`],
268267
};
269268
});
269+
packageJson.typesVersions['*'] = { '*': [`./ts${ defaultBreakpoint }/*`] };
270270

271271
packageJson.exports = {};
272272
Object.entries(namespaces).forEach(([namespace, options]) => {

0 commit comments

Comments
 (0)