Skip to content

Allow to use --parallel without monorepo (in a single project) #6692

Description

@ai

Describe the user story

I found pnpm as a pretty powerful task runner with --parallel task execution.

But I found that I can use it only in monorepo with multiple projects. If I have a simple project, I will get:

{
  "private": true,
  "scripts": {
    "build": "vite build -m production",
    "test:types": "tsc --noEmit && eslint . && stylelint **/*.css",
    "test:js": "eslint .",
    "test:css": "stylelint **/*.css",
    "test:audit": "pnpm audit --prod --audit-level high",
    "test:build": "pnpm build && size-limit",
    "test": "pnpm run --parallel /^test:/"
  }
}
❯ pnpm test

> oklch-picker@ test /home/ai/Dev/oklch-picker
> pnpm run --parallel /^test:/

No projects matched the filters in "/home/ai/Dev/oklch-picker"

Describe the solution you'd like

Allow to use --parallel if a user pass a RegExp for tasks,

Describe the drawbacks of your solution

Don’t see any

Describe alternatives you've considered

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions