Skip to content

Commit 29744f8

Browse files
committed
only install legacy deps when define
1 parent dafa758 commit 29744f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/node-unit-tests.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ function runTests(): void {
162162
const versionConfig = SKIP_TEST_PACKAGES[CURRENT_NODE_VERSION as NodeVersions];
163163
if (versionConfig) {
164164
versionConfig.ignoredPackages.forEach(dep => ignores.add(dep));
165-
installLegacyDeps(versionConfig.legacyDeps);
165+
166+
if (versionConfig.legacyDeps.length > 0) {
167+
installLegacyDeps(versionConfig.legacyDeps);
168+
}
169+
166170
if (versionConfig.shouldES6Utils) {
167171
es6ifyTestTSConfig('utils');
168172
}

0 commit comments

Comments
 (0)