We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81cc9f0 commit b06dc2aCopy full SHA for b06dc2a
scripts/buildTs.mjs
@@ -116,9 +116,10 @@ packagesWithTs.forEach(({packageDir, pkg}) => {
116
const tsConfig = JSON.parse(
117
stripJsonComments(fs.readFileSync(tsConfigPath, 'utf8')),
118
);
119
- const references = tsConfig.references.map(({path}) => path);
120
121
- return references.some(reference => /test-utils$/.test(reference));
+ return tsConfig.references.some(
+ ({path}) => path && path.endsWith('test-utils'),
122
+ );
123
});
124
125
if (hasJestTestUtils && testUtilsReferences.length === 0) {
0 commit comments