PartialNodeConfig
Index
Properties
optionaladdEnginesConstraint
When version
is defined, syncs the version as a constraint to
package.json
engines.
optionalbinExecArgs
Arguments to automatically pass to all tasks that execute the
node
binary.
optionalbun
Options for Bun, when used as a package manager.
optionaldedupeOnLockfileChange
Automatically dedupes the lockfile when dependencies have changed.
optionaldependencyVersionFormat
The dependency version format to use when syncing projects as dependencies.
optionalinferTasksFromScripts
Automatically infer moon tasks from package.json
scripts.
optionalnpm
Options for npm, when used as a package manager.
optionalpackageManager
The package manager to use for installing dependencies.
optionalplugin
Location of the WASM plugin to use for Node.js support.
optionalpnpm
Options for pnpm, when used as a package manager.
optionalrootPackageOnly
Assumes only the root package.json
is used for dependencies.
Can be used to support the "one version policy" pattern.
optionalsyncPackageManagerField
Automatically syncs the configured package manager version
to the root packageManager
field in package.json
.
optionalsyncProjectWorkspaceDependencies
Automatically syncs moon project-to-project relationships as
dependencies for each package.json
in the workspace.
optionalsyncVersionManagerConfig
When version
is defined, syncs the version to the chosen config.
optionalversion
The version of Node.js to download, install, and run node
tasks with.
optionalyarn
Options for Yarn, when used as a package manager.
Configures and enables the Node.js platform. Docs: https://moonrepo.dev/docs/config/toolchain#node