Commit Graph

24 Commits

Author SHA1 Message Date
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +02: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
88e1eaa908 style: use no delimiters in type declarations 2020-08-26 01:42:36 +03:00
Zoltan Kochan
1c8a02e996 style: use eslint instead of tslint
PR #2796
close #2300
2020-08-24 02:01:25 +03:00
Zoltan Kochan
be0a3db9ba feat: allow unknown options if they are prefixed with "config."
PR #2755
close #2685
close #2710
2020-08-07 22:31:38 +03:00
Yao Ding
65b4d07ca0 feat: new setting recursive-install
When `recursive-install` is set to `false`, `pnpm install` is installing only the current
project in a workspace.

close #2150
close #2476 
PR #2657
2020-07-08 11:27:14 +03:00
Zoltan Kochan
69fd42440c refactor(parse-cli-args): add opts.fallbackCommand
ref #2668
ref #2169
PR #2669
2020-07-06 18:54:17 +03:00
Zoltan Kochan
09b777f8d1 feat: any unknown command is assumed to be a script
close #2169
PR #2668
2020-07-06 00:23:08 +03:00
Alex Young
f00dabd2d1 chore: remove type assertions when using didyoumean2
PR #2639
2020-06-18 18:35:19 +03:00
Zoltan Kochan
561f389554 feat: "Did you mean <option>?"
Print a "Did you mean" line under the unknown option error
with any option that look similar to the typed one.

close #2603
PR #2623
2020-06-11 01:12:45 +03:00
Zoltan Kochan
0e8daafe41 feat: --parallel
The `run` and `exec` commands may use the `--parallel` option.

`--parallel` completely disregards concurrency and topological sorting,
running a given script immediately in all matching packages
with prefixed streaming output. This is the preferred flag
for long-running processes such as watch run over many packages.

For example: `pnpm run --parallel watch`

close #2528
PR #2599
2020-06-01 11:22:44 +03:00
Zoltan Kochan
c75a921e36 style: no trailing commas in functions 2020-05-12 19:00:16 +03:00
Zoltan Kochan
906ede36c6 fix: the -r option is not supported by all cmds
ref #2396
2020-03-15 02:28:20 +02:00
Zoltan Kochan
2b14b4ac98 refactor: parse cli args 2020-03-08 21:24:51 +02:00
Zoltan Kochan
0568ae9c82 refactor: recursive reporting
BREAKING CHANGE:

* @pnpm/parse-cli-args
* @pnpm/default-reporter
2020-03-08 17:39:35 +02:00
Zoltan Kochan
1ea37ad5e8 fix(CLI): correct error on unknown recursive cmds
close #2397
PR #2407

BREAKING CHANGE: @pnpm/parse-cli-args
2020-03-08 15:58:13 +02:00
Zoltan Kochan
290b4741bb feat: -D is an alias of --dev, -P is an alias of --production
close #2251
PR #2376 

BREAKING CHANGE: @pnpm/parse-cli-args
2020-02-23 20:11:13 +02:00
ExE Boss
31d284337d fix(pnpm): fail on unknown command
PR #2330
close #2325
2020-02-04 15:07:23 +02:00
Zoltan Kochan
e8ac70b648 feat: support autocompletion
PR #2281
close #2229
2020-01-27 21:34:18 +02:00
Zoltan Kochan
6008f4289b refactor: parse-cli-args should not return "dir" 2020-01-02 23:42:00 +02:00
Zoltan Kochan
9c9a3849d9 refactor: destroying the plugin-commands-recursive package
PR #2237
2019-12-29 18:45:20 +02:00
Zoltan Kochan
a1efd352db fix: --help
Fixing a regression introduced during CLI refactoring.
"pnpm <cmd> --help" should print an error about <cmd>.

PR #2204
2019-12-11 14:23:44 +02:00
Zoltan Kochan
70cad8aac3 fix: args parsing 2019-12-09 19:10:06 +02:00
Zoltan Kochan
07c4720086 refactor: CLI args parsing
BREAKING CHANGE:

@pnpm/config: the workspace dir location should be
passed in

PR #2187
2019-11-29 04:19:17 +02:00