Skip to content

Commit ecef7c4

Browse files
committed
Fix options decomposition
1 parent 7741852 commit ecef7c4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,8 @@ async function buildType(entry, options) {
4848
let {
4949
entryFromNamespace,
5050
subset = entryFromNamespace ?? 'full',
51-
typeDummy,
52-
isTypeDummy = typeDummy ?? false,
53-
globalType,
54-
exportGlobalType = globalType ?? true,
51+
typeDummy = false,
52+
globalType = true,
5553
template, templateStable, templateActual, templateFull, filter, modules, enforceEntryCreation,
5654
customType, tsVersion, proposal, types, ownEntryPoint,
5755
} = options;
@@ -73,7 +71,7 @@ async function buildType(entry, options) {
7371
break;
7472
}
7573

76-
if (isTypeDummy) {
74+
if (typeDummy) {
7775
template = $typeDummy;
7876
}
7977
const level = entry.split('/').length - 1;
@@ -88,15 +86,15 @@ async function buildType(entry, options) {
8886
}
8987

9088
types.forEach(type => {
91-
if (exportGlobalType) {
89+
if (globalType) {
9290
imports.index.add(type);
9391
imports[subset].add(type);
9492
}
9593
imports.pure.add(path.join('pure', type));
9694
});
9795

9896
if (customType) {
99-
if (exportGlobalType) {
97+
if (globalType) {
10098
imports.index.add(customType);
10199
imports[subset].add(customType);
102100
}

0 commit comments

Comments
 (0)