Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run lerna with custom runner from tasksRunnerOptions #3915

Open
3 tasks
gawsoftpl opened this issue Dec 4, 2023 · 0 comments
Open
3 tasks

How to run lerna with custom runner from tasksRunnerOptions #3915

gawsoftpl opened this issue Dec 4, 2023 · 0 comments

Comments

@gawsoftpl
Copy link

I want to run local runner without cloud in dev environemnt, and with nx-cloud in CI pipeline.
In nx I can select runner for execute job, but in lerna I can't find any info about how to select runner for my task:

# Should be argument like --runer=local
npx lerna run --scope=api-server build

nx.json file:

{
  "tasksRunnerOptions": {
    "local": {
      "runner": "nx/tasks-runners/default",
      "options": {
        "cacheDirectory": "node_modules/.cache/nx",
        "parallel": 5
      }
    },
    "default": {
      "runner": "nx-cloud",
      "options": {
        "cacheDirectory": ".nx/cache"
      }
    }
  },

Documentation issue

  • Reporting a typo
  • Reporting a documentation bug
  • [ x] Documentation improvement
  • Documentation feedback

Is there a specific documentation page you are reporting?

Enter the URL or documentation section here.

Additional context or description

https://lerna.js.org/docs/features/distribute-tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant