Skip to content

Commit 5d52bc6

Browse files
committed
fix(ci): use the standard script entry guard
1 parent 52d96d9 commit 5d52bc6

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎scripts/stack-conformance-selection.mjs‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22
// The fixture index owns enrollment; the command adds the earlier runners.
33
import { readFileSync } from 'node:fs'
4-
import { pathToFileURL } from 'node:url'
4+
import { fileURLToPath } from 'node:url'
55

66
export function goSelection(index) {
77
const tests = new Set([
@@ -24,10 +24,7 @@ export function goSelection(index) {
2424
return `^(${[...tests].sort().join('|')})$`
2525
}
2626

27-
if (
28-
process.argv[1] &&
29-
import.meta.url === pathToFileURL(process.argv[1]).href
30-
) {
27+
if (process.argv[1] === fileURLToPath(import.meta.url)) {
3128
const index = JSON.parse(
3229
readFileSync(
3330
new URL(

0 commit comments

Comments
 (0)