Commit Graph

10701 Commits

Author SHA1 Message Date
Zoltan Kochan
8d7e37c8e2 chore(release): headless and dependents 2022-11-28 17:48:17 +02:00
Zoltan Kochan
32288715d3 fix: dedupe direct deps when headless install is used 2022-11-28 17:27:00 +02:00
Zoltan Kochan
510143083a chore(release): direct-dep-linker and dependents 2022-11-28 16:40:31 +02:00
Zoltan Kochan
13ce5b0315 fix: deduping direct deps on Windows 2022-11-28 03:37:54 +02:00
Zoltan Kochan
e2cc202319 fix: deduping direct deps 2022-11-28 02:05:04 +02:00
Zoltan Kochan
cf783fe9f8 chore(release): 7.17.1 v7.17.1 2022-11-27 03:43:44 +02:00
Glen Whitney
0d12d38fd1 feat(pkg-manifest): preserve comments in json5 manifests (#5677)
Use npm package `strip-comments-strings` to find all comments in any
  manifest file as it is read. Save them as part of the "file formatting"
  detected by the manifest reader, noting for each the text of the lines
  they are on, before, and after, and the line number as a fallback.

  When the manifest is written, attempt to place each comment back in
  the resulting JSON5 text, so that the text of the line it is on,
  before, or after (in that priority order) matches the text at time of
  reading. Otherwise, so that no comments are lost, replace the comment
  on the same line number, adding a notation that it may have been
  relocated (due to sorting dependencies, for example, it may no longer
  be in the same "logical position" in the file, even though it is on
  the same physical line number).

  When comments are in fairly ordinary positions and the manifest does
  not change too drastically (i.e. once the dependencies are sorted as
  pnpm prefers, and there are not many parameters added all at once),
  this strategy results in exact preservation of the comments, as a new
  test shows.

  The motivation for this commit is to take advantage of the feature of
  JSON5 that it allows human-readable comments. For this feature to be
  useful in the case of package.json5 manifests, those comments must be
  preserved across manifest changes.

  Partially resolves #2008. [That issue requests comment preservation
  also for YAML manifests, but I have no experience working with YAML,
  and it also requests that key order be preserved, but I did not
  address key order because current code in the the pnpm manifest
  reader/writer _explicitly_ reorders keys -- clearly deliberately --
  so I did not want to simply remove code that appeared to have been
  purposefully written and included.]

Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-11-27 03:41:21 +02:00
Jordan
868f2fb163 fix: --lockfile-only and readPackage hook modifying workspace packages (#5678)
close #5670
2022-11-26 20:31:57 +02:00
Zoltan Kochan
c615856f37 chore: update the version of pnpm 2022-11-25 21:46:30 +02:00
Zoltan Kochan
043bbeaf3b feat: dedupe direct dependencies (#5676) 2022-11-25 21:29:41 +02:00
Zoltan Kochan
7ec9b00b0d fix: pd
close #5675
2022-11-25 20:24:08 +02:00
chlorine
54128c92a2 fix: add pnpm set-script and pkg passed through to npm (#5687) 2022-11-25 04:34:34 +02:00
Zoltan Kochan
d5496cc3f8 refactor: linking direct dependencies (#5669) 2022-11-23 23:21:01 +02:00
Minoru Takeuchi
a49788f9f8 test(plugin-commands-env): fix a test that falling in arm64 (#5673) 2022-11-23 23:11:07 +02:00
await-ovo
a2b4326918 fix(publish): exit with non-zero code when publish tgz failed (#5667)
close #5396
2022-11-23 17:25:38 +02:00
Glen Whitney
fec9e3149c fix: bump detect-indent to 7.0.1 (#5666)
close #5664
2022-11-23 13:55:01 +02:00
Zoltan Kochan
dfda5a1e72 docs: add new gold sponsor
Flightcontrol
2022-11-23 04:37:21 +02:00
Zoltan Kochan
2b709ce0dd fix(setup): pnpm_home should be a non-expandable env var
ref https://github.com/pnpm/pnpm/issues/4658#issuecomment-1304421148
2022-11-21 03:45:43 +02:00
Zoltan Kochan
f3f3feed9e style: fix 2022-11-21 02:55:35 +02:00
Zoltan Kochan
a8cc223642 fix: cli help of the licenses command 2022-11-20 22:48:30 +02:00
Zoltan Kochan
d67c68979b ci: run audit 2022-11-20 22:25:40 +02:00
Zoltan Kochan
4e2623729e ci: clone ldid from GitLab v7.17.0 2022-11-20 22:07:37 +02:00
Zoltan Kochan
56f36f2dac chore: fix release text generator 2022-11-20 21:35:48 +02:00
Zoltan Kochan
93ca883e2b chore(release): 7.17.0 2022-11-20 21:20:25 +02:00
Zoltan Kochan
45c83bfbd7 fix: symlinked hoisting should not override files in the root of node_modules (#5663) 2022-11-20 19:51:59 +02:00
Zoltan Kochan
3801d2fa29 fix(audit): project versions (#5661) 2022-11-20 04:35:27 +02:00
Zoltan Kochan
c216a4ed76 chore: fix root scripts 2022-11-20 04:07:58 +02:00
Zoltan Kochan
e8dd6566e8 chore: fix pd.js 2022-11-20 03:17:20 +02:00
Zoltan Kochan
9cbe293876 refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
Zoltan Kochan
4ca53b0b50 refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
Zoltan Kochan
d81599bddd refactor: use more functional programming 2022-11-19 14:20:37 +02:00
Zoltan Kochan
e379ec8a77 refactor: use more utils from ramda (#5656) 2022-11-19 04:29:21 +02:00
Zoltan Kochan
3e52dddfdc chore(deps): update meta-updater
close #5653
2022-11-18 14:03:52 +02:00
Zoltan Kochan
ad2a923ae1 chore(deps): update 2022-11-17 14:48:48 +02:00
Weyert de Boer
d84a30a049 feat: add licenses command (#5567)
Introduces a new command `licenses list` which allows to list
the licenses of the packages

close #2825
2022-11-17 12:51:39 +02:00
await-ovo
969f8a0021 fix(matcher): should ignore successfully with multiple ignore patterns (#5643)
Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-11-17 02:38:31 +02:00
Zoltan Kochan
eb6ccbba76 chore(release): core 2022-11-16 16:16:29 +02:00
Zoltan Kochan
1d04e663ba fix: pass resolveSymlinks to directory-fetcher (#5644) 2022-11-16 16:15:17 +02:00
Zoltan Kochan
1f412c9222 chore(release): 7.16.1 v7.16.1 2022-11-16 14:24:48 +02:00
Zoltan Kochan
eacff33e4f fix(directory-fetcher): resolve the injected files to their real locations (#5637) 2022-11-16 02:18:54 +02:00
Zoltan Kochan
ecc8794bbe fix: sync all injected deps when hoisted node linker is used (#5630) 2022-11-15 03:52:02 +02:00
Zoltan Kochan
9c1e144191 chore(release): 7.16.0 v7.16.0 2022-11-14 15:10:48 +02:00
Zoltan Kochan
4a4b2ac93b fix: error that sometimes happen on projects with linked deps (#5628)
close #5327
close #5614
2022-11-14 02:51:40 +02:00
Zoltan Kochan
9ad96e25a6 refactor: plugin-commands-env 2022-11-13 02:51:22 +02:00
chlorine
f60d6c46f0 feat: support pnpm env list to list global or remote Node.js versions (#5625)
close #5546

Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-11-13 00:41:48 +02:00
Zoltan Kochan
8ee0c0b35a docs: update readme 2022-11-12 02:25:10 +02:00
Dmitriy Dudkevich
3dab7f83c2 fix: replacing env variables to values in .npmrc (#5623)
close #5604
close #2570

Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-11-11 22:50:56 +02:00
Zoltan Kochan
a276532641 chore(release): 7.15.0 v7.15.0 2022-11-10 00:58:28 +02:00
Coby Sher
702e847c1c feat: allow audit --fix to skip installing overrides based on allowList array in the manifest (#5592)
Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-11-08 03:33:58 +02:00
Zoltan Kochan
6710d9dd90 fix: don't break when injecting a dependency with broken symlinks (#5599)
close #5598
2022-11-07 12:37:57 +02:00