Commit Graph

8676 Commits

Author SHA1 Message Date
Jake Livak
4d34684f1f fix: bundledDependencies field is not always respected (#7411) (#7412)
* fix: check for both bundleDependencies and bundledDependencies (#7411)

update to code that didn't correctly check both bundleDependencies and bundledDependencies

* fix: support boolean value for bundleDependencies (#7411)

fix so that a 'true' value in the bundleDependencies field is correctly interpreted
(as meaning all dependencies are bundled)

close  #7411

* fix: allow saving of boolean bundledDependencies values

updates prior fix to allow saving booleans to bundledDependencies field.

* fix: add test coverage for bundledDependencies fixes (#7411)

add local tarball test and bundledDependencies=true test
update existing tests to confirm that bundled dependencies aren't installed

* fix: update registry-mock

* docs: update changeset

* fix: update bundleDependencies tests

* Revert "fix: update registry-mock"

This reverts commit 0c4b7ede21.

* Revert "Revert "fix: update registry-mock""

This reverts commit 9828dfce91.

* test: update integrities in test lockfiles

* test: retry twice

* test: move bundle deps test to separate file

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-19 23:18:07 +01:00
Zoltan Kochan
ce809f6d91 chore: update registry-mock 2023-12-19 11:24:07 +01:00
Ahmed Abdelbaset
06ac802b04 fix(patch-commit): wrap out patch dir in quotes in the log statement (#7437) 2023-12-18 10:52:06 +01:00
Zoltan Kochan
036afc632c chore: @pnpm/exe should not be published with latest tag by default 2023-12-15 18:43:34 +01:00
Zoltan Kochan
99fd38bf2b style: fix 2023-12-14 20:29:52 +01:00
Zoltan Kochan
74e8f474f3 chore(release): libs 2023-12-14 16:15:57 +01:00
Zoltan Kochan
672c559e49 feat: dedupe injected dependencies (#7416)
A new setting added for symlinking [injected dependencies](https://pnpm.io/package_json#dependenciesmetainjected) from the workspace, if their dependencies use the same peer dependencies as the dependent package. The setting is called `dedupe-injected-deps`
2023-12-14 16:13:22 +01:00
btea
e79ab3847b chore(dep): update @types/node (#7414)
* chore(dep): update @types/node

* chore: update
2023-12-13 14:06:52 +01:00
Zoltan Kochan
0830a73a53 refactor: resolve dependencies (#7408)
Make updates to the lockfile in one place.
2023-12-13 11:50:53 +01:00
Zoltan Kochan
e71c0f17e5 chore(release): 8.12.1 v8.12.1 2023-12-13 11:18:12 +01:00
btea
9a53179e37 fix(plugin-commands-patching): do not create empty patch directory (#7410) 2023-12-13 11:11:02 +01:00
Xc
f3cd0a61d4 fix: no permission to delete empty directories (#7406)
close #7405
2023-12-13 09:54:40 +01:00
Khải
d5a176af77 fix(fix-lockfile): crash on tarballs (#7404)
close  #7368
2023-12-13 00:01:31 +01:00
Nacho Aldama
418866ac07 fix: avoid empty cloned files in Windows (#7313)
* fix: avoid empty cloned files in Windows

* chore: add changesets

* chore: update changesets

* fix: remove duplicate dependency

* fix: try to set workers number to 1 in Windows

* revert: 1 worker in Windows tests

* fix: throw error when current drive does not support CoW
2023-12-12 23:30:29 +01:00
Zoltan Kochan
e3b9832955 fix: reporting of added dependencies (#7396)
close #7384
2023-12-11 10:16:57 +01:00
Zoltan Kochan
49f0027f13 chore(release): 8.12.0 v8.12.0 2023-12-08 23:25:14 +01:00
Khải
1474bfd89a fix(run): stop passing flags as fallback command (#7370)
close #7244

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-06 19:53:32 +01:00
Zoltan Kochan
81a2f249e7 chore(release): libs 2023-12-06 15:48:07 +01:00
Zoltan Kochan
5462cb6d4e fix: dependency deduplication (#7385)
fixes regression introduced via #7359
2023-12-06 15:43:46 +01:00
Zoltan Kochan
8a86facc06 chore(release): libs 2023-12-05 19:44:18 +01:00
Khải
3ac0487b3f feat(network): basic auth header (#7376)
close #7371

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-05 18:59:50 +01:00
Zoltan Kochan
6558d1865f fix: dedupe commands of direct dependencies (#7359) 2023-12-05 16:39:52 +01:00
Zoltan Kochan
862b37ac53 docs: add Nx to sponsors 2023-12-05 10:16:57 +01:00
Hyunbin
b9c7fb91f3 fix(env): unify Node.js related expressions (#7356) 2023-12-03 18:34:39 +01:00
Zoltan Kochan
c883f8120c style: remove not needed rule excapes 2023-12-01 19:39:15 +01:00
Brandon Cheng
e8926e9207 refactor(read-manifest): improve type safety of manifest validation logic (#7345)
* refactor(read-manifest): move packages field validation logic

* refactor(read-manifest): remove explicit any in validation logic

* refactor(read-manifest): change validateWorkspaceManifest to assert

* refactor(read-manifest): add final WorkspaceManifest assignability check

* chore: add changeset for read-manifest improvements
2023-11-28 01:06:22 +01:00
Zoltan Kochan
633c0d6f8f revert: "fix: pnpm add a-module-already-in-dev-deps should show message that it wasn't moved to dependencies (#7319)"
This reverts commit 45bdc79b17.
2023-11-27 15:30:19 +01:00
Brandon Cheng
6846e4c756 test: fix flaking --resume-from tests on windows (#7346) 2023-11-27 11:01:31 +01:00
Zoltan Kochan
058edcff85 chore(release): 8.11.0 v8.11.0 2023-11-24 17:27:18 +01:00
Zoltan Kochan
3db0db8d12 revert: "feat: use-experimental-npmjs-files-index option (#7177)"
This reverts commit a2bf6a0e96.
2023-11-22 02:01:27 +02:00
Nacho Aldama
23039a6d60 fix: missing auth token in registries with paths included (#7337)
close #5970
close #2933

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-11-21 23:03:11 +02:00
Yanzi
45bdc79b17 fix: pnpm add a-module-already-in-dev-deps should show message that it wasn't moved to dependencies (#7319)
close #926
2023-11-20 03:40:09 +02:00
Tristan Knight
a2bf6a0e96 feat: use-experimental-npmjs-files-index option (#7177)
close #1328
2023-11-19 02:45:33 +02:00
Zoltan Kochan
2d8015b0eb chore(deps): update 2023-11-16 17:36:11 +02:00
Zoltan Kochan
b54e815d79 chore(release): libs 2023-11-16 14:54:14 +02:00
Zoltan Kochan
b1fd38ccab fix: don't remove modules directory when registry configuration changes (#7322) 2023-11-16 14:23:07 +02:00
Zoltan Kochan
cd4fcfff0b fix: use the registry domain in the package ID, not the tarball domain (#7318)
(IMPORTANT) When the package tarballs aren't hosted on the same domain on which the registry (the server with the package metadata) is, the dependency keys in the lockfile should only contain `/<pkg_name>@<pkg_version`, not `<domain>/<pkg_name>@<pkg_version>`.

This change is a fix to avoid the same package from being added to `node_modules/.pnpm` multiple times. The change to the lockfile is backward compatible, so previous versions of pnpm will work with the fixed lockfile.

We recommend that all team members update pnpm in order to avoid repeated changes in the lockfile.
2023-11-16 12:32:40 +02:00
Zoltan Kochan
b39e8af54a fix(deps): update rename-overwrite
ref #7213
2023-11-16 00:23:49 +02:00
Zoltan Kochan
5e44048943 chore(release): 8.10.5 v8.10.5 2023-11-14 13:58:50 +02:00
btea
1e7bd4af3a feat: use availableParallelism get the amount of paralllelism available (#7304) 2023-11-14 11:57:28 +02:00
JasonMan34
e2a0c72720 fix(workspace.read-manifest): allow null or empty manifest (#7310)
close #7307
2023-11-14 11:47:28 +02:00
Zoltan Kochan
2143a9388a fix: improve the error message when modules directory should be recreated (#7308) 2023-11-14 11:43:15 +02:00
Zoltan Kochan
f2e9c3baaf docs: fix macpaw logo 2023-11-13 18:33:12 +02:00
Zoltan Kochan
0ef6785441 chore(release): 8.10.4 v8.10.4 2023-11-13 17:00:59 +02:00
Zoltan Kochan
b4194fe52d fix: out-of-memory error during hoisting (#7305)
close #6227
2023-11-13 17:00:12 +02:00
Zoltan Kochan
df9eade77c chore(release): 8.10.3 v8.10.3 2023-11-12 14:02:55 +02:00
Zoltan Kochan
74432d605e fix: downgrade npm-packlist to improve performance (#7301)
ref #6997
ref #7250
2023-11-12 14:00:29 +02:00
Zoltan Kochan
fe1f0f7341 fix: don't try to readd packages on repeat install (#7300)
close #7297
2023-11-11 21:21:54 +02:00
Zoltan Kochan
3b3109f50a perf: don't check if a file in node_modules exists twice 2023-11-11 13:11:10 +02:00
Khải
4da7b463f6 perf: default network-concurrency to cpu count (#7285)
* feat: default network-concurrency to cpu count

It was found that setting network-concurrency to the exact number of
CPU cores gives fastest installation

* perf: set 16 as min default concurrency

* docs: add comment

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-11-10 21:47:03 +02:00