Skip to content

Commit 629f255

Browse files
committed
if no unstable semconv usages found, then don't write a src/semconv.ts file
1 parent 6d64bb9 commit 629f255

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/gen-semconv-ts.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ function genSemconvTs(wsDir) {
9191
}
9292
}
9393
if (names.size === 0) {
94-
console.log(`Did not find any usage of unstable semconv exports in "${wsDir}/{src,test}/**/*.ts".`)
94+
console.log(`Did not find any usage of unstable semconv exports in "${wsDir}/{src,test}/**/*.ts".`);
95+
console.log('No changes made.');
96+
return;
9597
} else {
9698
console.log(`Found import of ${names.size} unstable semconv definitions.`)
9799
}

0 commit comments

Comments
 (0)