Skip to content

Commit aa6552b

Browse files
committed
Tweaks
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent 78e38f2 commit aa6552b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

types/utils.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

utils.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,15 @@ export function isFeatureEnabled(cliOptions, feature) {
310310
) {
311311
return true;
312312
}
313+
// Retry by replacing hyphens with underscore
314+
if (
315+
process.env[feature.replaceAll("-", "_").toUpperCase()] &&
316+
["true", "1"].includes(
317+
process.env[feature.replaceAll("-", "_").toUpperCase()],
318+
)
319+
) {
320+
return true;
321+
}
313322
return false;
314323
}
315324

0 commit comments

Comments
 (0)