@otterdev/nx-exec
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @otterdev/nx-exec

Weekly Downloads

73

Version

0.0.4

License

none

Unpacked Size

5.02 kB

Total Files

13

Last publish

Collaborators

  • ash1k
  • cfraz89