Commit Graph

9099 Commits

Author SHA1 Message Date
Brandon Cheng
6efda2ea03 fix: reuse existing cataloged resolutions for consistency (#8259)
* test: add a test to ensure catalog resolutions are consistent

* fix: reuse existing cataloged resolutions for consistency
2024-07-01 01:58:17 +02:00
Zoltan Kochan
9927c2855a refactor(core): workspace packages (#8248)
Make workspace packages optional.
2024-06-30 15:17:07 +02:00
Brandon Cheng
9bf9f71ad3 fix: show better error when encountering external catalog protocol usage (#8254)
* fix: show better error when encountering external catalog protocol usage

* refactor: reuse SPEC_NOT_SUPPORTED error

* Apply suggestions from code review

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-30 09:53:39 +02:00
Brandon Cheng
b339e10855 fix: prevent catalogs using the workspace:, link:, and file: protocols (#8255)
* fix: prevent catalogs using workspace: specifiers

* fix: prevent catalogs from using link: or file: specifiers
2024-06-28 09:18:00 +02:00
Brandon Cheng
f73ecf1bd2 chore: upgrade @pnpm/registry-mock from 3.32.1 to 3.33.0 (#8253) 2024-06-28 09:11:12 +02:00
Christoph Nakazawa
fd884c1915 fix(patch): improve printing of the pnpm patch command (#8239)
* style(patch): improve printin of the `pnpm patch` command

* fix: add missing dep

* test: fix

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-28 01:28:00 +02:00
Ben Ayles
497fea8de5 feat: add windows arm64 build (#8252)
close #8251
2024-06-28 00:51:24 +02:00
Zoltan Kochan
948772d14c chore: remove syncpack from dependencies 2024-06-28 00:48:01 +02:00
Zoltan Kochan
1865472bde chore: use catalogs 2024-06-27 22:06:05 +02:00
Zoltan Kochan
79830ff0b9 chore: use catalogs 2024-06-27 21:18:27 +02:00
Zoltan Kochan
7678113d79 chore: use catalogs (#8249) 2024-06-27 17:22:38 +02:00
Zoltan Kochan
a8da5c2df2 docs(README): remove link to npm-compare 2024-06-27 15:31:29 +02:00
Zoltan Kochan
b2d3471923 chore(release): 9.5.0-beta.0 v9.5.0-beta.0 2024-06-27 15:08:52 +02:00
Brandon Cheng
9c63679df1 feat: catalogs (#8122)
* feat: create new @pnpm/catalogs.types package (#8026)

* feat: read catalog configs from workspace manifest (#8123)

* refactor: move InvalidWorkspaceManifestError to its own file

* feat: read catalogs config from workspace manifest

* chore: add changeset for new catalog config parsing

* feat: create new `@pnpm/catalogs.protocol-parser` package (#8124)

This works around a problem with pnpm's CI setup not compiling
packages that are not dependencies of the main pnpm package before
running these tests.

https://github.com/pnpm/pnpm/pull/8027#issuecomment-2081650304

* refactor: factor out isWantedDepPrefSame to extend in a future commit (#8125)

* feat: create new `@pnpm/catalogs.config` package (#8220)

* refactor: remove single default catalog check

This check will happen in  `@pnpm/catalogs.config` instead.

* feat: create new @pnpm/catalogs.config package

* fix: work around CI setup not compiling orphan packages before testing

This works around a problem with pnpm's CI setup not compiling
packages that are not dependencies of the main pnpm package before
running these tests.

https://github.com/pnpm/pnpm/pull/8027#issuecomment-2081650304

* feat: create new `@pnpm/catalogs.resolver` package (#8219)

* feat: create new @pnpm/catalogs.resolver package

* fix: work around CI setup not compiling orphan packages before testing

This works around a problem with pnpm's CI setup not compiling
packages that are not dependencies of the main pnpm package before
running these tests.

https://github.com/pnpm/pnpm/pull/8027#issuecomment-2081650304

* feat: implement catalog protocol for publish (#8225)

* feat: implement catalog protocol for install (#8221)

* feat: add catalogs to @pnpm/config

* refactor: factor out resolveDependenciesOfImporterDependency function

* feat: implement catalog resolver and replace prefs

* revert: work around CI setup not compiling orphan packages before testing

* feat: record catalog lookup snapshots through propagated metadata

* feat: update projects when catalogs config changes

* test: add catalog protocol install tests

* refactor: remove filter-packages-from-dir dependency from core tests (#8244)

* refactor: remove filter-packages-from-dir dependency from core tests

* test: refactor

* test: refactor

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-27 14:19:38 +02:00
Khải
3beb895afe feat: create pnpx for bundled pnpm (#8241)
close #8230
2024-06-26 15:52:05 +02:00
Khải
ae4c4ee99a refactor: remove unnecessary code (#8238) 2024-06-26 14:43:38 +02:00
Khải
1b03682903 feat(dlx): read auth from local .npmrc (#8207)
close #7996
2024-06-25 17:51:43 +02:00
Segev Finer
9b5b869322 chore(deps): update @pnpm/tabtab to v0.5.4 (#8236)
* chore(deps): update @pnpm/tabtab to v0.5.4

* docs: more details to change log

---------

Co-authored-by: Khải <hvksmr1996@gmail.com>
2024-06-25 15:13:34 +02:00
Zoltan Kochan
6e031e7428 test: fix auth tests 2024-06-18 02:45:48 +02:00
Zoltan Kochan
347c79a8cd chore(release): 9.4.0 v9.4.0 2024-06-17 17:44:19 +02:00
Brandon Cheng
75a98e12b3 refactor: improve type checking when finding workspace packages (#8214)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-17 17:34:54 +02:00
Brandon Cheng
7f4cea45e8 fix: use --workspace-packages CLI over pnpm-workspace.yaml in more cases (#8215)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-17 02:49:29 +02:00
Brandon Cheng
04b8363a8d refactor: store workspace manifest in @pnpm/config for reuse (#8213)
* feat: store workspacePackagePatterns in @pnpm/config

* refactor: pass workspace patterns from config to findWorkspacePackages

* chore: add changeset
2024-06-17 01:26:45 +02:00
Zoltan Kochan
7c6c923a3d feat: a new option strict-store-pkg-content-check (#8212)
ref #4724
2024-06-16 21:37:58 +02:00
Eric White
398472cc11 feat: handle workspace protocol with any semver range specifier (#7633)
close #7578
2024-06-14 15:57:31 +02:00
Brandon Cheng
5d1ed94e6c fix: update WorkspaceManifest packages field to be non-null (#8205) 2024-06-14 02:54:43 +02:00
Khải
d8eab39686 fix(config): missing config field (#8199)
close #8195
2024-06-12 20:33:29 +02:00
Zoltan Kochan
13e55b2865 fix: a filtered install should update the lockfile first (#8183)
close #8165
2024-06-12 14:49:39 +02:00
Berkay Aydın
7d103943b3 fix(config): use locale while parsing variables as camelcase (#8189)
close #8188
2024-06-12 02:43:57 +02:00
Zoltan Kochan
42779050c2 fix(deps): update 2024-06-11 11:33:16 +02:00
Zoltan Kochan
ed9c041f61 fix(deps): update 2024-06-11 11:27:03 +02:00
Zoltan Kochan
d24d7974ac chore(release): 9.3.0 v9.3.0 2024-06-10 13:58:41 +02:00
Zoltan Kochan
0ccdca2167 docs: fix jetbrains logo size 2024-06-09 22:18:49 +02:00
Zoltan Kochan
47341e5004 fix: make the peers suffix shorter (#8177)
ref #7079
2024-06-07 23:37:07 +02:00
华丽
08dad01af0 fix(patching): disallow external diff drivers (#8179) 2024-06-07 11:18:58 +02:00
Khải
271386f0a0 feat(exec): default reporterHidePrefix to true (#8176)
close #8174
2024-06-06 11:19:14 +02:00
Zoltan Kochan
1e5985a937 chore(release): 9.2.0 v9.2.0 2024-06-05 14:46:23 +02:00
Zoltan Kochan
b7ca13f7f2 fix: don't fail if the pnpm version doesn't match the one in the packageManager field (#8166)
close #8087
2024-06-05 14:38:21 +02:00
Zoltan Kochan
3dd30b1909 refactor: create branded type for project ID (#8164) 2024-06-04 18:30:59 +02:00
Khải
b3a2f9c95a fix(deps): update @yarnpkg/pnp to latest (#8162)
close #8161
2024-06-03 18:29:47 +02:00
Khải
bc0618cf19 feat(exec): log prefix (#8151)
close #8065
2024-06-03 01:25:21 +02:00
Steven
9bfebc5b13 fix: update twitter.com to x.com (#8156) 2024-06-02 00:49:50 +02:00
Steven
48506e7e5b fix: update corepack install command for outdated version (#8121) 2024-06-01 13:28:52 +00:00
Brandon Cheng
c7e1b6fae8 chore: configure TypeScript project references for tests (#8128)
* refactor: store link values before converting to references

* fix: use .sort() without localeCompare

https://github.com/pnpm/pnpm/pull/8128#discussion_r1614031566

> Nit, but you probably just want to call sort without a comparison
> function; these are already strings and locale compare is not a good
> comparison for anything but human readable strings since it will
> differ on different people's machines based on their language setting.
> I've hit this too many times before for code gen.

* feat: configure meta-updater to write test/tsconfig.json files

* fix: relative imports for __typings__

* chore: `pnpm run meta-updater`

* fix: explicitly use test/tsconfig.json for ts-jest
2024-05-31 12:48:13 +02:00
btea
d8081fe11b feat: support home command (#8127) 2024-05-31 02:48:09 +02:00
Khải
80aaa9f378 fix: race condition that creates corrupted scripts (#8126)
close #7833
2024-05-31 02:07:32 +02:00
Zoltan Kochan
13518c9916 chore(release): 9.1.4 v9.1.4 2024-05-30 12:59:22 +02:00
Zoltan Kochan
74c1057778 perf: fix hoisting peers (#8144)
Reverts 4b65113

ref #8072

This change makes install faster at least 3 times in some Bit workspaces.
2024-05-30 12:17:17 +02:00
Zoltan Kochan
63da0f654f chore(release): libs 2024-05-29 14:32:53 +02:00
Zoltan Kochan
4b65113b9c fix: temporarily don't hoist peers when dedupe peers is on 2024-05-29 14:01:15 +02:00