Commit Graph

10701 Commits

Author SHA1 Message Date
Zoltan Kochan
da0a6978ea fix(CLI): "pnpm -h <cmd>" prints help for <cmd>
Before this changes, "pnpm -h <cmd>" was printing the general help.
"pnpm <cmd> -h" worked correctly.
2019-09-20 00:49:33 +03:00
Zoltan Kochan
537725e9f7 test: skip unstable test 2019-09-20 00:15:14 +03:00
ExE Boss
7d0c5500f0 feat(pnpm): always include the root package.json in a workspace
PR #2021
close #1986
2019-09-19 21:54:25 +03:00
Zoltan Kochan
5e53549364 chore(renovate): add packageRules
close #1851
close #1853
close #1905
close #1960
2019-09-19 01:01:33 +03:00
Aparajita Fishman
85faad5138 feat(outdated): add long option, no details by default
Previously, by default the `outdated` commands displayed a “Details” column which usually contained the URL to the package repo. As the URL could be quite long, on narrow terminals it would cause the table to wrap in a way which ruined the table borders.

This commit hides the “Details” column by default, and displays the column if `--long` is passed to the command.

PR #2017
2019-09-19 00:27:38 +03:00
Zoltan Kochan
04b3312051 chore(release): 4.0.0-2 v4.0.0-2 2019-09-18 22:25:32 +03:00
Zoltan Kochan
7c32f6054e chore(deps): update 2019-09-18 21:40:57 +03:00
ExE Boss
f2d17759dd feat(fetch): add type information
PR #2014
2019-09-18 19:11:43 +03:00
ExE Boss
7ab046e6b2 test(pnpm/utils): fix execPnpm.ts
PR #2016
2019-09-18 17:57:55 +03:00
ExE Boss
cd16fba021 feat(pnpm): implement pnpm why
close #1623
PR #2015
2019-09-18 17:18:44 +03:00
Zoltan Kochan
245b92a25b feat: nicer alignments in the help command output
Better alignments.
Links to the docs added at the end of every help output.

close #1990
PR #2013
2019-09-18 11:09:13 +03:00
Aparajita Fishman
9da8708a53 feat(outdated): restyle table for readability
The previous design of the outdated table had a few issues with readability:

- The borders of the table cells were visually competing with the content of the cells.

- The leftmost column had no border and was flush with the edge of the terminal. This made it difficult for the eye to find the start of the line, and also made the entire table seem unbalanced since all other cells had a left border and padding before the text.

- The headers were not visually distinguished from the content.

This PR aims to address these issues by doing the following:

- The cell border is gray and a single line all around, which is enough to provide visual separation between cells but allows the cell content to be much stronger visually.

- The leftmost column has a left border and padding like all other cells. The padding and visual consistency makes the table easier to parse visually.

- The headers are now in blue, which sets them apart from the content cells.

PR #2007
2019-09-16 21:27:51 +03:00
Zoltan Kochan
abced735de ci: test on Node.js 12 2019-09-15 02:27:43 +03:00
Zoltan Kochan
5570315e89 chore(deps): update 2019-09-15 01:15:02 +03:00
Renovate Bot
e7731f1d92 chore(deps): update dependency nock to v11.3.4 2019-09-15 01:07:33 +03:00
Zoltan Kochan
26a168fc52 test: more stable @pnpm/config tests 2019-09-15 01:05:36 +03:00
Zoltan Kochan
b456a26f01 refactor: rename fields in fetch response
BREAKING CHANGE: @pnpm/package-requester

PR #2011
2019-09-15 01:04:05 +03:00
Zoltan Kochan
d36103b5ee fix: unhadled promise rejections
PR #2009
2019-09-14 16:03:43 +03:00
Zoltan Kochan
afc18dc299 fix: some cases of unhandled promist rejection 2019-09-13 01:26:28 +03:00
Zoltan Kochan
30b4629808 chore(release): 4.0.0-1 v4.0.0-1 2019-09-12 02:40:03 +03:00
Zoltan Kochan
f3d5037fa9 fix: independent-leaves is only allowed with hoist=false 2019-09-12 00:54:20 +03:00
Zoltan Kochan
6eeaa5a43a feat: --shamefully-hoist
This returns shamefully-flatten to pnpm (as known in v3)
but it is now called shamefully-hoist

