Commit Graph

11 Commits

Author SHA1 Message Date
Zoltan Kochan
a5e9d903cb fix: improve filter help 2021-02-08 00:17:22 +02:00
Zoltan Kochan
1ec47db33e feat: new CLI option --test-pattern 2020-12-22 20:36:59 +02:00
Zoltan Kochan
a11aff2990 feat: excluding packages using --filter
Packages may be excluded from a command's scope, using "!" at the
beginning of the selector.

For instance, this will run tests in all projects except foo:

```
pnpm --filter=!foo test
```

And this one will run tests in all projects that are not under the
`lib` directory:

```
pnpm --filter=!./lib test
```

close #2804
PR #2898
2020-09-26 13:41:49 +03:00
Zoltan Kochan
092f8dd83a feat: --workspace-root
`--workspace-root`, `-w`: a new option that allows to focus on
the root workspace project.

E.g., the following command runs the `lint` script of the root
`package.json` from anywhere in the monorepo:

```
pnpm -w lint
```

PR #2866
2020-09-17 11:07:05 +03:00
Zoltan Kochan
ffddf34a89 feat: --stream
Add new global option called `--stream`.

When used, the output from child processes is streamed to the console immediately, prefixed with the originating package directory. This allows output from different packages to be interleaved.

close #2147
close #1609
PR #2595
2020-05-31 13:46:32 +03:00
Zoltan Kochan
f425651401 feat: --loglevel
close #2140
PR #2465
2020-04-06 14:34:54 +03:00
Zoltan Kochan
234c3a2ec7 feat: filtering by location including deps/dependents
PR #2254
close #1651

Filtering by directory: `pnpm --filter {dir}`
Including dependents: `pnpm --filter ...{dir}`
Including dependencies: `pnpm --filter {dir}...`
Filtering changed projects inside a directory: `pnpm --filter {dir}[origin/master]`
2020-01-06 22:25:54 +02:00
Zoltan Kochan
bb5d41f337 style: add missing trailing commas and fix the linting rule 2020-01-01 19:18:25 +02:00
Zoltan Kochan
5e692c817a feat: filtering by changed packages
close #2046
PR #2223
2019-12-18 02:47:04 +02:00
Aankhen
758a3e4eef feat: add ^...' and ...^' filters
`package^...` is like `package...` but excludes `package` itself.
`...^package` is like `...package` but excludes `package` itself.

PR #2201
2019-12-10 22:51:34 +02:00
Zoltan Kochan
70b5c50b62 refactor: create @pnpm/plugin-commands-outdated
ref #2154
2019-11-23 02:34:14 +02:00