WP21: Packages

State: In progress · Done: 5 of 7 · Design note: docs/wp21-packages.md

Stages

  • S1: package-scoped symbols (#57)
  • S2: bare specifiers and the nish export condition
  • S3: resolution diagnostics and package identity, a module is its real path
  • S3: an error naming the package when a builtin has no runtime on the target (readFileSync on wasm)
  • S3: a compile error inside node_modules/<pkg> attributed to that dependency
  • S4: the build cache, keyed by package version, number mode, target, profile and compiler
  • S5: prebuilt distribution (deferred)

Next

S4: the build cache, content-addressed by package version, number mode, target, profile and compiler version. Spec: §8 Stages.

Not planned

Diamond dependencies and two copies of one package, a separate resolver tool.

All work packages