Commit Graph

83 Commits

Author SHA1 Message Date
Zoltan Kochan
8acf2708c9 refactor: rename deps-resolver and env-installer packages (#11013)
Rename @pnpm/installing.resolve-dependencies to @pnpm/installing.deps-resolver
for consistency with the <domain>.<leaf> naming convention.
2026-03-18 21:52:01 +01:00
Zoltan Kochan
dba4153767 refactor: rename packages and consolidate runtime resolvers (#10999)
* refactor: rename workspace.sort-packages and workspace.pkgs-graph

- workspace.sort-packages -> workspace.projects-sorter
- workspace.pkgs-graph -> workspace.projects-graph

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: rename packages/ to core/ and pkg-manifest.read-package-json to reader

- Rename packages/ directory to core/ for clarity
- Rename pkg-manifest/read-package-json to pkg-manifest/reader (@pnpm/pkg-manifest.reader)
- Update all tsconfig, package.json, and lockfile references

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: consolidate runtime resolvers under engine/runtime domain

- Remove unused @pnpm/engine.runtime.node.fetcher package
- Rename engine/runtime/node.resolver to node-resolver (dash convention)
- Move resolving/bun-resolver to engine/runtime/bun-resolver
- Move resolving/deno-resolver to engine/runtime/deno-resolver
- Update all package names, tsconfig paths, and lockfile references

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: update lockfile after removing node.fetcher

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: sort tsconfig references and package.json deps alphabetically

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: auto-fix import sorting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: update __typings__ paths in tsconfig.lint.json for moved resolvers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove deno-resolver from deps of bun-resolver

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 00:19:58 +01:00
Zoltan Kochan
4a36b9a110 refactor: rename internal packages to @pnpm/<domain>.<leaf> convention (#10997)
## Summary

Rename all internal packages so their npm names follow the `@pnpm/<domain>.<leaf>` convention, matching their directory structure. Also rename directories to remove redundancy and improve clarity.

### Bulk rename (94 packages)

All `@pnpm/` packages now derive their name from their directory path using dot-separated segments. Exceptions: `packages/`, `__utils__/`, and `pnpm/artifacts/` keep leaf names only.

### Directory renames (removing redundant prefixes)

- `cli/cli-meta` → `cli/meta`, `cli/cli-utils` → `cli/utils`
- `config/config` → `config/reader`, `config/config-writer` → `config/writer`
- `fetching/fetching-types` → `fetching/types`
- `lockfile/lockfile-to-pnp` → `lockfile/to-pnp`
- `store/store-connection-manager` → `store/connection-manager`
- `store/store-controller-types` → `store/controller-types`
- `store/store-path` → `store/path`

### Targeted renames (clarity improvements)

- `deps/dependency-path` → `deps/path` (`@pnpm/deps.path`)
- `deps/calc-dep-state` → `deps/graph-hasher` (`@pnpm/deps.graph-hasher`)
- `deps/inspection/dependencies-hierarchy` → `deps/inspection/tree-builder` (`@pnpm/deps.inspection.tree-builder`)
- `bins/link-bins` → `bins/linker`, `bins/remove-bins` → `bins/remover`, `bins/package-bins` → `bins/resolver`
- `installing/get-context` → `installing/context`
- `store/package-store` → `store/controller`
- `pkg-manifest/manifest-utils` → `pkg-manifest/utils`

### Manifest reader/writer renames

- `workspace/read-project-manifest` → `workspace/project-manifest-reader` (`@pnpm/workspace.project-manifest-reader`)
- `workspace/write-project-manifest` → `workspace/project-manifest-writer` (`@pnpm/workspace.project-manifest-writer`)
- `workspace/read-manifest` → `workspace/workspace-manifest-reader` (`@pnpm/workspace.workspace-manifest-reader`)
- `workspace/manifest-writer` → `workspace/workspace-manifest-writer` (`@pnpm/workspace.workspace-manifest-writer`)

### Workspace package renames

- `workspace/find-packages` → `workspace/projects-reader`
- `workspace/find-workspace-dir` → `workspace/root-finder`
- `workspace/resolve-workspace-range` → `workspace/range-resolver`
- `workspace/filter-packages-from-dir` merged into `workspace/filter-workspace-packages` → `workspace/projects-filter`

### Domain moves

- `pkg-manifest/read-project-manifest` → `workspace/project-manifest-reader`
- `pkg-manifest/write-project-manifest` → `workspace/project-manifest-writer`
- `pkg-manifest/exportable-manifest` → `releasing/exportable-manifest`

### Scope

- 1206 files changed
- Updated: package.json names/deps, TypeScript imports, tsconfig references, changeset files, renovate.json, test fixtures, import ordering
2026-03-17 21:50:40 +01:00
Zoltan Kochan
2fccb03fbe refactor: consolidate build-related packages into building/ domain (#10918)
* refactor: rename rebuildSelectedPkgs/rebuildProjects to buildSelectedPkgs/buildProjects

The "rebuild" prefix is redundant now that these functions live in
@pnpm/building.after-install.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: rename Rebuild option types to Build (RebuildOptions → BuildOptions, etc.)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: rename plugin-commands-rebuild and exec.build-commands to building domain

- @pnpm/plugin-commands-rebuild → @pnpm/building.build-commands
- @pnpm/exec.build-commands → @pnpm/building.policy-commands

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: move build-modules and pkg-requires-build to building domain

- @pnpm/build-modules → @pnpm/building.during-install
- @pnpm/exec.pkg-requires-build → @pnpm/building.pkg-requires-build

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* style: alphabetically sort imports after package renames

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: add changeset

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 10:56:13 +01:00
Brandon Cheng
5ff0e16864 build: rework bundled dist/node_modules (#10508)
* build: bundle `dist/node_modules` using pnpm deploy

* chore: remove copied `pnpm.overrides` for publish-packed

* chore: remove `catalog:` protocol ban in `pnpm/package.json`

* chore: remove `publish-packed` dependency

* build: move `node-gyp` from `optionalDependencies` to `dependencies`

The `node-gyp` dependency is bundled into the `pnpm` package before it's
published. The dependency declaration itself is then removed from the
published package manifest.

This means there's not a point to declaring `node-gyp` as an optional
dependency. It'll always be bundled and the published manifest doesn't
contain the dependency declaration.

https://github.com/pnpm/pnpm/pull/10508#discussion_r2782257620

* build: throw if peerDependencies or optionalDependencies are declared

* build: use meta-updater instead of Jest test for dep kind check
2026-02-14 22:36:27 +01:00
v1rtl
acdf26d8cd refactor: replace strip-ansi with built-in util.stripVTControlCharacters (#9009) 2025-01-26 11:44:40 +01:00
Zoltan Kochan
daa45dfd91 refactor: rename prune-lockfile to lockfile.pruner 2024-07-28 01:48:23 +02:00
Zoltan Kochan
c5ef9b0643 refactor: rename filter-utils to lockfile.utils 2024-07-28 01:35:40 +02:00
btea
21de734b5a fix: outdated output table information is misplaced (#8037) 2024-05-04 11:44:02 +02:00
Zoltan Kochan
313702d76b refactor: all packages should be in the @pnpm scope (#5785) 2022-12-13 03:46:56 +02:00
MCMXC
532d5eb79e chore(deps): upgrade nock to v13 (#5043)
- upgrade nock throughout packages to 13.2.8
- remove nock from packageRules in renovate.json
2022-07-17 16:41:46 +03:00
William Huang
c0b36bfefa feat(file-reporter): remove file reporter (#5012)
close #4949
2022-07-12 02:41:15 +03:00
Naveen
35a730a62e ci: renovate bot setting to pin actions to a full length commit SHA (#4768)
- https://docs.renovatebot.com/modules/manager/github-actions/#additional-information

- Pinned actions by SHA https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies

>Pin actions to a full length commit SHA

>Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
> Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository,
> as they would need to generate a SHA-1 collision for a valid Git object payload.

- https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
- b0c3aa85ef/default.json (L13)
2022-05-21 01:46:30 +03:00
Zoltan Kochan
d4e2e52c43 feat: rename supi to @pnpm/core 2021-10-17 02:43:29 +03:00
Zoltan Kochan
cf89197c11 chore(deps): update 2021-05-01 04:06:27 +03:00
Zoltan Kochan
4da26031be chore(deps): update 2021-04-24 02:02:09 +03:00
Zoltan Kochan
43f3a66d7a chore(renovate): pin deps 2021-04-18 16:45:31 +03:00
Zoltan Kochan
a58e9600f2 chore(renovate): pin strip-ansi and wrap-ansi 2021-04-16 14:18:44 +03:00
Zoltan Kochan
9e443cb76b chore: update renovate.json 2021-04-09 13:26:52 +03:00
Zoltan Kochan
057366e106 chore(renovate): add ignored deps 2021-04-09 02:55:57 +03:00
Zoltan Kochan
304cc3f8fd chore(renovate): lock the version of p-queue 2021-04-01 02:15:50 +03:00
Zoltan Kochan
63cd67654d chore: update renovate.json 2021-03-21 02:08:33 +02:00
Zoltan Kochan
725351434d test: finish migration to Jest
close #2858
2020-12-11 00:22:17 +02:00
Zoltan Kochan
09492b7b46 fix(deps): update write-file-atomic to v3 2020-11-01 19:32:23 +02:00
Zoltan Kochan
1b0226f5de chore(deps): downgrade nock 2020-06-30 18:48:45 +03:00
Zoltan Kochan
98b97200fe chore(deps): update renovate.json 2020-06-05 03:13:16 +03:00
Zoltan Kochan
fe0eea23c1 chore(renovate): pin uuid to ^3.4.0 2020-06-04 21:45:59 +03:00
Zoltan Kochan
62f4d7964b chore(renovate): ignore @pnpm/pkgid-to-filename 2020-05-16 23:25:15 +03:00
Zoltan Kochan
f183227931 fix(deps): update tempy 2020-03-17 22:56:56 +02:00
Zoltan Kochan
6f3f52e571 chore(renovate): pin tempy to v0.4.0 2020-03-14 19:15:46 +02:00
Zoltan Kochan
60447bae11 chore(renovate): only allow v6.0.1 of ssri
close #2368
2020-02-21 10:28:49 +02:00
Zoltan Kochan
f8b927391e refactor: rename importers & workspace pkgs to projects
WsPkg=>Project
WorkspacePackage=>Project
mporterManifest=>ProjectManifest
importers=>projects
importerDir=>projectDir
LockfileImporter=>ProjectSnapshot

PR #2242
2020-01-01 18:57:14 +02:00
Zoltan Kochan
592a1a3edd chore(renovate): ignore fixtures dir 2019-11-22 02:43:14 +02:00
Zoltan Kochan
917dee4bcd chore: improve the publish script 2019-11-11 00:55:57 +02:00
Zoltan Kochan
5e53549364 chore(renovate): add packageRules
close #1851
close #1853
close #1905
close #1960
2019-09-19 01:01:33 +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
Zoltan Kochan
257a77ac51 test: replace pnpm-registry-mock with @pnpm/registry-mock 2019-06-02 21:51:42 +03:00
Zoltan Kochan
0d5596f442 chore(renovate): ignore @pnpm/modules-yaml 2019-06-02 21:16:33 +03:00
Zoltan Kochan
ce666b10ca chore(renovate): update 2019-05-04 19:21:21 +03:00
Zoltan Kochan
b1d8c55e53 fix(deps): update 2019-04-21 03:26:41 +03:00
Zoltan Kochan
4612a42a5b refactor: don't read/write package.json inside supi
PR #1776

BREAKING CHANGE:

`supi`, `@pnpm/headless`, `@pnpm/resolve-dependencies`, `@pnpm/lifecycle`
2019-04-20 03:38:44 -07:00
Zoltan Kochan
e8745e7010 refactor: move @pnpm/read-package-json to the monorepo 2019-04-15 01:42:59 +03:00
Zoltan Kochan
1301786065 chore(renovate): ignore @pnpm/build-modules 2019-04-07 19:00:31 +03:00
Zoltan Kochan
fe4d3ab406 chore(renovate): allow only agentkeepalive v4.0.0 2019-04-07 16:10:14 +03:00
Zoltan Kochan
29428f4424 chore(renovate): allow only p-queue<5 2019-04-07 15:12:12 +03:00
Zoltan Kochan
a6378427dc chore(renovate): only allow version of get-port <5
Only allow versions of get-port that support Node.js 8.0.0

See https://github.com/sindresorhus/get-port/pull/30
2019-04-06 20:06:15 +03:00
Zoltan Kochan
40617aa00f chore(renovate): ignore @pnpm/package-is-installable 2019-03-31 22:06:17 +03:00
Zoltan Kochan
735c3c32ed chore: fix typings in pnpm by pinning @types/p-any 2019-03-23 15:17:21 +02:00
Zoltan Kochan
ab57ad0ca2 fix: revert p-any to v1 2019-03-16 03:01:28 +02:00
Zoltan Kochan
9bc4941e37 chore(renovate): ignore packages from the monorepo 2019-03-08 23:35:59 +02:00