Commit Graph

4963 Commits

Author SHA1 Message Date
Zoltan Kochan
ffaaf70f63 test: remove all npm config env variables 2019-09-25 02:21:12 +03:00
Zoltan Kochan
681a94b9a8 refactor(CLI): args parsing 2019-09-25 01:59:01 +03:00
ExE Boss
4b56b860bc feat(dependency‑path): Expose peersSuffix
PR #2032

Co-Authored-By: Zoltan Kochan <zoltan.kochan@gmail.com>
2019-09-24 22:59:11 +03:00
Zoltan Kochan
d95d7afb03 chore(release): 4.0.0-3 v4.0.0-3 2019-09-21 23:26:18 +03:00
Aparajita Fishman
67bca0123b feat(outdated): add --no-table option
This PR adds a `--no-table` option that prints out
the info on each package vertically concatenated with no borders
and a blank line between each package.

Note that the `--long` option may also be used in conjunction
with `--no-table` to add the details at the end of each set
of package info.

PR #2026
close #1984

Co-Authored-By: nikoladev <nikola@pilipovic.nl>
Co-Authored-By Zoltan Kochan <zkochan@users.noreply.github.com>
Co-Authored-By ExE-Boss <ExE-Boss@users.noreply.github.com>
2019-09-21 22:40:14 +03:00
ExE Boss
844a85efc7 test(assert‑project): add Project interface type definition
PR #2022
2019-09-21 20:31:22 +03:00
Zoltan Kochan
03f745ff98 feat: .pnpm/pnpm-lock.yaml=>.pnpm/lock.yaml
ref #2018
2019-09-21 20:13:36 +03:00
Zoltan Kochan
187a0186b0 feat: move .pnpm-lock.yaml to .pnpm/pnpm-lock.yaml
PR #2018

BREAKING CHANGE:

node_modules/.pnpm-lock.yaml => node_modules/.pnpm/pnpm-lock.yaml
2019-09-21 00:10:49 +03:00
ExE Boss
50a076dc17 refactor(outdated): unify more of outdated and recursive outdated
PR #2027
2019-09-20 21:40:07 +03:00
Zoltan Kochan
2ed2adeefb chore(deps): update dependency nock to v11.3.5
close #2028
2019-09-20 20:36:41 +03:00
Renovate Bot
95cafa5df3 chore(deps): update commitlint monorepo to v8.2.0
close #2023
2019-09-20 20:34:06 +03:00
Zoltan Kochan
2c94726226 chore(deps): update dependency @types/node-fetch to ^2.5.0
close #2024
2019-09-20 20:32:58 +03:00
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