Skip to content

feat: read catalog configs from workspace manifest#8123

Merged
zkochan merged 3 commits intocatalogsfrom
pnpm-workspace-catalogs-config
May 31, 2024
Merged

feat: read catalog configs from workspace manifest#8123
zkochan merged 3 commits intocatalogsfrom
pnpm-workspace-catalogs-config

Conversation

@gluxon
Copy link
Member

@gluxon gluxon commented May 23, 2024

Context

This is a repeat of #8019, which was reverted on the main branch. We're now switching to a feature branch approach for landing the catalogs feature.

Changes

Compared to the original PR #8019, this removes the feature flag commit since we're merging into a catalogs feature branch.

  • b44e2ce feat: disable catalogs config reads by default

@gluxon gluxon marked this pull request as ready for review May 23, 2024 23:21
@gluxon gluxon requested a review from zkochan as a code owner May 23, 2024 23:21
gluxon added a commit to gluxon/pnpm that referenced this pull request May 23, 2024
gluxon added a commit to gluxon/pnpm that referenced this pull request May 25, 2024
gluxon added a commit to gluxon/pnpm that referenced this pull request May 25, 2024
@zkochan zkochan merged commit ac7d91f into catalogs May 31, 2024
@zkochan zkochan deleted the pnpm-workspace-catalogs-config branch May 31, 2024 14:00
@gluxon gluxon mentioned this pull request May 31, 2024
gluxon added a commit that referenced this pull request Jun 16, 2024
* refactor: move InvalidWorkspaceManifestError to its own file

* feat: read catalogs config from workspace manifest

* chore: add changeset for new catalog config parsing
gluxon added a commit that referenced this pull request Jun 17, 2024
* refactor: move InvalidWorkspaceManifestError to its own file

* feat: read catalogs config from workspace manifest

* chore: add changeset for new catalog config parsing
@gluxon gluxon mentioned this pull request Jun 26, 2024
18 tasks
gluxon added a commit that referenced this pull request Jun 27, 2024
* refactor: move InvalidWorkspaceManifestError to its own file

* feat: read catalogs config from workspace manifest

* chore: add changeset for new catalog config parsing
zkochan added a commit that referenced this pull request Jun 27, 2024
* 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.

#8027 (comment)

* 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.

#8027 (comment)

* 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.

#8027 (comment)

* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants