Commit Graph

73 Commits

Author SHA1 Message Date
Zoltan Kochan
58edad7307 test(default-reporter): refactor 2021-10-13 01:27:41 +03:00
Cheng
ef9d2719a1 feat(pnpm): add filterLog hook to pnpmfile (#3802)
Co-authored-by: Zoltan Kochan <z@kochan.io>
2021-10-10 02:41:28 +03:00
Zoltan Kochan
e0aa55140c feat: print error codes in error messages (#3748) 2021-09-06 22:37:23 +03:00
Zoltan Kochan
67c6a67f98 fix(reporter): do not collapse warnings when append-only 2021-07-24 02:46:26 +03:00
Zoltan Kochan
a1a03d1457 fix: import only the needed functions from ramda 2021-05-29 01:33:09 +03:00
Zoltan Kochan
90487a3a8e fix: don't use update-notifier (#3270)
close #2752
2021-03-23 10:35:36 +02:00
Zoltan Kochan
e5c15cb7fb test: retry tests on failure 2021-03-14 14:24:34 +02:00
Zoltan Kochan
09e950fdc5 feat: rename pnpmfile.js to .pnpmfile.cjs (#3149)
close #3145
close #1339
2021-02-21 03:57:10 +02:00
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +02:00
Zoltan Kochan
725351434d test: finish migration to Jest
close #2858
2020-12-11 00:22:17 +02:00
Zoltan Kochan
663afd68eb feat(reporter): don't report scope when one project is selected
ref #2827
PR #2855
2020-09-15 01:43:01 +03:00
Zoltan Kochan
86cd72de33 feat(reporter): show the progress of adding pkgs to virtual store
close #2832
PR #2845
2020-09-13 12:12:01 +03:00
Zoltan Kochan
09b42d3ab0 refactor: use RxJS instead of "most" in @pnpm/default-reporter
PR #2841
2020-09-10 11:46:38 +03:00
Zoltan Kochan
af8361946a perf(reporter): print a warning summary
Sometimes, when installing new dependencies that rely on many peer dependencies,
or when running installation on a huge monorepo, there will be hundreds or thousands of warnings.
Printing many messages to the terminal is expensive and reduces speed,
so pnpm will only print a few warnings and report the total number of the unprinted warnings.

PR #2826
2020-09-04 13:58:19 +03:00
Zoltan Kochan
acc1782c6f style: restrict template expressions 2020-08-27 00:57:58 +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
6d480dd7a2 feat: print more info on forbid errors
close #2774
PR #2777
2020-08-16 21:24:32 +03:00
Yao Ding
9a908bc070 feat: print info after install about hardlinked/copied packages in node_moduels/.pnpm
PR #2679
close #2572

Co-authored-by: Zoltan Kochan <z@kochan.io>
2020-07-19 01:35:05 +03:00
Zoltan Kochan
220896511a refactor: remove common-tags from dependencies 2020-06-21 16:39:49 +03:00
Zoltan Kochan
2ebb7af333 fix: print a warning when an HTTP request fails
close #1240
PR #2615
2020-06-08 13:49:54 +03:00
Zoltan Kochan
eb82084e1e feat(reporter): color the child output prefixes
PR #2598
2020-06-01 12:42:01 +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
c75a921e36 style: no trailing commas in functions 2020-05-12 19:00:16 +03:00
Zoltan Kochan
ee4a5b030b fix: error message is not printed sometimes
close #2478
2020-04-14 22:41:53 +03:00
Zoltan Kochan
f425651401 feat: --loglevel
close #2140
PR #2465
2020-04-06 14:34:54 +03:00
Zoltan Kochan
28f206a06d feat: rm should fail if dep is not available
PR #2428
ref #2319
2020-03-20 23:17:50 +02:00
Zoltan Kochan
97cfec2315 test(reporter): make it more stable 2020-03-14 18:32:22 +02:00
Zoltan Kochan
df25ef202a fix: error reporting of direct dep installation
close #2409
2020-03-09 02:13:16 +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
e287f5ee92 fix: print a better error message on bad spec
PR #2394
close #2380
2020-03-03 23:47:19 +02:00
Zoltan Kochan
feb5a68f3a refactor: rename "workspace packages" to "projects" in logs 2020-01-01 21:50:57 +02:00
Zoltan Kochan
bb5d41f337 style: add missing trailing commas and fix the linting rule 2020-01-01 19:18:25 +02:00
renovate[bot]
25b2904b07 fix(deps): update dependency chalk to v3
PR #2145
2019-11-10 13:48:12 +02:00
Zoltan Kochan
3bb0c1f349 feat: rename --working-dir to --dir
54% of our users prefer the name --dir over --working-dir

https://twitter.com/pnpmjs/status/1188103282662748162

PR #2122
close #2088
ref #2115
2019-10-27 22:40:37 +02:00
Zoltan Kochan
837b146a57 feat: --working-dir flag
`--prefix` will continue to work for compatibility with npm but the docs will only mention `--working-dir`.

BREAKING CHANGE:
- @pnpm/config
- @pnpm/default-reporter
- supi

PR #2115
ref #2088
2019-10-27 03:08:56 +03:00
Zoltan Kochan
15694be1b4 refactor: rename uninstall to remove 2019-10-06 20:13:09 +03:00
Zoltan Kochan
05c22a0413 refactor: packageJson=>manifest 2019-10-06 01:03:17 +03:00
Zoltan Kochan
a3677372ed refactor: rename configs to config
BREAKING CHANGE:

@pnpm/config exports config instead of configs
2019-09-28 22:41:16 +03:00
Zoltan Kochan
3a9fdd856b feat: --hoist-pattern <pattern>
New config added that allows hoisting packages by pattern.
This substitutes the shamefully-flatten config that hoist all
dependencies and makes them available for application code.
The new config gives access to the hoisted packages only  to
dependencies inside node_modules.

close #1998
close #1938
PR #1997
2019-09-08 20:54:19 +03:00
Zoltan Kochan
6eabef10f4 fix: flat node_modules inside a workspace
Flat node_modules is only allowed in the workspace root.

shamefully-flatten should only hoists dependencies of the
root workspace package.

close #1928
PR #1931

BREAKING CHANGE: @pnpm/shamefully-flatten
2019-07-30 00:36:18 +03:00
Zoltan Kochan
0e4a0948f0 refactor: create and use @pnpm/error 2019-07-27 17:39:27 +03:00
Zoltan Kochan
a7c4a27697 feat: pnpm should fail if the project needs another version
pnpm should fail if the project has an engines.pnpm field in its
package.json and the running pnpm's version does not satisfy the
range.

pnpm should also fail it the project has an engines.node field
and process.version does not satisfy it.

close #1382
PR #1914
2019-07-14 02:36:04 +03:00
Zoltan Kochan
c7a5ad2e70 refactor: move all local types to one place 2019-05-18 01:38:42 +03:00
Zoltan Kochan
82f8da19d1 feat(reporting): better error messages on command failures 2019-05-07 22:27:32 +03:00
Renovate Bot
54e7be564a fix(deps): update dependency load-json-file to v6 2019-04-27 21:43:03 +03:00
Zoltan Kochan
8132523244 feat: --save-peer
PR #1787
close #1064
2019-04-23 21:12:38 +03:00
Zoltan Kochan
d063a763b9 fix: when a network connection fails, report correct error message (#1599)
* fix: when a network connection fails, report correct error message

close #1235

* feat: print suggestions on internet-connection error
2019-01-10 10:10:08 +02:00
Zoltan Kochan
b9df1e3173 test(reporter): move error reporting tests to separate file 2019-01-10 01:11:11 +02:00
Zoltan Kochan
b9c3a1908c feat(reporting): progress reporting per workspace package
close #1135
PR #1586
2019-01-04 01:49:09 +02:00
Zoltan Kochan
ded5171a49 feat: better reporting of child processes output
PR #1573

* feat(reporting): collapse build output of deps inside node_modules

ref #1440

* feat(reporting): nicer reporting of lifecycle output

* feat(reporting): print the number of collapsed lines

* feat(reporting): always print the status of the child processes

* refactor: reporting

* feat(reporting): nicer indentation

* feat(reporting): report duration of script run

close #1440
2018-12-23 16:42:27 +02:00