Expand description
Low-level discovery of npm packages and their Components.js metadata.
This module handles the filesystem traversal that happens before any component or config
parsing. Its outputs feed directly into crate::module_state::ModuleState.
node_modules— walksnode_modules/trees (including scoped packages under@scope/) following Node.js resolution order, collecting every directory that contains apackage.json.package_json— parsespackage.jsonfiles, extracting thelsd:*fields that Components.js uses:lsd:module,lsd:components,lsd:contexts,lsd:importPaths. Also handles auto-expansion oflsd:module: trueinto a full IRI.
Modules§
- node_
modules - Node.js
node_modulesdirectory traversal. - package_
json package.jsonparsing and pre-processing for Components.js metadata.