|
| 1 | +# https://moonrepo.dev/docs/config/toolchain |
| 2 | +$schema: 'https://moonrepo.dev/schemas/toolchain.json' |
| 3 | + |
| 4 | +# Extend and inherit an external configuration file. Must be a valid HTTPS URL or file system path. |
| 5 | +# extends: './shared/toolchain.yml' |
| 6 | + |
| 7 | +# Configures Node.js within the toolchain. moon manages its own version of Node.js |
| 8 | +# instead of relying on a version found on the host machine. This ensures deterministic |
| 9 | +# and reproducible builds across any machine. |
| 10 | +node: |
| 11 | + # The version to use. Must be a semantic version that includes major, minor, and patch. |
| 12 | + # We suggest using the latest active LTS version: https://nodejs.org/en/about/releases |
| 13 | + version: '20.11' |
| 14 | + |
| 15 | + # The package manager to use when managing dependencies. |
| 16 | + # Accepts "npm" (default), "pnpm", or "yarn". |
| 17 | + packageManager: 'pnpm' |
| 18 | + |
| 19 | + # The version of the package manager (above) to use. |
| 20 | + pnpm: |
| 21 | + version: '8.15.4' |
| 22 | + |
| 23 | + # Add `node.version` as a constraint in the root `package.json` `engines`. |
| 24 | + addEnginesConstraint: true |
| 25 | + |
| 26 | + # Dedupe dependencies after the lockfile has changed. |
| 27 | + dedupeOnLockfileChange: true |
| 28 | + |
| 29 | + # Version format to use when syncing dependencies within the project's `package.json`. |
| 30 | + # dependencyVersionFormat: 'workspace' |
| 31 | + |
| 32 | + # Infer and automatically create moon tasks from `package.json` scripts, per project. |
| 33 | + # BEWARE: Tasks and scripts are not 1:1 in functionality, so please refer to the documentation. |
| 34 | + inferTasksFromScripts: true |
| 35 | + |
| 36 | + # Sync a project's `dependsOn` as dependencies within the project's `package.json`. |
| 37 | + syncProjectWorkspaceDependencies: true |
| 38 | + |
| 39 | + # Sync `node.version` to a 3rd-party version manager's config file. |
| 40 | + # Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none. |
| 41 | + # syncVersionManagerConfig: 'nvm' |
0 commit comments