Skip to content

Commit 7fb93b1

Browse files
authored
Update README.md
1 parent fc9f2a6 commit 7fb93b1

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

300/300/README.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,9 @@ This will generate the following file and directory structure underneath the ```
138138
- **`hatch_project/tsconfig.json`**: TypeScript configuration for the project.
139139
- **`hatch_project/workspace.json` or `project.json`**: Defines the structure and projects within the workspace.
140140

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-
152141
**IMPORTANT**: Modify **nx.json** so it can connect with Nx Cloud.
153142

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:
155144

156145
```json
157146
{
@@ -232,7 +221,7 @@ To support the nested directory structure correctly in your ```/hatch-project/nx
232221
}
233222
}
234223
```
235-
/hatch-project/nx.json
224+
/hatch-project/src/hatch_project/nx.json
236225

237226
### Key Adjustments:
238227
- **`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
257246

258247
This structure should allow Nx Cloud to detect the workspace properly.
259248

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 `hatch project`, specifically:
261250

262251
```
263-
$ cd /hatch-project/
252+
$ cd /hatch-project/src/hatch_project/
264253
```
265254

266255
The command to connect to Nx Cloud is:

0 commit comments

Comments
 (0)