nx-tools
nx-tools copied to clipboard
Package Managers Support
I've discovered that when I'm using pnpm nx my-service:generate
, the process fails with the following error: The process '/usr/local/bin/npx' failed with exit code 1
.
The original command: npx prisma generate --schema=...
Is there any way to configure the package manager? For example, use pnpx
instead of npx
or something?
My nx.json has the following CLI options:
"cli": {
"packageManager": "pnpm"
},
I believe this issue lies here: https://github.com/gperdomor/nx-tools/blob/cb6a268c44a615f5044478ede7cd69dabd0b73e3/packages/nx-prisma/src/executors/generate/executor.ts#L6