mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-31 03:58:11 -04:00
* feat(registry-access): extract setDistTag and dogfood from tests
Add `@pnpm/registry-access.commands#setDistTag` — the low-level PUT to
`/-/package/:pkg/dist-tags/:tag`. The CLI `dist-tag add` handler now
calls it instead of issuing the fetch inline.
Tests in this monorepo now use a thin new package
`@pnpm/testing.registry-mock` (REGISTRY_MOCK_PORT + REGISTRY_MOCK_CREDENTIALS
baked in) that delegates to `setDistTag`, replacing `addDistTag` from
`@pnpm/registry-mock`. That dropped helper relied on
`anonymous-npm-registry-client` and a verdaccio-era
fetch-then-DELETE-then-PUT dance that is no longer needed against
pnpm-registry.
39 test files swapped from `@pnpm/registry-mock` to
`@pnpm/testing.registry-mock`.
* fix: move setDistTag to its own package to break tsconfig project-reference cycle
testing/registry-mock → registry-access.commands → releasing/commands
→ installing/commands → installing/deps-installer → testing/registry-mock.
Extract setDistTag into @pnpm/registry-access.set-dist-tag (only depends
on @pnpm/error, @pnpm/network.fetch, @pnpm/npm-package-arg). Both
@pnpm/registry-access.commands and @pnpm/testing.registry-mock import
from it. Cycle gone.
* feat(registry-access): extract addUser helper, dogfood from login + tests
Add @pnpm/registry-access.add-user — a small helper that PUTs to
/-/user/org.couchdb.user:<name> and returns { token }. The CLI's
classicLogin (pnpm login fallback path) now calls it, and tests
use it via @pnpm/testing.registry-mock instead of the legacy
addUser from @pnpm/registry-mock.
Swapped 3 call sites: globalSetup.js, installing/deps-installer's
auth.ts, and pnpm/test/dlx.ts. AddUserHttpError exposes status +
text + parsed-json-if-applicable + headers so the CLI can still
do its OTP detection. One webauth-OTP login test mock had to be
adjusted to provide its body via `text` (JSON-stringified) rather
than `json` only, since the helper consumes the body via `text()`.
* refactor: consolidate set-dist-tag + add-user helpers into one @pnpm/registry-access.client package
One shared package is better than splitting per endpoint. Future endpoints
(publish, deprecate, etc.) can land here without another wrapper.
No behavioral change — same setDistTag and addUser exports as before,
just under one roof. Callers updated: registry-access.commands,
auth.commands, testing.registry-mock.
* fix(registry-access): sort imports
138 lines
4.9 KiB
JSON
138 lines
4.9 KiB
JSON
{
|
|
"name": "@pnpm/installing.commands",
|
|
"version": "1100.5.0",
|
|
"description": "Commands for installation",
|
|
"keywords": [
|
|
"pnpm",
|
|
"pnpm11"
|
|
],
|
|
"license": "MIT",
|
|
"funding": "https://opencollective.com/pnpm",
|
|
"repository": "https://github.com/pnpm/pnpm/tree/main/installing/commands",
|
|
"homepage": "https://github.com/pnpm/pnpm/tree/main/installing/commands#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
},
|
|
"type": "module",
|
|
"main": "lib/index.js",
|
|
"types": "lib/index.d.ts",
|
|
"exports": {
|
|
".": "./lib/index.js"
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"!*.map"
|
|
],
|
|
"scripts": {
|
|
"start": "tsgo --watch",
|
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
"test": "pn compile && pn .test",
|
|
"prepublishOnly": "tsgo --build",
|
|
"compile": "tsgo --build && pn lint --fix",
|
|
".test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest"
|
|
},
|
|
"dependencies": {
|
|
"@pnpm/building.after-install": "workspace:*",
|
|
"@pnpm/catalogs.types": "workspace:*",
|
|
"@pnpm/cli.command": "workspace:*",
|
|
"@pnpm/cli.common-cli-options-help": "workspace:*",
|
|
"@pnpm/cli.utils": "workspace:*",
|
|
"@pnpm/colorize-semver-diff": "catalog:",
|
|
"@pnpm/config.matcher": "workspace:*",
|
|
"@pnpm/config.pick-registry-for-package": "workspace:*",
|
|
"@pnpm/config.reader": "workspace:*",
|
|
"@pnpm/config.writer": "workspace:*",
|
|
"@pnpm/constants": "workspace:*",
|
|
"@pnpm/deps.inspection.outdated": "workspace:*",
|
|
"@pnpm/deps.path": "workspace:*",
|
|
"@pnpm/deps.status": "workspace:*",
|
|
"@pnpm/error": "workspace:*",
|
|
"@pnpm/fs.graceful-fs": "workspace:*",
|
|
"@pnpm/fs.read-modules-dir": "workspace:*",
|
|
"@pnpm/global.commands": "workspace:*",
|
|
"@pnpm/hooks.pnpmfile": "workspace:*",
|
|
"@pnpm/installing.context": "workspace:*",
|
|
"@pnpm/installing.dedupe.check": "workspace:*",
|
|
"@pnpm/installing.deps-installer": "workspace:*",
|
|
"@pnpm/installing.env-installer": "workspace:*",
|
|
"@pnpm/lockfile.types": "workspace:*",
|
|
"@pnpm/pkg-manifest.reader": "workspace:*",
|
|
"@pnpm/pkg-manifest.utils": "workspace:*",
|
|
"@pnpm/resolving.npm-resolver": "workspace:*",
|
|
"@pnpm/resolving.parse-wanted-dependency": "workspace:*",
|
|
"@pnpm/resolving.resolver-base": "workspace:*",
|
|
"@pnpm/semver-diff": "catalog:",
|
|
"@pnpm/store.connection-manager": "workspace:*",
|
|
"@pnpm/store.controller": "workspace:*",
|
|
"@pnpm/types": "workspace:*",
|
|
"@pnpm/util.lex-comparator": "catalog:",
|
|
"@pnpm/workspace.project-manifest-reader": "workspace:*",
|
|
"@pnpm/workspace.project-manifest-writer": "workspace:*",
|
|
"@pnpm/workspace.projects-filter": "workspace:*",
|
|
"@pnpm/workspace.projects-graph": "workspace:*",
|
|
"@pnpm/workspace.projects-reader": "workspace:*",
|
|
"@pnpm/workspace.projects-sorter": "workspace:*",
|
|
"@pnpm/workspace.root-finder": "workspace:*",
|
|
"@pnpm/workspace.state": "workspace:*",
|
|
"@pnpm/workspace.workspace-manifest-writer": "workspace:*",
|
|
"@yarnpkg/core": "catalog:",
|
|
"@yarnpkg/lockfile": "catalog:",
|
|
"@yarnpkg/parsers": "catalog:",
|
|
"@zkochan/rimraf": "catalog:",
|
|
"@zkochan/table": "catalog:",
|
|
"chalk": "catalog:",
|
|
"ci-info": "catalog:",
|
|
"enquirer": "catalog:",
|
|
"get-npm-tarball-url": "catalog:",
|
|
"is-subdir": "catalog:",
|
|
"load-json-file": "catalog:",
|
|
"normalize-path": "catalog:",
|
|
"p-filter": "catalog:",
|
|
"p-limit": "catalog:",
|
|
"ramda": "catalog:",
|
|
"render-help": "catalog:",
|
|
"version-selector-type": "catalog:"
|
|
},
|
|
"peerDependencies": {
|
|
"@pnpm/logger": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@jest/globals": "catalog:",
|
|
"@pnpm/assert-project": "workspace:*",
|
|
"@pnpm/installing.commands": "workspace:*",
|
|
"@pnpm/installing.modules-yaml": "workspace:*",
|
|
"@pnpm/logger": "workspace:*",
|
|
"@pnpm/prepare": "workspace:*",
|
|
"@pnpm/registry-mock": "catalog:",
|
|
"@pnpm/store.index": "workspace:*",
|
|
"@pnpm/test-fixtures": "workspace:*",
|
|
"@pnpm/test-ipc-server": "workspace:*",
|
|
"@pnpm/testing.command-defaults": "workspace:*",
|
|
"@pnpm/testing.mock-agent": "workspace:*",
|
|
"@pnpm/testing.registry-mock": "workspace:*",
|
|
"@pnpm/worker": "workspace:*",
|
|
"@pnpm/workspace.projects-filter": "workspace:*",
|
|
"@types/normalize-path": "catalog:",
|
|
"@types/proxyquire": "catalog:",
|
|
"@types/ramda": "catalog:",
|
|
"@types/yarnpkg__lockfile": "catalog:",
|
|
"@types/zkochan__table": "catalog:",
|
|
"delay": "catalog:",
|
|
"jest-diff": "catalog:",
|
|
"path-name": "catalog:",
|
|
"proxyquire": "catalog:",
|
|
"read-yaml-file": "catalog:",
|
|
"symlink-dir": "catalog:",
|
|
"tempy": "catalog:",
|
|
"write-json-file": "catalog:",
|
|
"write-package": "catalog:",
|
|
"write-yaml-file": "catalog:"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.13"
|
|
},
|
|
"jest": {
|
|
"preset": "@pnpm/jest-config/with-registry"
|
|
}
|
|
}
|