Modules§
Structs§
- BinEntries
- Cached
NpmPackage Extra Info Provider - Expected
Extra Info - Lifecycle
Scripts Config - Info needed to run NPM lifecycle scripts
- Local
Setup Cache - It is very slow to try to re-setup the symlinks each time, so this will cache what we’ve setup on the last run and only update what is necessary. Obviously this could lead to issues if the cache gets out of date with the file system, such as if the user manually deletes a symlink.
- LogReporter
- NpmInstaller
- NpmInstaller
Factory - NpmInstaller
Factory Options - NpmInstaller
Options - NpmPackage
Extra Info Provider
Enums§
- Package
Caching - Packages
Allowed Scripts - The set of npm packages that are allowed to run lifecycle scripts.
Traits§
Functions§
- node_
modules_ package_ actual_ dir_ to_ name - Extracts the package folder name from a node_modules symlink target path. e.g. node_modules/.deno/chalk@5.0.1/node_modules/chalk -> chalk@5.0.1
- remove_
unused_ node_ modules_ symlinks - Remove symlinks from a node_modules directory where the target package is not in the keep_names set. The on_remove callback is responsible for the actual removal and receives the package name and path.