Skip to main content

Crate deno_npm_installer

Crate deno_npm_installer 

Source

Modules§

graph
initializer
lifecycle_scripts
package_json
process_state
resolution

Structs§

BinEntries
CachedNpmPackageExtraInfoProvider
ExpectedExtraInfo
LifecycleScriptsConfig
Info needed to run NPM lifecycle scripts
LocalSetupCache
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
NpmInstallerFactory
NpmInstallerFactoryOptions
NpmInstallerOptions
NpmPackageExtraInfoProvider

Enums§

PackageCaching
PackagesAllowedScripts
The set of npm packages that are allowed to run lifecycle scripts.

Traits§

InstallProgressReporter
InstallReporter
NpmInstallerFactorySys
NpmInstallerSys
Reporter

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.