pkgjs-ln tap @types/tap path-scurry
# typescript 6 refuses to ignore the tsconfig.json sitting next to the sources
# when files are named on the command line (TS5112), so use a project file.
cat >tsconfig-autopkgtest.json <<EOF
{
  "compilerOptions": {
    "module": "nodenext",
    "moduleResolution": "nodenext",
    "target": "es2022",
    "esModuleInterop": true,
    "skipLibCheck": true,
    "types": ["node"],
    "rootDir": "test",
    "outDir": "test"
  },
  "files": ["test/index.ts"]
}
EOF
tsc -p tsconfig-autopkgtest.json
node test/index.js
