Replies: 2 comments
-
In my personal experience, moving the nx cache outside the node_modules folder helps with a few things:
I took a brief look at your linked discussion, and I think the simplest answer is to create scripts in your package.json. For instance, you could create a script that stops the nx daemon, rm -rf node_modules, and starts the daemon again. In general, you can significantly speed up your development workflow with these sorts of simple, composable commands. Here is an example: {
"reset": "pnpm run stop:nx && pnpm run reset:node_modules && pnpm run start:nx",
"stop:nx": "nx daemon --stop",
"reset:node_modules": "rm -rf ./node_modules && pnpm install",
"start:nx": "nx daemon --start"
} |
Beta Was this translation helpful? Give feedback.
-
How do we resolve conflicts, if any? Are there any commands that would regenerate these files? |
Beta Was this translation helpful? Give feedback.
-
I've found that in
nx@17
the.nx
folder was moved fromnode_modules/.cache
to the workspace root.I don't have strong opinions regarding this, but curious about what this movement solves and whether it can be used to address nrwl/nx-console#1863 ?
Beta Was this translation helpful? Give feedback.
All reactions