@@ -6,76 +6,16 @@ $schema: "https://moonrepo.dev/schemas/toolchain.json"
66
77# Configures how moon integrates with TypeScript.
88typescript :
9- # When `syncProjectReferences` is enabled and a dependent project reference
10- # *does not* have a `tsconfig.json`, automatically create one.
11- createMissingConfig : false
12-
13- # Append the sources of each project reference to the `include` field
14- # of each applicable project's `tsconfig.json`.
15- includeProjectReferenceSources : false
16-
17- # Append shared types (from the TypeScript root) to the `include` field
18- # of every project's `tsconfig.json`.
19- includeSharedTypes : false
20-
21- # Name of `tsconfig.json` file in each project root.
22- # projectConfigFileName: 'tsconfig.json'
23-
24- # Path to the TypeScript root, relative from the workspace root.
25- # root: '.'
26-
27- # Name of `tsconfig.json` file in the TypeScript root.
28- # rootConfigFileName: 'tsconfig.json'
29-
30- # Name of the config file in the workspace root that defines shared compiler
31- # options for all project reference based config files.
32- # rootOptionsConfigFileName: 'tsconfig.options.json'
33-
34- # Update a project's `tsconfig.json` to route the `outDir` compiler option
35- # to moon's `.moon/cache` directory.
36- routeOutDirToCache : false
37-
38- # Sync a project's dependencies as project references within the
39- # project's `tsconfig.json` and the workspace root `tsconfig.json`.
40- syncProjectReferences : false
41-
42- # Sync a project's project references as import aliases to the `paths`
43- # compiler option in each applicable project.
44- syncProjectReferencesToPaths : false
9+ routeOutDirToCache : true
10+ syncProjectReferencesToPaths : true
4511
4612# Configures Node.js within the toolchain.
4713node :
48- # The version to use. Must be a semantic version that includes major, minor, and patch.
49- # We suggest using the latest active LTS version: https://nodejs.org/en/about/releases
50- version : " 22.2.0"
51-
52- # The package manager to use when managing dependencies.
53- # Accepts "npm" (default), "pnpm", "yarn", or "bun".
54- packageManager : " yarn"
55-
56- # The version of the package manager (above) to use.
14+ version : 22.12.0
15+ packageManager : yarn
5716 yarn :
58- version : " 4.2.2"
59-
60- # Add `node.version` as a constraint in the root `package.json` `engines`.
17+ version : 4.5.3
6118 addEnginesConstraint : true
62-
63- # Dedupe dependencies after the lockfile has changed.
6419 dedupeOnLockfileChange : true
65-
66- # Version format to use when syncing dependencies within the project's `package.json`.
67- # dependencyVersionFormat: 'workspace'
68-
69- # Infer and automatically create moon tasks from `package.json` scripts, per project.
70- # BEWARE: Tasks and scripts are not 1:1 in functionality, so please refer to the documentation.
7120 inferTasksFromScripts : false
72-
73- # Support the "one version policy" by only declaring dependencies in the root `package.json`.
74- # rootPackageOnly: true
75-
76- # Sync a project's relationships as `dependencies` within the project's `package.json`.
7721 syncProjectWorkspaceDependencies : true
78-
79- # Sync `node.version` to a 3rd-party version manager's config file.
80- # Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
81- # syncVersionManagerConfig: 'nvm'
0 commit comments