|
1 | 1 | $schema: 'https://moonrepo.dev/schemas/toolchain.json' |
2 | 2 |
|
3 | | -extends: './oss/toolchain.yml' |
| 3 | +# https://moonrepo.dev/docs/config/workspace#node |
| 4 | +node: |
| 5 | + version: '18.12.0' |
| 6 | + packageManager: 'yarn' |
| 7 | + yarn: |
| 8 | + version: '3.3.0' |
| 9 | + plugins: |
| 10 | + - 'interactive-tools' |
| 11 | + - 'version' |
| 12 | + - 'workspace-tools' |
| 13 | + |
| 14 | + # Do not add an engines constraint as its abrasive for open source. |
| 15 | + addEnginesConstraint: false |
| 16 | + |
| 17 | + # Always dedupe lockfile to keep it healthy. |
| 18 | + dedupeOnLockfileChange: true |
| 19 | + |
| 20 | + # Use workspace ranges when syncing projects. |
| 21 | + dependencyVersionFormat: 'workspace-caret' |
| 22 | + syncProjectWorkspaceDependencies: true |
| 23 | + |
| 24 | + # Allow contributors to easily use the correct version. |
| 25 | + syncVersionManagerConfig: 'nvm' |
| 26 | + |
| 27 | + # Do not infer functionality from `package.json`, as we want to encourage |
| 28 | + # consumers to embrace moon. |
| 29 | + aliasPackageNames: null |
| 30 | + inferTasksFromScripts: false |
| 31 | + |
| 32 | +# https://moonrepo.dev/docs/config/workspace#typescript |
| 33 | +typescript: |
| 34 | + # Always create a missing config so we can catch misconfigured projects. |
| 35 | + createMissingConfig: true |
| 36 | + |
| 37 | + # Always route project reference declarations outside of the project. |
| 38 | + routeOutDirToCache: true |
| 39 | + |
| 40 | + # Always sync project references to keep it healthy. |
| 41 | + syncProjectReferences: true |
| 42 | + |
| 43 | + # Do not add path aliases, as this may be abrasive. Consumers can opt-in. |
| 44 | + syncProjectReferencesToPaths: false |
0 commit comments