mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-26 06:34:20 +08:00
- Add native worker execution with isolated module state, structured messages, and lifecycle controls. - Support shared buffers and integer atomics with coordinated runtime ownership and cancellation. - Extend compiler, runtime-pack, differential, and compatibility coverage for native concurrency.
22 lines
702 B
JavaScript
22 lines
702 B
JavaScript
import { globSync } from "node:fs";
|
|
import { join } from "node:path";
|
|
|
|
export function orderEntriesUnder(repoRoot, dir) {
|
|
return ["ts", "js", "mjs", "cjs"]
|
|
.flatMap((ext) => [
|
|
...globSync(join(repoRoot, dir, `*.${ext}`)),
|
|
...globSync(join(repoRoot, dir, `*/main.${ext}`)),
|
|
])
|
|
.sort();
|
|
}
|
|
|
|
export function allOrderEntries(repoRoot) {
|
|
return [
|
|
...orderEntriesUnder(repoRoot, "tests/corpus"),
|
|
...orderEntriesUnder(repoRoot, "tests/diagnostics"),
|
|
...orderEntriesUnder(repoRoot, "tests/fixtures/npm/cases"),
|
|
...globSync(join(repoRoot, "tests/fixtures/strictness/*/main.ts")).sort(),
|
|
...globSync(join(repoRoot, "tests/fixtures/node-types/*.ts")).sort(),
|
|
];
|
|
}
|