0.0.4 • Published 3 years ago

@otterdev/nx-exec v0.0.4

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

nx-exec

An Nx plugin which provides an executor which for running package commands, using the npx, yarn, or pnpx which is detected by nx

Add the plugin to your workspace:

npm install @otterdev-io/nx-exec

Create a target for your project:

Eg the equivalent of npx prisma generate:

"targets": { ... "my-target": { "executor": "@otterdev/nx-exec:exec", "options": { "command": "prisma generate" } } ... }

Options

  • command: The command to run with npx/yarn/pnpx
  • cwd (optional): The directory to run the command in, relative to workspace root. Defaults to workspace root if not provided