gram/packages/modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
abiwab 322696526c
Some checks failed
CI / ci (push) Failing after 2m13s
chore: release v1.2.0
2026-08-22 16:28:41 +02:00
..
src feat(modules): hint the re-export fix for an internal-but-unbound import name 2026-08-22 09:56:01 +02:00
tests test(modules): cover previously untested warning codes and edge cases 2026-08-22 15:27:56 +02:00
CHANGELOG.md chore: release v1.2.0 2026-08-22 16:28:41 +02:00
package.json chore: release v1.2.0 2026-08-22 16:28:41 +02:00
README.md feat(modules): scaffold @gram-lang/modules — host interface, exports, graph loader 2026-08-17 18:56:18 +02:00
tsconfig.json feat(modules): scaffold @gram-lang/modules — host interface, exports, graph loader 2026-08-17 18:56:18 +02:00

@gram-lang/modules

License: GPL v3

Part of the Gram monorepo.

Resolves and composes @use import directives (see .notes/plan-ajout-imports-recettes.md). Loads a document's import graph, computes each module's public exports and yield, renames its intermediates to avoid collisions with the host, and splices its sections into a single composed AST — so the whole document is compiled, and ALAP-scheduled, exactly once.

This package defines the host interface (ModuleHost) but never implements it: file resolution and reading are the caller's job (CLI, language server, playground, conformance runner), so this package stays pure — no built-in Node APIs, no filesystem access of its own.


Licensed under GPL-3.0-or-later.