Skip to content

Commit a1598df

Browse files
committed
Filter out node:-prefixed only builtins
1 parent 25001ca commit a1598df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/update-data-npm.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ void (async () => {
3131
return
3232
}
3333
const spinner = new Spinner().start()
34-
const builtinNames = Module.builtinModules.toSorted(naturalCompare)
34+
const builtinNames = Module.builtinModules
35+
// Node 23 introduces 'node:sea', 'node:sqlite', 'node:test', and 'node:test/reporters'
36+
// that have no unprefixed version so we skip them.
37+
.filter(n => !n.startsWith('node:'))
38+
.toSorted(naturalCompare)
3539
const allThePackageNames = [
3640
...new Set([
3741
// Load the 43.1MB names.json file of '[email protected]'

0 commit comments

Comments
 (0)