mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
fs-extra builds its exports at load time (computed keys over graceful-fs, universalify wrappers), which the static CommonJS model cannot follow, so programs reading its members through the default import failed. The package-shim registry now maps fs-extra 8.x-11.x to a TypeScript implementation over node:fs: fs's members re-exported, the wrapped methods following universalify's callback-or-promise rule over fs.promises, and the extras (copy, move, remove, emptyDir, mkdirs, ensureFile, pathExists, outputFile, the JSON helpers and their aliases) with fs-extra's messages. Its declarations stand in for @types/fs-extra, including the default import, and a namespace import resolves to the shim. What it does not implement is not declared, so using it is a type error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
57 lines
2.1 KiB
Plaintext
57 lines
2.1 KiB
Plaintext
node_modules/
|
|
.pnpm-store/
|
|
# test-fixture packages are TEST DATA, committed on purpose
|
|
!tests/diagnostics/npm-imports/node_modules/
|
|
!tests/diagnostics/npm-program-type-error/node_modules/
|
|
!tests/diagnostics/retired-engine-import-refusal/node_modules/
|
|
!tests/fixtures/commander-calc/node_modules/
|
|
!tests/fixtures/npm/node_modules/
|
|
!tests/corpus/*/node_modules/
|
|
!tests/fixtures/npm-static/node_modules/
|
|
!tests/coverage-fixtures/wasm/node_modules/
|
|
!tests/fixtures/npm-static/nested/inner/node_modules/
|
|
!tests/fixtures/npm-static/node_modules/*/node_modules/
|
|
!tests/fixtures/npm/store/*/node_modules/
|
|
!tests/fixtures/npm/node_modules/*/node_modules/
|
|
!tests/fixtures/npm/workspace/*/node_modules/
|
|
!tests/fixtures/npm/cases/*/node_modules/
|
|
!tests/library-mode/*/node_modules/
|
|
!tests/fixtures/provenance/node_modules/
|
|
!tests/fixtures/fetch/node_modules/
|
|
!tests/fixtures/gateway-e2e/node_modules/
|
|
!tests/fixtures/node-types/node_modules/
|
|
dist/
|
|
output/
|
|
/packages/llvm-darwin-arm64/bin/
|
|
/packages/runtime-darwin-arm64/artifacts/
|
|
/packages/runtime-darwin-arm64/runtime-pack.json
|
|
/packages/runtime-darwin-arm64/.runtime-pack-*
|
|
/packages/llvm-*/bin/
|
|
/packages/cli/bin/
|
|
/packages/runtime-*/artifacts/
|
|
/packages/runtime-*/runtime-pack.json
|
|
/packages/runtime-*/.runtime-pack-*
|
|
!tests/fixtures/npm/node_modules/*/dist/
|
|
!tests/fixtures/npm/workspace/*/dist/
|
|
!tests/fixtures/npm/cases/workspace-copied/members/*/dist/
|
|
!tests/fixtures/npm/cases/workspace-copied/node_modules/*/dist/
|
|
!tests/fixtures/provenance/node_modules/*/dist/
|
|
!tests/fixtures/npm-static/node_modules/*/dist/
|
|
!tests/corpus/*/node_modules/*/dist/
|
|
.scriptc/
|
|
*.log
|
|
.DS_Store
|
|
packages/runtime/test/build/
|
|
# Cached build-time evaluator archives (see packages/runtime/vendor/README.md)
|
|
packages/runtime/vendor/.cache/
|
|
# fs corpus scratch directories (created in the test cwd, removed on clean runs)
|
|
tmp-*/
|
|
.claude/
|
|
.vercel/
|
|
.env.local
|
|
.env*
|
|
.env*.local
|
|
# the vendored fs-extra corpus package: its lib/output module and jsonfile's own universalify
|
|
!tests/corpus/fs-extra-package/node_modules/fs-extra/lib/output/
|
|
!tests/corpus/fs-extra-package/node_modules/jsonfile/node_modules/
|