NodeConfig
Index
Properties
optionaladdEnginesConstraint
When version
is defined, syncs the version as a constraint to
package.json
engines.
binExecArgs
Arguments to automatically pass to all tasks that execute the
node
binary.
bun
Options for Bun, when used as a package manager.
optionaldedupeOnLockfileChange
Automatically dedupes the lockfile when dependencies have changed.
dependencyVersionFormat
The dependency version format to use when syncing projects as dependencies.
inferTasksFromScripts
Automatically infer moon tasks from package.json
scripts.
npm
Options for npm, when used as a package manager.
packageManager
The package manager to use for installing dependencies.
plugin
Location of the WASM plugin to use for Node.js support.
pnpm
Options for pnpm, when used as a package manager.
rootPackageOnly
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.
syncVersionManagerConfig
When version
is defined, syncs the version to the chosen config.
version
The version of Node.js to download, install, and run node
tasks with.
yarn
Options for Yarn, when used as a package manager.
Configures and enables the Node.js platform. Docs: https://moonrepo.dev/docs/config/toolchain#node