Skip to main content

PartialNodeConfig

Configures and enables the Node.js platform. Docs: https://moonrepo.dev/docs/config/toolchain#node

Index

Properties

optionaladdEnginesConstraint

addEnginesConstraint?: null | boolean = null | boolean

When version is defined, syncs the version as a constraint to package.json engines.

optionalbinExecArgs

binExecArgs?: null | string[]

Arguments to automatically pass to all tasks that execute the node binary.

optionalbun

bun?: null | PartialBunpmConfig

Options for Bun, when used as a package manager.

optionaldedupeOnLockfileChange

dedupeOnLockfileChange?: null | boolean = null | boolean

Automatically dedupes the lockfile when dependencies have changed.

optionaldependencyVersionFormat

dependencyVersionFormat?: null | NodeVersionFormat = null | NodeVersionFormat

The dependency version format to use when syncing projects as dependencies.

optionalinferTasksFromScripts

inferTasksFromScripts?: null | boolean

Automatically infer moon tasks from package.json scripts.

optionalnpm

npm?: null | PartialNpmConfig

Options for npm, when used as a package manager.

optionalpackageManager

packageManager?: null | NodePackageManager = null | NodePackageManager

The package manager to use for installing dependencies.

optionalplugin

plugin?: null | string

Location of the WASM plugin to use for Node.js support.

optionalpnpm

pnpm?: null | PartialPnpmConfig

Options for pnpm, when used as a package manager.

optionalrootPackageOnly

rootPackageOnly?: null | boolean

Assumes only the root package.json is used for dependencies. Can be used to support the "one version policy" pattern.

optionalsyncProjectWorkspaceDependencies

syncProjectWorkspaceDependencies?: null | boolean = null | boolean

Automatically syncs moon project-to-project relationships as dependencies for each package.json in the workspace.

optionalsyncVersionManagerConfig

syncVersionManagerConfig?: null | NodeVersionManager = null | NodeVersionManager

When version is defined, syncs the version to the chosen config.

optionalversion

version?: null | string

The version of Node.js to download, install, and run node tasks with.

@envvar

MOON_NODE_VERSION

optionalyarn

yarn?: null | PartialYarnConfig

Options for Yarn, when used as a package manager.