You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Multiple projects | Separate file system structure | Single file system structure |
54
-
|`node_modules` & `package.json`| Separate instances | Shared across monorepo |
55
-
| Default compiler |`tsc`| webpack |
56
-
| Compiler settings | Specified separately | Monorepo defaults that can be overridden per project |
57
-
| Config files like `.eslintrc.js`, `.prettierrc`, etc. | Specified separately | Shared across monorepo |
58
-
|`nest build` and `nest start` commands | Target defaults automatically to the (only) project in the context | Target defaults to the **default project** in the monorepo |
59
-
| Libraries | Managed manually, usually via npm packaging | Built-in support, including path management and bundling |
| Multiple projects | Separate file system structure | Single file system structure |
54
+
|`node_modules` & `package.json`| Separate instances | Shared across monorepo |
55
+
| Default compiler |`tsc`| webpack |
56
+
| Compiler settings | Specified separately | Monorepo defaults that can be overridden per project |
57
+
| Config files like `eslint.config.mjs`, `.prettierrc`, etc. | Specified separately | Shared across monorepo |
58
+
|`nest build` and `nest start` commands | Target defaults automatically to the (only) project in the context | Target defaults to the **default project** in the monorepo |
59
+
| Libraries | Managed manually, usually via npm packaging | Built-in support, including path management and bundling |
60
60
61
61
Read the sections on [Workspaces](/cli/monorepo) and [Libraries](/cli/libraries) for more detailed information to help you decide which mode is most suitable for you.
|`--path [path]`| Path to `tsconfig` file. <br/>Alias `-p`|
113
-
|`--config [path]`| Path to `nest-cli` configuration file. <br/>Alias `-c`|
114
-
|`--watch`| Run in watch mode (live-reload).<br /> If you're using `tsc` for compilation, you can type `rs` to restart the application (when `manualRestart` option is set to `true`). <br/>Alias `-w`|
115
-
|`--builder [name]`| Specify the builder to use for compilation (`tsc`, `swc`, or `webpack`). <br/>Alias `-b`|
116
-
|`--webpack`| Use webpack for compilation (deprecated: use `--builder webpack` instead). |
117
-
|`--webpackPath`| Path to webpack configuration. |
|`--path [path]`| Path to `tsconfig` file. <br/>Alias `-p`|
113
+
|`--config [path]`| Path to `nest-cli` configuration file. <br/>Alias `-c`|
114
+
|`--watch`| Run in watch mode (live-reload).<br /> If you're using `tsc` for compilation, you can type `rs` to restart the application (when `manualRestart` option is set to `true`). <br/>Alias `-w`|
115
+
|`--builder [name]`| Specify the builder to use for compilation (`tsc`, `swc`, or `webpack`). <br/>Alias `-b`|
116
+
|`--webpack`| Use webpack for compilation (deprecated: use `--builder webpack` instead). |
117
+
|`--webpackPath`| Path to webpack configuration. |
118
+
|`--tsc`| Force use `tsc` for compilation. |
119
+
|`--watchAssets`| Watch non-TS files (assets like `.graphql` etc.). See [Assets](cli/monorepo#assets) for more details. |
120
+
|`--type-check`| Enable type checking (when SWC is used). |
121
+
|`--all`| Build all projects in a monorepo. |
122
+
|`--preserveWatchOutput`| Keep outdated console output in watch mode instead of clearing the screen. (`tsc` watch mode only) |
0 commit comments