Skip to content

Commit

Permalink
improve search string
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Jan 16, 2025
1 parent 7686cfa commit 6d4ccc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/search-for-rhc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function run() {
const flags = ['--recursive', '--quiet', '--include=*.js', '--include=*.mjs'];

// Leveraging https://google.github.io/zx/process-promise#nothrow to avoid throwing an error if the command fails
if ((await $`grep ${flags} 'npm/@clerk/clerk-js' ${buildFolder}`.exitCode) === 0) {
if ((await $`grep ${flags} 'https://\${scriptHost}/npm/@clerk/clerk-js' ${buildFolder}`.exitCode) === 0) {
throw new Error('Found RHC in build output');
} else {
console.log('✅ No RHC found in build output');
Expand Down

0 comments on commit 6d4ccc9

Please sign in to comment.