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 0e48905 commit 15dbc95Copy full SHA for 15dbc95
scripts/approve-api-golden.js
@@ -26,9 +26,8 @@ if (!packageNameGuess.result) {
26
}
27
28
const [packageName, ...entryPointTail] = packageNameGuess.result.split('/');
29
-const apiGoldenTargetName = `//tools/public_api_guard:${packageName}/${entryPointTail.join(
30
- '-',
31
-)}.md_api.accept`;
+const suffix = entryPointTail.length ? entryPointTail.join('-') : packageName;
+const apiGoldenTargetName = `//tools/public_api_guard:${packageName}/${suffix}.md_api.accept`;
32
33
// ShellJS should exit if any command fails.
34
shelljs.set('-e');
0 commit comments