PR #2006
2019-09-12 00:45:58 +03:00
Zoltan Kochan
e38113ff20 feat: use micromatch instead of minimatch 2019-09-11 01:17:51 +03:00
Zoltan Kochan
f7060a3a6a fix: scoped packages should be hoisted on --hoist-pattern=* 2019-09-10 23:34:36 +03:00
Zoltan Kochan
352f9b77cb chore: set hoist to false 2019-09-10 02:44:01 +03:00
Zoltan Kochan
e6cb6b5fbc chore(release): 4.0.0-0 v4.0.0-0 2019-09-10 02:35:45 +03:00
Zoltan Kochan
5f73a7c951 feat(CLI): normalize beta CLI features
* "pnpm add" should have args.
* "pnpm install" is recursive inside a workspace.
2019-09-10 01:45:54 +03:00
Zoltan Kochan
d216e4c6a7 feat: hoist by default
Also, --no-hoist flag supported

PR #2004
2019-09-09 23:43:56 +03:00
Zoltan Kochan
febfb746fe feat: bump node_modules layout version to 3
PR #2003

BREAKING CHANGE: new node_modules layout
2019-09-09 14:21:45 +03:00
Zoltan Kochan
70f987e79f fix: modules path in rebuild() 2019-09-09 04:22:11 +03:00
Zoltan Kochan
650280d001 fix: detecting linked in deps 2019-09-09 03:49:15 +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
Renovate Bot
72424f353f chore(deps): update dependency nock to v11.3.3 2019-09-07 00:56:26 +03:00
Zoltan Kochan
b4ff9b1970 fix(deps): update symlink-dir 2019-09-07 00:55:25 +03:00
Zoltan Kochan
8badde8a88 chore(deps): update 2019-09-04 22:55:10 +03:00
Zoltan Kochan
ffde74e630 fix(deps): update cross-spawn to v7 2019-09-04 22:27:35 +03:00
Vsevolod Rodionov
20397f55a1 docs(readme): fix typo in @pnpm/lockfile-types
PR #1991
2019-09-02 19:55:48 +03:00
Zoltan Kochan
9842f53828 fix(help): unlink is not an alias of remove 2019-09-02 02:11:07 +03:00
Zoltan Kochan
ba973c5219 test(supi): speedup tests execution
Set fetchRetries to 0 in test that verifies that broken tarballs
cause an installation failure.
2019-09-01 23:16:13 +03:00
Zoltan Kochan
d06470afd5 chore(release): 3.8.1 v3.8.1 2019-09-01 21:34:15 +03:00
Renovate Bot
6bb2255a0b chore(deps): update dependency husky to v3.0.5 2019-09-01 20:50:07 +03:00
Zoltan Kochan
b396b02db4 fix: peers resolution in a monorepo
This issue was happening when two workspace packages had the same
dependency and that dependency depended on a peer dependency.
This dependency was resolved with the same peer dependency
in every workspace package even if the peer was different in
different workspace packages.

PR #1988
2019-09-01 20:47:52 +03:00
Zoltan Kochan
c0bddece52 docs(README): fix links to the "recursive" docs 2019-08-30 22:31:51 +03:00
Zoltan Kochan
19fe6477ff chore(release): 3.8.0 v3.8.0 2019-08-30 21:44:13 +03:00
Zoltan Kochan
93ba892921 feat(outdated): wrap the deprecated text in the details column 2019-08-30 11:12:37 +03:00
Zoltan Kochan
f8b30f4e8e chore(deps): update typescript to v3.6.2 2019-08-30 03:51:12 +03:00
Zoltan Kochan
f8cc4b4235 fix: manifest with no changes is not resaved
Differences in order of keys is not considered a change
2019-08-29 22:54:35 +03:00
Zoltan Kochan
93a5c285c2 docs(readme): fix links to the docs site 2019-08-29 11:20:39 +03:00
Zoltan Kochan
9a366eba9d fix(list): the default depth of search should be 0 2019-08-29 03:23:30 +03:00
Zoltan Kochan
bb02ca2ca4 feat(outdated): limit the maxWidth of the dependents column 2019-08-29 03:05:44 +03:00