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
Copy file name to clipboardExpand all lines: 300/300/README.md
+4-15Lines changed: 4 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,20 +138,9 @@ This will generate the following file and directory structure underneath the ```
138
138
-**`hatch_project/tsconfig.json`**: TypeScript configuration for the project.
139
139
-**`hatch_project/workspace.json` or `project.json`**: Defines the structure and projects within the workspace.
140
140
141
-
**IMPORTANT**: Move **nx.json** to ```hatch-project``` directory so it can connect with Nx Cloud.
142
-
143
-
```
144
-
└─ hatch-project
145
-
├─ ...
146
-
├─ nx.json
147
-
└─ src
148
-
└─ hatch_project
149
-
├─ ...
150
-
```
151
-
152
141
**IMPORTANT**: Modify **nx.json** so it can connect with Nx Cloud.
153
142
154
-
To support the nested directory structure correctly in your ```/hatch-project/nx.json```, you should adjust the paths to reflect the correct locations within the nested workspace. Here’s a revised example:
143
+
To support the nested directory structure correctly in your ```/hatch-project/src/hatch_project/nx.json```, you should adjust the paths to reflect the correct locations within the nested workspace. Here’s a revised example:
155
144
156
145
```json
157
146
{
@@ -232,7 +221,7 @@ To support the nested directory structure correctly in your ```/hatch-project/nx
232
221
}
233
222
}
234
223
```
235
-
/hatch-project/nx.json
224
+
/hatch-project/src/hatch_project/nx.json
236
225
237
226
### Key Adjustments:
238
227
-**`projects` section**: Explicitly defines the project structure, setting the `root` and `sourceRoot` to the correct paths within the nested directory.
@@ -257,10 +246,10 @@ $ nx build hatch_project
257
246
258
247
This structure should allow Nx Cloud to detect the workspace properly.
259
248
260
-
Run the command to **connect** your workspace to Nx Cloud from the root directory of the `hatch-project`, specifically:
249
+
Run the command to **connect** your workspace to Nx Cloud from the root directory of the nx monorepo `hatchproject`, specifically:
0 commit comments