mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-27 11:31:45 -04:00
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>
This commit is contained in:
10
.changeset/dirty-parents-end.md
Normal file
10
.changeset/dirty-parents-end.md
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
"@pnpm/building.pkg-requires-build": major
|
||||
"@pnpm/building.policy-commands": major
|
||||
"@pnpm/building.build-commands": major
|
||||
"@pnpm/building.during-install": major
|
||||
"@pnpm/building.after-install": major
|
||||
"@pnpm/building.policy": major
|
||||
---
|
||||
|
||||
Initial release
|
||||
@@ -253,7 +253,7 @@ async function updateManifest (workspaceDir: string, manifest: ProjectManifest,
|
||||
case '@pnpm/lockfile.types':
|
||||
scripts = { ...manifest.scripts }
|
||||
break
|
||||
case '@pnpm/exec.build-commands':
|
||||
case '@pnpm/building.policy-commands':
|
||||
case '@pnpm/config.deps-installer':
|
||||
case '@pnpm/headless':
|
||||
case '@pnpm/outdated':
|
||||
@@ -265,7 +265,7 @@ async function updateManifest (workspaceDir: string, manifest: ProjectManifest,
|
||||
case '@pnpm/plugin-commands-outdated':
|
||||
case '@pnpm/plugin-commands-patching':
|
||||
case '@pnpm/plugin-commands-publishing':
|
||||
case '@pnpm/plugin-commands-rebuild':
|
||||
case '@pnpm/building.build-commands':
|
||||
case '@pnpm/plugin-commands-script-runners':
|
||||
case '@pnpm/plugin-commands-store':
|
||||
case '@pnpm/plugin-commands-deploy':
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
"test": "pnpm run compile"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/building.pkg-requires-build": "workspace:*",
|
||||
"@pnpm/building.policy": "workspace:*",
|
||||
"@pnpm/calc-dep-state": "workspace:*",
|
||||
"@pnpm/config": "workspace:*",
|
||||
@@ -39,7 +40,6 @@
|
||||
"@pnpm/dependency-path": "workspace:*",
|
||||
"@pnpm/deps.graph-sequencer": "workspace:*",
|
||||
"@pnpm/error": "workspace:*",
|
||||
"@pnpm/exec.pkg-requires-build": "workspace:*",
|
||||
"@pnpm/get-context": "workspace:*",
|
||||
"@pnpm/lifecycle": "workspace:*",
|
||||
"@pnpm/link-bins": "workspace:*",
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { StoreController } from '@pnpm/store-controller-types'
|
||||
import type { Registries } from '@pnpm/types'
|
||||
import { loadJsonFile } from 'load-json-file'
|
||||
|
||||
export type StrictRebuildOptions = {
|
||||
export type StrictBuildOptions = {
|
||||
autoInstallPeers: boolean
|
||||
cacheDir: string
|
||||
childConcurrency: number
|
||||
@@ -53,10 +53,10 @@ export type StrictRebuildOptions = {
|
||||
fetchFullMetadata?: boolean
|
||||
} & Pick<Config, 'sslConfigs' | 'allowBuilds'>
|
||||
|
||||
export type RebuildOptions = Partial<StrictRebuildOptions> &
|
||||
Pick<StrictRebuildOptions, 'storeDir' | 'storeController'> & Pick<Config, 'rootProjectManifest' | 'rootProjectManifestDir'>
|
||||
export type BuildOptions = Partial<StrictBuildOptions> &
|
||||
Pick<StrictBuildOptions, 'storeDir' | 'storeController'> & Pick<Config, 'rootProjectManifest' | 'rootProjectManifestDir'>
|
||||
|
||||
const defaults = async (opts: RebuildOptions): Promise<StrictRebuildOptions> => {
|
||||
const defaults = async (opts: BuildOptions): Promise<StrictBuildOptions> => {
|
||||
const packageManager = opts.packageManager ??
|
||||
await loadJsonFile<{ name: string, version: string }>(path.join(import.meta.dirname, '../package.json'))!
|
||||
const dir = opts.dir ?? process.cwd()
|
||||
@@ -85,16 +85,16 @@ const defaults = async (opts: RebuildOptions): Promise<StrictRebuildOptions> =>
|
||||
process.getuid?.() !== 0,
|
||||
useLockfile: true,
|
||||
userAgent: `${packageManager.name}/${packageManager.version} npm/? node/${process.version} ${process.platform} ${process.arch}`,
|
||||
} as StrictRebuildOptions
|
||||
} as StrictBuildOptions
|
||||
}
|
||||
|
||||
export async function extendRebuildOptions (
|
||||
opts: RebuildOptions
|
||||
): Promise<StrictRebuildOptions> {
|
||||
export async function extendBuildOptions (
|
||||
opts: BuildOptions
|
||||
): Promise<StrictBuildOptions> {
|
||||
if (opts) {
|
||||
for (const key in opts) {
|
||||
if (opts[key as keyof RebuildOptions] === undefined) {
|
||||
delete opts[key as keyof RebuildOptions]
|
||||
if (opts[key as keyof BuildOptions] === undefined) {
|
||||
delete opts[key as keyof BuildOptions]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,16 @@
|
||||
import assert from 'assert'
|
||||
import path from 'path'
|
||||
import util from 'util'
|
||||
import type { PackageFilesIndex } from '@pnpm/store.cafs'
|
||||
import { storeIndexKey } from '@pnpm/store.index'
|
||||
import { pkgRequiresBuild } from '@pnpm/building.pkg-requires-build'
|
||||
import { createAllowBuildFunction } from '@pnpm/building.policy'
|
||||
import { calcDepState, lockfileToDepGraph, type DepsStateCache } from '@pnpm/calc-dep-state'
|
||||
import {
|
||||
LAYOUT_VERSION,
|
||||
WANTED_LOCKFILE,
|
||||
} from '@pnpm/constants'
|
||||
import { skippedOptionalDependencyLogger } from '@pnpm/core-loggers'
|
||||
import * as dp from '@pnpm/dependency-path'
|
||||
import { graphSequencer } from '@pnpm/deps.graph-sequencer'
|
||||
import { PnpmError } from '@pnpm/error'
|
||||
import { getContext, type PnpmContext } from '@pnpm/get-context'
|
||||
import {
|
||||
@@ -26,6 +28,10 @@ import {
|
||||
import { lockfileWalker, type LockfileWalkerStep } from '@pnpm/lockfile.walker'
|
||||
import { logger, streamParser } from '@pnpm/logger'
|
||||
import { writeModulesManifest } from '@pnpm/modules-yaml'
|
||||
import npa from '@pnpm/npm-package-arg'
|
||||
import { safeReadPackageJsonFromDir } from '@pnpm/read-package-json'
|
||||
import type { PackageFilesIndex } from '@pnpm/store.cafs'
|
||||
import { StoreIndex, storeIndexKey } from '@pnpm/store.index'
|
||||
import { createStoreController } from '@pnpm/store-connection-manager'
|
||||
import type {
|
||||
DepPath,
|
||||
@@ -34,24 +40,17 @@ import type {
|
||||
ProjectId,
|
||||
ProjectRootDir,
|
||||
} from '@pnpm/types'
|
||||
import { createAllowBuildFunction } from '@pnpm/building.policy'
|
||||
import { pkgRequiresBuild } from '@pnpm/exec.pkg-requires-build'
|
||||
import * as dp from '@pnpm/dependency-path'
|
||||
import { StoreIndex } from '@pnpm/store.index'
|
||||
import { safeReadPackageJsonFromDir } from '@pnpm/read-package-json'
|
||||
import { hardLinkDir } from '@pnpm/worker'
|
||||
import { runGroups } from 'run-groups'
|
||||
import { graphSequencer } from '@pnpm/deps.graph-sequencer'
|
||||
import npa from '@pnpm/npm-package-arg'
|
||||
import pLimit from 'p-limit'
|
||||
import { runGroups } from 'run-groups'
|
||||
import semver from 'semver'
|
||||
import {
|
||||
extendRebuildOptions,
|
||||
type RebuildOptions,
|
||||
type StrictRebuildOptions,
|
||||
} from './extendRebuildOptions.js'
|
||||
extendBuildOptions,
|
||||
type BuildOptions,
|
||||
type StrictBuildOptions,
|
||||
} from './extendBuildOptions.js'
|
||||
|
||||
export type { RebuildOptions }
|
||||
export type { BuildOptions }
|
||||
|
||||
function findPackages (
|
||||
packages: PackageSnapshots,
|
||||
@@ -95,16 +94,16 @@ type PackageSelector = string | {
|
||||
range: string
|
||||
}
|
||||
|
||||
export async function rebuildSelectedPkgs (
|
||||
export async function buildSelectedPkgs (
|
||||
projects: Array<{ buildIndex: number, manifest: ProjectManifest, rootDir: ProjectRootDir }>,
|
||||
pkgSpecs: string[],
|
||||
maybeOpts: RebuildOptions
|
||||
maybeOpts: BuildOptions
|
||||
): Promise<{ ignoredBuilds?: IgnoredBuilds }> {
|
||||
const reporter = maybeOpts?.reporter
|
||||
if ((reporter != null) && typeof reporter === 'function') {
|
||||
streamParser.on('data', reporter)
|
||||
}
|
||||
const opts = await extendRebuildOptions(maybeOpts)
|
||||
const opts = await extendBuildOptions(maybeOpts)
|
||||
const ctx = await getContext({ ...opts, allProjects: projects })
|
||||
|
||||
if (ctx.currentLockfile?.packages == null) return {}
|
||||
@@ -161,15 +160,15 @@ export async function rebuildSelectedPkgs (
|
||||
}
|
||||
}
|
||||
|
||||
export async function rebuildProjects (
|
||||
export async function buildProjects (
|
||||
projects: Array<{ buildIndex: number, manifest: ProjectManifest, rootDir: ProjectRootDir }>,
|
||||
maybeOpts: RebuildOptions
|
||||
maybeOpts: BuildOptions
|
||||
): Promise<void> {
|
||||
const reporter = maybeOpts?.reporter
|
||||
if ((reporter != null) && typeof reporter === 'function') {
|
||||
streamParser.on('data', reporter)
|
||||
}
|
||||
const opts = await extendRebuildOptions(maybeOpts)
|
||||
const opts = await extendBuildOptions(maybeOpts)
|
||||
const ctx = await getContext({ ...opts, allProjects: projects })
|
||||
|
||||
let idsToRebuild: string[] = []
|
||||
@@ -275,7 +274,7 @@ async function _rebuild (
|
||||
extraBinPaths: string[]
|
||||
extraNodePaths: string[]
|
||||
} & Pick<PnpmContext, 'modulesFile'>,
|
||||
opts: StrictRebuildOptions
|
||||
opts: StrictBuildOptions
|
||||
): Promise<{ pkgsThatWereRebuilt: Set<string>, ignoredPkgs: IgnoredBuilds }> {
|
||||
const depGraph = lockfileToDepGraph(ctx.currentLockfile)
|
||||
const depsStateCache: DepsStateCache = {}
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
{
|
||||
"path": "../../exec/lifecycle"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/pkg-requires-build"
|
||||
},
|
||||
{
|
||||
"path": "../../lockfile/types"
|
||||
},
|
||||
@@ -78,6 +75,9 @@
|
||||
{
|
||||
"path": "../../worker"
|
||||
},
|
||||
{
|
||||
"path": "../pkg-requires-build"
|
||||
},
|
||||
{
|
||||
"path": "../policy"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pnpm/plugin-commands-rebuild",
|
||||
"version": "1004.0.1",
|
||||
"name": "@pnpm/building.build-commands",
|
||||
"version": "1000.0.0-0",
|
||||
"description": "Commands for rebuilding dependencies",
|
||||
"keywords": [
|
||||
"pnpm",
|
||||
@@ -9,8 +9,8 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"funding": "https://opencollective.com/pnpm",
|
||||
"repository": "https://github.com/pnpm/pnpm/tree/main/exec/plugin-commands-rebuild",
|
||||
"homepage": "https://github.com/pnpm/pnpm/tree/main/exec/plugin-commands-rebuild#readme",
|
||||
"repository": "https://github.com/pnpm/pnpm/tree/main/building/build-commands",
|
||||
"homepage": "https://github.com/pnpm/pnpm/tree/main/building/build-commands#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/pnpm/pnpm/issues"
|
||||
},
|
||||
@@ -49,10 +49,10 @@
|
||||
"devDependencies": {
|
||||
"@jest/globals": "catalog:",
|
||||
"@pnpm/assert-project": "workspace:*",
|
||||
"@pnpm/building.build-commands": "workspace:*",
|
||||
"@pnpm/constants": "workspace:*",
|
||||
"@pnpm/crypto.object-hasher": "workspace:*",
|
||||
"@pnpm/logger": "workspace:*",
|
||||
"@pnpm/plugin-commands-rebuild": "workspace:*",
|
||||
"@pnpm/prepare": "workspace:*",
|
||||
"@pnpm/registry-mock": "catalog:",
|
||||
"@pnpm/store.cafs": "workspace:*",
|
||||
@@ -1,6 +1,6 @@
|
||||
import {
|
||||
rebuildProjects,
|
||||
rebuildSelectedPkgs,
|
||||
buildProjects,
|
||||
buildSelectedPkgs,
|
||||
} from '@pnpm/building.after-install'
|
||||
import { docsUrl, readProjectManifestOnly } from '@pnpm/cli-utils'
|
||||
import { FILTERING, UNIVERSAL_OPTIONS } from '@pnpm/common-cli-options-help'
|
||||
@@ -117,7 +117,7 @@ export async function handler (
|
||||
})
|
||||
|
||||
if (params.length === 0) {
|
||||
await rebuildProjects(
|
||||
await buildProjects(
|
||||
[
|
||||
{
|
||||
buildIndex: 0,
|
||||
@@ -129,7 +129,7 @@ export async function handler (
|
||||
)
|
||||
return
|
||||
}
|
||||
await rebuildSelectedPkgs(
|
||||
await buildSelectedPkgs(
|
||||
[
|
||||
{
|
||||
buildIndex: 0,
|
||||
@@ -1,6 +1,6 @@
|
||||
import assert from 'assert'
|
||||
import util from 'util'
|
||||
import { rebuildProjects as rebuildAll, type RebuildOptions, rebuildSelectedPkgs } from '@pnpm/building.after-install'
|
||||
import { buildProjects as rebuildAll, type BuildOptions, buildSelectedPkgs } from '@pnpm/building.after-install'
|
||||
import {
|
||||
type RecursiveSummary,
|
||||
throwOnCommandFail,
|
||||
@@ -70,7 +70,7 @@ export async function recursiveRebuild (
|
||||
pkgs.length === allProjects.length,
|
||||
storeController: store.ctrl,
|
||||
storeDir: store.dir,
|
||||
}) as RebuildOptions
|
||||
}) as BuildOptions
|
||||
|
||||
const result: RecursiveSummary = {}
|
||||
|
||||
@@ -98,7 +98,7 @@ export async function recursiveRebuild (
|
||||
const rebuild = (
|
||||
params.length === 0
|
||||
? rebuildAll
|
||||
: (importers: any, opts: any) => rebuildSelectedPkgs(importers, params, opts) // eslint-disable-line
|
||||
: (importers: any, opts: any) => buildSelectedPkgs(importers, params, opts) // eslint-disable-line
|
||||
)
|
||||
if (opts.lockfileDir) {
|
||||
const importers = await getImporters()
|
||||
@@ -5,7 +5,7 @@ import type { PackageFilesIndex } from '@pnpm/store.cafs'
|
||||
import { StoreIndex, storeIndexKey } from '@pnpm/store.index'
|
||||
import { ENGINE_NAME, STORE_VERSION, WANTED_LOCKFILE } from '@pnpm/constants'
|
||||
import { hashObject } from '@pnpm/crypto.object-hasher'
|
||||
import { rebuild } from '@pnpm/plugin-commands-rebuild'
|
||||
import { rebuild } from '@pnpm/building.build-commands'
|
||||
import { prepare } from '@pnpm/prepare'
|
||||
import { getIntegrity, REGISTRY_MOCK_PORT } from '@pnpm/registry-mock'
|
||||
import { fixtures } from '@pnpm/test-fixtures'
|
||||
@@ -1,7 +1,7 @@
|
||||
import path from 'path'
|
||||
import { assertProject } from '@pnpm/assert-project'
|
||||
import { filterPackagesFromDir } from '@pnpm/workspace.filter-packages-from-dir'
|
||||
import { rebuild } from '@pnpm/plugin-commands-rebuild'
|
||||
import { rebuild } from '@pnpm/building.build-commands'
|
||||
import { preparePackages } from '@pnpm/prepare'
|
||||
import { createTestIpcServer } from '@pnpm/test-ipc-server'
|
||||
import type { PackageManifest } from '@pnpm/types'
|
||||
@@ -21,9 +21,6 @@
|
||||
{
|
||||
"path": "../../__utils__/test-ipc-server"
|
||||
},
|
||||
{
|
||||
"path": "../../building/after-install"
|
||||
},
|
||||
{
|
||||
"path": "../../cli/cli-utils"
|
||||
},
|
||||
@@ -59,6 +56,9 @@
|
||||
},
|
||||
{
|
||||
"path": "../../workspace/sort-packages"
|
||||
},
|
||||
{
|
||||
"path": "../after-install"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pnpm/build-modules",
|
||||
"version": "1002.0.0",
|
||||
"name": "@pnpm/building.during-install",
|
||||
"version": "1000.0.0-0",
|
||||
"description": "Build packages in node_modules",
|
||||
"keywords": [
|
||||
"pnpm",
|
||||
@@ -10,8 +10,8 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"funding": "https://opencollective.com/pnpm",
|
||||
"repository": "https://github.com/pnpm/pnpm/tree/main/exec/build-modules",
|
||||
"homepage": "https://github.com/pnpm/pnpm/tree/main/exec/build-modules#readme",
|
||||
"repository": "https://github.com/pnpm/pnpm/tree/main/building/during-install",
|
||||
"homepage": "https://github.com/pnpm/pnpm/tree/main/building/during-install#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/pnpm/pnpm/issues"
|
||||
},
|
||||
@@ -56,7 +56,7 @@
|
||||
"@pnpm/worker": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@pnpm/build-modules": "workspace:*",
|
||||
"@pnpm/building.during-install": "workspace:*",
|
||||
"@pnpm/logger": "workspace:*",
|
||||
"@types/ramda": "catalog:"
|
||||
},
|
||||
@@ -15,6 +15,9 @@
|
||||
{
|
||||
"path": "../../deps/graph-sequencer"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/lifecycle"
|
||||
},
|
||||
{
|
||||
"path": "../../fs/hard-link-dir"
|
||||
},
|
||||
@@ -53,9 +56,6 @@
|
||||
},
|
||||
{
|
||||
"path": "../../worker"
|
||||
},
|
||||
{
|
||||
"path": "../lifecycle"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pnpm/exec.pkg-requires-build",
|
||||
"version": "1000.0.11",
|
||||
"name": "@pnpm/building.pkg-requires-build",
|
||||
"version": "1000.0.0-0",
|
||||
"description": "Checks if a package requires to be built",
|
||||
"keywords": [
|
||||
"pnpm",
|
||||
@@ -8,8 +8,8 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"funding": "https://opencollective.com/pnpm",
|
||||
"repository": "https://github.com/pnpm/pnpm/tree/main/exec/pkg-requires-build",
|
||||
"homepage": "https://github.com/pnpm/pnpm/tree/main/exec/pkg-requires-build#readme",
|
||||
"repository": "https://github.com/pnpm/pnpm/tree/main/building/pkg-requires-build",
|
||||
"homepage": "https://github.com/pnpm/pnpm/tree/main/building/pkg-requires-build#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/pnpm/pnpm/issues"
|
||||
},
|
||||
@@ -34,7 +34,7 @@
|
||||
"@pnpm/types": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@pnpm/exec.pkg-requires-build": "workspace:*"
|
||||
"@pnpm/building.pkg-requires-build": "workspace:*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.13"
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pnpm/exec.build-commands",
|
||||
"version": "1001.0.33",
|
||||
"name": "@pnpm/building.policy-commands",
|
||||
"version": "1000.0.0-0",
|
||||
"description": "Commands for managing dependency builds",
|
||||
"keywords": [
|
||||
"pnpm",
|
||||
@@ -9,8 +9,8 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"funding": "https://opencollective.com/pnpm",
|
||||
"repository": "https://github.com/pnpm/pnpm/tree/main/exec/build-commands",
|
||||
"homepage": "https://github.com/pnpm/pnpm/tree/main/exec/build-commands#readme",
|
||||
"repository": "https://github.com/pnpm/pnpm/tree/main/building/policy-commands",
|
||||
"homepage": "https://github.com/pnpm/pnpm/tree/main/building/policy-commands#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/pnpm/pnpm/issues"
|
||||
},
|
||||
@@ -32,12 +32,12 @@
|
||||
"compile": "tsgo --build && pnpm run lint --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/building.build-commands": "workspace:*",
|
||||
"@pnpm/config": "workspace:*",
|
||||
"@pnpm/config.config-writer": "workspace:*",
|
||||
"@pnpm/dependency-path": "workspace:*",
|
||||
"@pnpm/error": "workspace:*",
|
||||
"@pnpm/modules-yaml": "workspace:*",
|
||||
"@pnpm/plugin-commands-rebuild": "workspace:*",
|
||||
"@pnpm/prepare-temp-dir": "workspace:*",
|
||||
"@pnpm/util.lex-comparator": "catalog:",
|
||||
"chalk": "catalog:",
|
||||
@@ -49,7 +49,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/globals": "catalog:",
|
||||
"@pnpm/exec.build-commands": "workspace:*",
|
||||
"@pnpm/building.policy-commands": "workspace:*",
|
||||
"@pnpm/prepare": "workspace:*",
|
||||
"@pnpm/registry-mock": "catalog:",
|
||||
"@pnpm/types": "workspace:*",
|
||||
@@ -1,13 +1,13 @@
|
||||
import { rebuild, type RebuildCommandOpts } from '@pnpm/building.build-commands'
|
||||
import type { Config } from '@pnpm/config'
|
||||
import { writeSettings } from '@pnpm/config.config-writer'
|
||||
import { PnpmError } from '@pnpm/error'
|
||||
import { globalInfo } from '@pnpm/logger'
|
||||
import { type StrictModules, writeModulesManifest } from '@pnpm/modules-yaml'
|
||||
import { lexCompare } from '@pnpm/util.lex-comparator'
|
||||
import renderHelp from 'render-help'
|
||||
import enquirer from 'enquirer'
|
||||
import chalk from 'chalk'
|
||||
import { rebuild, type RebuildCommandOpts } from '@pnpm/plugin-commands-rebuild'
|
||||
import { writeSettings } from '@pnpm/config.config-writer'
|
||||
import enquirer from 'enquirer'
|
||||
import renderHelp from 'render-help'
|
||||
import { getAutomaticallyIgnoredBuilds } from './getAutomaticallyIgnoredBuilds.js'
|
||||
|
||||
export type ApproveBuildsCommandOpts = Pick<Config, 'modulesDir' | 'dir' | 'rootProjectManifest' | 'rootProjectManifestDir' | 'allowBuilds'> & { all?: boolean, global?: boolean }
|
||||
@@ -1,7 +1,7 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import type { ApproveBuildsCommandOpts } from '@pnpm/exec.build-commands'
|
||||
import type { RebuildCommandOpts } from '@pnpm/plugin-commands-rebuild'
|
||||
import type { ApproveBuildsCommandOpts } from '@pnpm/building.policy-commands'
|
||||
import type { RebuildCommandOpts } from '@pnpm/building.build-commands'
|
||||
import { prepare } from '@pnpm/prepare'
|
||||
import { getConfig } from '@pnpm/config'
|
||||
import { readModulesManifest } from '@pnpm/modules-yaml'
|
||||
@@ -16,7 +16,7 @@ import execa from 'execa'
|
||||
|
||||
jest.unstable_mockModule('enquirer', () => ({ default: { prompt: jest.fn() } }))
|
||||
const { default: enquirer } = await import('enquirer')
|
||||
const { approveBuilds } = await import('@pnpm/exec.build-commands')
|
||||
const { approveBuilds } = await import('@pnpm/building.policy-commands')
|
||||
|
||||
const prompt = jest.mocked(enquirer.prompt)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import path from 'path'
|
||||
import fs from 'fs'
|
||||
import { ignoredBuilds } from '@pnpm/exec.build-commands'
|
||||
import { ignoredBuilds } from '@pnpm/building.policy-commands'
|
||||
import { tempDir } from '@pnpm/prepare-temp-dir'
|
||||
import { writeModulesManifest } from '@pnpm/modules-yaml'
|
||||
import type { DepPath } from '@pnpm/types'
|
||||
@@ -34,7 +34,7 @@
|
||||
"path": "../../pkg-manager/modules-yaml"
|
||||
},
|
||||
{
|
||||
"path": "../plugin-commands-rebuild"
|
||||
"path": "../build-commands"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
# @pnpm/builder.policy
|
||||
|
||||
## 1000.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- dee39ec: Sync version with pnpm CLI.
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- dee39ec: You can now allow specific versions of dependencies to run postinstall scripts. `onlyBuiltDependencies` now accepts package names with lists of trusted versions. For example:
|
||||
|
||||
```yaml
|
||||
onlyBuiltDependencies:
|
||||
- nx@21.6.4 || 21.6.5
|
||||
- esbuild@0.25.1
|
||||
```
|
||||
|
||||
Related PR: [#10104](https://github.com/pnpm/pnpm/pull/10104).
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7c1382f]
|
||||
- Updated dependencies [dee39ec]
|
||||
- Updated dependencies [dee39ec]
|
||||
- @pnpm/types@1000.9.0
|
||||
- @pnpm/config.version-policy@1000.0.0
|
||||
@@ -1,382 +0,0 @@
|
||||
# @pnpm/exec.build-commands
|
||||
|
||||
## 1001.0.33
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1004.0.1
|
||||
|
||||
## 1001.0.32
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [dee39ec]
|
||||
- @pnpm/plugin-commands-rebuild@1004.0.0
|
||||
- @pnpm/config@1004.4.2
|
||||
- @pnpm/config.config-writer@1000.0.14
|
||||
- @pnpm/modules-yaml@1000.3.6
|
||||
|
||||
## 1001.0.31
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [9865167]
|
||||
- @pnpm/config@1004.4.1
|
||||
- @pnpm/plugin-commands-rebuild@1003.0.1
|
||||
|
||||
## 1001.0.30
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1003.0.0
|
||||
|
||||
## 1001.0.29
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [fb4da0c]
|
||||
- @pnpm/config@1004.4.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.29
|
||||
- @pnpm/config.config-writer@1000.0.13
|
||||
|
||||
## 1001.0.28
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.28
|
||||
|
||||
## 1001.0.27
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.27
|
||||
|
||||
## 1001.0.26
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/config@1004.3.1
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.26
|
||||
- @pnpm/config.config-writer@1000.0.12
|
||||
|
||||
## 1001.0.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [38e2599]
|
||||
- Updated dependencies [e792927]
|
||||
- @pnpm/config@1004.3.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.25
|
||||
- @pnpm/config.config-writer@1000.0.11
|
||||
- @pnpm/modules-yaml@1000.3.5
|
||||
|
||||
## 1001.0.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.24
|
||||
|
||||
## 1001.0.23
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/config.config-writer@1000.0.10
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.23
|
||||
|
||||
## 1001.0.22
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [2b0d35f]
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.22
|
||||
|
||||
## 1001.0.21
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [0b6264e]
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.21
|
||||
- @pnpm/config@1004.2.1
|
||||
- @pnpm/config.config-writer@1000.0.9
|
||||
|
||||
## 1001.0.20
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [15ba5ab]
|
||||
- Updated dependencies [6f7ac0f]
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.20
|
||||
- @pnpm/config@1004.2.0
|
||||
- @pnpm/config.config-writer@1000.0.8
|
||||
- @pnpm/modules-yaml@1000.3.4
|
||||
|
||||
## 1001.0.19
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.19
|
||||
|
||||
## 1001.0.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [623da6f]
|
||||
- Updated dependencies [cf630a8]
|
||||
- Updated dependencies [ab155a5]
|
||||
- @pnpm/config@1004.1.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.18
|
||||
- @pnpm/config.config-writer@1000.0.7
|
||||
|
||||
## 1001.0.17
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.17
|
||||
|
||||
## 1001.0.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [b217bbb]
|
||||
- Updated dependencies [b0ead51]
|
||||
- Updated dependencies [c8341cc]
|
||||
- Updated dependencies [b0ead51]
|
||||
- Updated dependencies [046af72]
|
||||
- @pnpm/config@1004.0.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.16
|
||||
- @pnpm/config.config-writer@1000.0.6
|
||||
|
||||
## 1001.0.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [8d175c0]
|
||||
- @pnpm/config@1003.1.1
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.15
|
||||
|
||||
## 1001.0.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 09cf46f: Update `@pnpm/logger` in peer dependencies.
|
||||
- c00360b: Update `@pnpm/util.lex-comparator` to v3.0.2.
|
||||
- Updated dependencies [b282bd1]
|
||||
- Updated dependencies [fdb1d98]
|
||||
- Updated dependencies [e4af08c]
|
||||
- Updated dependencies [09cf46f]
|
||||
- Updated dependencies [36d1448]
|
||||
- Updated dependencies [9362b5f]
|
||||
- Updated dependencies [6cf010c]
|
||||
- @pnpm/config@1003.1.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.14
|
||||
- @pnpm/config.config-writer@1000.0.5
|
||||
- @pnpm/modules-yaml@1000.3.3
|
||||
|
||||
## 1001.0.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.13
|
||||
- @pnpm/config.config-writer@1000.0.4
|
||||
- @pnpm/config@1003.0.1
|
||||
|
||||
## 1001.0.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [56bb69b]
|
||||
- Updated dependencies [8a9f3a4]
|
||||
- Updated dependencies [9c3dd03]
|
||||
- @pnpm/config@1003.0.0
|
||||
- @pnpm/logger@1001.0.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.12
|
||||
- @pnpm/config.config-writer@1000.0.3
|
||||
- @pnpm/modules-yaml@1000.3.2
|
||||
|
||||
## 1001.0.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [17b7e9f]
|
||||
- @pnpm/config.config-writer@1000.0.2
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.11
|
||||
- @pnpm/config@1002.7.2
|
||||
|
||||
## 1001.0.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [5679712]
|
||||
- Updated dependencies [01f2bcf]
|
||||
- @pnpm/config@1002.7.1
|
||||
- @pnpm/config.config-writer@1000.0.1
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.10
|
||||
- @pnpm/modules-yaml@1000.3.1
|
||||
|
||||
## 1001.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [e57f1df]
|
||||
- @pnpm/config@1002.7.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.9
|
||||
|
||||
## 1001.0.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [9bcca9f]
|
||||
- Updated dependencies [5b35dff]
|
||||
- Updated dependencies [a2903a0]
|
||||
- Updated dependencies [9bcca9f]
|
||||
- Updated dependencies [5f7be64]
|
||||
- Updated dependencies [5a9e34f]
|
||||
- Updated dependencies [64f6b4f]
|
||||
- Updated dependencies [5f7be64]
|
||||
- @pnpm/config@1002.6.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.8
|
||||
- @pnpm/config.config-writer@1000.0.0
|
||||
- @pnpm/modules-yaml@1000.3.0
|
||||
|
||||
## 1001.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- d612dcf: Remove warnings after having explicitly approved no builds [#9296](https://github.com/pnpm/pnpm/issues/9296).
|
||||
- Updated dependencies [d612dcf]
|
||||
- Updated dependencies [936430a]
|
||||
- Updated dependencies [d612dcf]
|
||||
- @pnpm/modules-yaml@1000.2.0
|
||||
- @pnpm/config@1002.5.4
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.7
|
||||
|
||||
## 1001.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.6
|
||||
|
||||
## 1001.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [6e4459c]
|
||||
- @pnpm/config@1002.5.3
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.5
|
||||
|
||||
## 1001.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.4
|
||||
- @pnpm/config@1002.5.2
|
||||
|
||||
## 1001.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 1e6ae3e: When executing the `approve-builds` command, if package.json contains `onlyBuiltDependencies` or `ignoredBuiltDependencies`, the selected dependency package will continue to be written into `package.json`.
|
||||
- Updated dependencies [c3aa4d8]
|
||||
- @pnpm/config@1002.5.1
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.3
|
||||
|
||||
## 1001.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 8b3cfe2: fix: don't abort approve-builds command or err when manifest doesn't exist [#9198](https://github.com/pnpm/pnpm/pull/9198)
|
||||
- Updated dependencies [d965748]
|
||||
- @pnpm/config@1002.5.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.2
|
||||
- @pnpm/modules-yaml@1000.1.4
|
||||
- @pnpm/read-project-manifest@1000.0.7
|
||||
- @pnpm/workspace.manifest-writer@1000.0.2
|
||||
|
||||
## 1001.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [23754c7]
|
||||
- Updated dependencies [1c2eb8c]
|
||||
- @pnpm/workspace.manifest-writer@1000.0.1
|
||||
- @pnpm/config@1002.4.1
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.1
|
||||
|
||||
## 1001.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- 8fcc221: Read `onlyBuiltDependencies` and `ignoredBuiltDependencies` from `options`.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [8fcc221]
|
||||
- Updated dependencies [8fcc221]
|
||||
- Updated dependencies [8fcc221]
|
||||
- Updated dependencies [e32b1a2]
|
||||
- Updated dependencies [8fcc221]
|
||||
- @pnpm/workspace.manifest-writer@1000.0.0
|
||||
- @pnpm/config@1002.4.0
|
||||
- @pnpm/plugin-commands-rebuild@1002.0.0
|
||||
- @pnpm/modules-yaml@1000.1.3
|
||||
- @pnpm/read-project-manifest@1000.0.6
|
||||
|
||||
## 1000.1.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 546ab37: Throws an error when the value provided by the `--allow-build` option overlaps with the `pnpm.ignoredBuildDependencies` list [#9105](https://github.com/pnpm/pnpm/pull/9105).
|
||||
- Updated dependencies [fee898f]
|
||||
- @pnpm/config@1002.3.1
|
||||
- @pnpm/plugin-commands-rebuild@1001.1.8
|
||||
|
||||
## 1000.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 4aa6d45: `pnpm approve-builds --global` works now for allowing dependencies of globally installed packages to run postinstall scripts.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @pnpm/plugin-commands-rebuild@1001.1.7
|
||||
|
||||
## 1000.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f6006f2]
|
||||
- @pnpm/config@1002.3.0
|
||||
- @pnpm/plugin-commands-rebuild@1001.1.6
|
||||
|
||||
## 1000.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- afbb654: `pnpm approve-builds` should work, when executed from a subdirectory of a workspace [#9042](https://github.com/pnpm/pnpm/issues/9042).
|
||||
|
||||
## 1000.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 5d7192c: `approve-builds` command gets the auto-ignore build list and exits early when it is an empty array [#9024](https://github.com/pnpm/pnpm/pull/9024).
|
||||
- a2a4509: Sort the package names in the "pnpm.onlyBuiltDependencies" list saved by `pnpm approve-builds`.
|
||||
- Updated dependencies [1e229d7]
|
||||
- @pnpm/read-project-manifest@1000.0.5
|
||||
- @pnpm/plugin-commands-rebuild@1001.1.5
|
||||
- @pnpm/config@1002.2.1
|
||||
|
||||
## 1000.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- 961dc5d: Added a new command for printing the list of dependencies with ignored build scripts: `pnpm ignored-builds` [#8963](https://github.com/pnpm/pnpm/pull/8963).
|
||||
- 961dc5d: Added a new command for approving dependencies for running scripts during installation: `pnpm approve-builds` [#8963](https://github.com/pnpm/pnpm/pull/8963).
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f3ffaed]
|
||||
- Updated dependencies [c96eb2b]
|
||||
- @pnpm/config@1002.2.0
|
||||
- @pnpm/plugin-commands-rebuild@1001.1.4
|
||||
- @pnpm/modules-yaml@1000.1.2
|
||||
- @pnpm/read-project-manifest@1000.0.4
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,147 +0,0 @@
|
||||
# @pnpm/exec.pkg-requires-build
|
||||
|
||||
## 1000.0.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7c1382f]
|
||||
- Updated dependencies [dee39ec]
|
||||
- @pnpm/types@1000.9.0
|
||||
|
||||
## 1000.0.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [e792927]
|
||||
- @pnpm/types@1000.8.0
|
||||
|
||||
## 1000.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1a07b8f]
|
||||
- @pnpm/types@1000.7.0
|
||||
|
||||
## 1000.0.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [5ec7255]
|
||||
- @pnpm/types@1000.6.0
|
||||
|
||||
## 1000.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [5b73df1]
|
||||
- @pnpm/types@1000.5.0
|
||||
|
||||
## 1000.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [750ae7d]
|
||||
- @pnpm/types@1000.4.0
|
||||
|
||||
## 1000.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [5f7be64]
|
||||
- Updated dependencies [5f7be64]
|
||||
- @pnpm/types@1000.3.0
|
||||
|
||||
## 1000.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [a5e4965]
|
||||
- @pnpm/types@1000.2.1
|
||||
|
||||
## 1000.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [8fcc221]
|
||||
- @pnpm/types@1000.2.0
|
||||
|
||||
## 1000.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [b562deb]
|
||||
- @pnpm/types@1000.1.1
|
||||
|
||||
## 1000.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [9591a18]
|
||||
- @pnpm/types@1000.1.0
|
||||
|
||||
## 1.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [d500d9f]
|
||||
- @pnpm/types@12.2.0
|
||||
|
||||
## 1.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7ee59a1]
|
||||
- @pnpm/types@12.1.0
|
||||
|
||||
## 1.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [cb006df]
|
||||
- @pnpm/types@12.0.0
|
||||
|
||||
## 1.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [0ef168b]
|
||||
- @pnpm/types@11.1.0
|
||||
|
||||
## 1.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [dd00eeb]
|
||||
- Updated dependencies
|
||||
- @pnpm/types@11.0.0
|
||||
|
||||
## 1.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [13e55b2]
|
||||
- @pnpm/types@10.1.1
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [45f4262]
|
||||
- @pnpm/types@10.1.0
|
||||
|
||||
## 1.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- 0e6b757: Initial release.
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 730929e: Add a field named `ignoredOptionalDependencies`. This is an array of strings. If an optional dependency has its name included in this array, it will be skipped.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [7733f3a]
|
||||
- Updated dependencies [43cdd87]
|
||||
- Updated dependencies [730929e]
|
||||
- @pnpm/types@10.0.0
|
||||
File diff suppressed because it is too large
Load Diff
@@ -32,8 +32,8 @@
|
||||
"compile": "tsgo --build && pnpm run lint --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/building.pkg-requires-build": "workspace:*",
|
||||
"@pnpm/cafs-types": "workspace:*",
|
||||
"@pnpm/exec.pkg-requires-build": "workspace:*",
|
||||
"@pnpm/fetcher-base": "workspace:*",
|
||||
"@pnpm/fs.packlist": "workspace:*",
|
||||
"@pnpm/read-project-manifest": "workspace:*",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { promises as fs, type Stats } from 'fs'
|
||||
import path from 'path'
|
||||
import util from 'util'
|
||||
import { pkgRequiresBuild } from '@pnpm/exec.pkg-requires-build'
|
||||
import type { DirectoryFetcher, DirectoryFetcherOptions } from '@pnpm/fetcher-base'
|
||||
import { pkgRequiresBuild } from '@pnpm/building.pkg-requires-build'
|
||||
import type { FilesMap } from '@pnpm/cafs-types'
|
||||
import { logger } from '@pnpm/logger'
|
||||
import type { DirectoryFetcher, DirectoryFetcherOptions } from '@pnpm/fetcher-base'
|
||||
import { packlist } from '@pnpm/fs.packlist'
|
||||
import { logger } from '@pnpm/logger'
|
||||
import { safeReadProjectManifestOnly } from '@pnpm/read-project-manifest'
|
||||
import type { DependencyManifest } from '@pnpm/types'
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"path": "../../__utils__/test-fixtures"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/pkg-requires-build"
|
||||
"path": "../../building/pkg-requires-build"
|
||||
},
|
||||
{
|
||||
"path": "../../fs/packlist"
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
"test": "pnpm run compile && pnpm run _test"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/building.policy-commands": "workspace:*",
|
||||
"@pnpm/cli-utils": "workspace:*",
|
||||
"@pnpm/config": "workspace:*",
|
||||
"@pnpm/core": "workspace:*",
|
||||
"@pnpm/error": "workspace:*",
|
||||
"@pnpm/exec.build-commands": "workspace:*",
|
||||
"@pnpm/global.packages": "workspace:*",
|
||||
"@pnpm/link-bins": "workspace:*",
|
||||
"@pnpm/matcher": "workspace:*",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { approveBuilds } from '@pnpm/building.policy-commands'
|
||||
import {
|
||||
cleanOrphanedInstallDirs,
|
||||
createGlobalCacheKey,
|
||||
@@ -9,12 +10,11 @@ import {
|
||||
getInstalledBinNames,
|
||||
} from '@pnpm/global.packages'
|
||||
import { linkBinsOfPackages } from '@pnpm/link-bins'
|
||||
import { removeBin } from '@pnpm/remove-bins'
|
||||
import { readPackageJsonFromDirRawSync } from '@pnpm/read-package-json'
|
||||
import { removeBin } from '@pnpm/remove-bins'
|
||||
import type { CreateStoreControllerOptions } from '@pnpm/store-connection-manager'
|
||||
import isSubdir from 'is-subdir'
|
||||
import symlinkDir from 'symlink-dir'
|
||||
import type { CreateStoreControllerOptions } from '@pnpm/store-connection-manager'
|
||||
import { approveBuilds } from '@pnpm/exec.build-commands'
|
||||
import { installGlobalPackages } from './installGlobalPackages.js'
|
||||
|
||||
type ApproveBuildsHandlerOpts = Parameters<typeof approveBuilds.handler>[0]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { approveBuilds } from '@pnpm/building.policy-commands'
|
||||
import {
|
||||
cleanOrphanedInstallDirs,
|
||||
createInstallDir,
|
||||
@@ -10,10 +11,9 @@ import {
|
||||
} from '@pnpm/global.packages'
|
||||
import { linkBinsOfPackages } from '@pnpm/link-bins'
|
||||
import { removeBin } from '@pnpm/remove-bins'
|
||||
import type { CreateStoreControllerOptions } from '@pnpm/store-connection-manager'
|
||||
import isSubdir from 'is-subdir'
|
||||
import symlinkDir from 'symlink-dir'
|
||||
import type { CreateStoreControllerOptions } from '@pnpm/store-connection-manager'
|
||||
import { approveBuilds } from '@pnpm/exec.build-commands'
|
||||
import { installGlobalPackages } from './installGlobalPackages.js'
|
||||
|
||||
type ApproveBuildsHandlerOpts = Parameters<typeof approveBuilds.handler>[0]
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
"../../__typings__/**/*.d.ts"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "../../building/policy-commands"
|
||||
},
|
||||
{
|
||||
"path": "../../cli/cli-utils"
|
||||
},
|
||||
@@ -18,9 +21,6 @@
|
||||
{
|
||||
"path": "../../config/matcher"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/build-commands"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/error"
|
||||
},
|
||||
|
||||
@@ -56,8 +56,8 @@
|
||||
"compile": "tsgo --build && pnpm run lint --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/build-modules": "workspace:*",
|
||||
"@pnpm/building.after-install": "workspace:*",
|
||||
"@pnpm/building.during-install": "workspace:*",
|
||||
"@pnpm/building.policy": "workspace:*",
|
||||
"@pnpm/calc-dep-state": "workspace:*",
|
||||
"@pnpm/catalogs.protocol-parser": "workspace:*",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import path from 'path'
|
||||
import { buildModules, type DepsStateCache, linkBinsOfDependencies } from '@pnpm/build-modules'
|
||||
import { buildSelectedPkgs } from '@pnpm/building.after-install'
|
||||
import { buildModules, type DepsStateCache, linkBinsOfDependencies } from '@pnpm/building.during-install'
|
||||
import { createAllowBuildFunction } from '@pnpm/building.policy'
|
||||
import { rebuildSelectedPkgs } from '@pnpm/building.after-install'
|
||||
import { parseCatalogProtocol } from '@pnpm/catalogs.protocol-parser'
|
||||
import { resolveFromCatalog, matchCatalogResolveResult, type CatalogResultMatcher } from '@pnpm/catalogs.resolver'
|
||||
import type { Catalogs } from '@pnpm/catalogs.types'
|
||||
@@ -903,7 +903,7 @@ async function runUnignoredDependencyBuilds (
|
||||
}
|
||||
}
|
||||
if (pkgsToBuild.length) {
|
||||
return (await rebuildSelectedPkgs(opts.allProjects, pkgsToBuild, {
|
||||
return (await buildSelectedPkgs(opts.allProjects, pkgsToBuild, {
|
||||
...opts,
|
||||
reporter: undefined, // We don't want to attach the reporter again, it was already attached.
|
||||
rootProjectManifestDir: opts.lockfileDir,
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
{
|
||||
"path": "../../building/after-install"
|
||||
},
|
||||
{
|
||||
"path": "../../building/during-install"
|
||||
},
|
||||
{
|
||||
"path": "../../building/policy"
|
||||
},
|
||||
@@ -57,9 +60,6 @@
|
||||
{
|
||||
"path": "../../deps/graph-sequencer"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/build-modules"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/lifecycle"
|
||||
},
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
"compile": "tsgo --build && pnpm run lint --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/build-modules": "workspace:*",
|
||||
"@pnpm/building.during-install": "workspace:*",
|
||||
"@pnpm/building.policy": "workspace:*",
|
||||
"@pnpm/calc-dep-state": "workspace:*",
|
||||
"@pnpm/constants": "workspace:*",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { promises as fs } from 'fs'
|
||||
import path from 'path'
|
||||
import { buildModules } from '@pnpm/build-modules'
|
||||
import { buildModules } from '@pnpm/building.during-install'
|
||||
import { createAllowBuildFunction } from '@pnpm/building.policy'
|
||||
import { calcDepState, type DepsStateCache } from '@pnpm/calc-dep-state'
|
||||
import {
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
{
|
||||
"path": "../../__utils__/test-ipc-server"
|
||||
},
|
||||
{
|
||||
"path": "../../building/during-install"
|
||||
},
|
||||
{
|
||||
"path": "../../building/policy"
|
||||
},
|
||||
@@ -33,9 +36,6 @@
|
||||
{
|
||||
"path": "../../deps/graph-builder"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/build-modules"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/lifecycle"
|
||||
},
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/building.after-install": "workspace:*",
|
||||
"@pnpm/building.build-commands": "workspace:*",
|
||||
"@pnpm/catalogs.types": "workspace:*",
|
||||
"@pnpm/cli-utils": "workspace:*",
|
||||
"@pnpm/colorize-semver-diff": "catalog:",
|
||||
@@ -58,7 +59,6 @@
|
||||
"@pnpm/package-store": "workspace:*",
|
||||
"@pnpm/parse-wanted-dependency": "workspace:*",
|
||||
"@pnpm/pick-registry-for-package": "workspace:*",
|
||||
"@pnpm/plugin-commands-rebuild": "workspace:*",
|
||||
"@pnpm/pnpmfile": "workspace:*",
|
||||
"@pnpm/read-modules-dir": "workspace:*",
|
||||
"@pnpm/read-package-json": "workspace:*",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from 'path'
|
||||
import { rebuildProjects } from '@pnpm/building.after-install'
|
||||
import { buildProjects } from '@pnpm/building.after-install'
|
||||
import {
|
||||
readProjectManifestOnly,
|
||||
tryReadProjectManifest,
|
||||
@@ -391,7 +391,7 @@ when running add/update with the --workspace option')
|
||||
|
||||
if (opts.ignoreScripts) return
|
||||
|
||||
await rebuildProjects(
|
||||
await buildProjects(
|
||||
[
|
||||
{
|
||||
buildIndex: 0,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { promises as fs } from 'fs'
|
||||
import path from 'path'
|
||||
import { rebuild } from '@pnpm/building.build-commands'
|
||||
import type { Catalogs } from '@pnpm/catalogs.types'
|
||||
import {
|
||||
type RecursiveSummary,
|
||||
@@ -18,7 +19,6 @@ import { arrayOfWorkspacePackagesToMap } from '@pnpm/get-context'
|
||||
import { logger } from '@pnpm/logger'
|
||||
import { filterDependenciesByType } from '@pnpm/manifest-utils'
|
||||
import { createMatcherWithIndex } from '@pnpm/matcher'
|
||||
import { rebuild } from '@pnpm/plugin-commands-rebuild'
|
||||
import type { StoreController } from '@pnpm/package-store'
|
||||
import { requireHooks } from '@pnpm/pnpmfile'
|
||||
import { sortPackages } from '@pnpm/sort-packages'
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
{
|
||||
"path": "../../building/after-install"
|
||||
},
|
||||
{
|
||||
"path": "../../building/build-commands"
|
||||
},
|
||||
{
|
||||
"path": "../../catalogs/types"
|
||||
},
|
||||
@@ -57,9 +60,6 @@
|
||||
{
|
||||
"path": "../../deps/status"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/plugin-commands-rebuild"
|
||||
},
|
||||
{
|
||||
"path": "../../fs/graceful-fs"
|
||||
},
|
||||
|
||||
526
pnpm-lock.yaml
generated
526
pnpm-lock.yaml
generated
@@ -1218,6 +1218,9 @@ importers:
|
||||
|
||||
building/after-install:
|
||||
dependencies:
|
||||
'@pnpm/building.pkg-requires-build':
|
||||
specifier: workspace:*
|
||||
version: link:../pkg-requires-build
|
||||
'@pnpm/building.policy':
|
||||
specifier: workspace:*
|
||||
version: link:../policy
|
||||
@@ -1242,9 +1245,6 @@ importers:
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/error
|
||||
'@pnpm/exec.pkg-requires-build':
|
||||
specifier: workspace:*
|
||||
version: link:../../exec/pkg-requires-build
|
||||
'@pnpm/get-context':
|
||||
specifier: workspace:*
|
||||
version: link:../../pkg-manager/get-context
|
||||
@@ -1316,6 +1316,165 @@ importers:
|
||||
specifier: 'catalog:'
|
||||
version: 7.7.1
|
||||
|
||||
building/build-commands:
|
||||
dependencies:
|
||||
'@pnpm/building.after-install':
|
||||
specifier: workspace:*
|
||||
version: link:../after-install
|
||||
'@pnpm/cli-utils':
|
||||
specifier: workspace:*
|
||||
version: link:../../cli/cli-utils
|
||||
'@pnpm/common-cli-options-help':
|
||||
specifier: workspace:*
|
||||
version: link:../../cli/common-cli-options-help
|
||||
'@pnpm/config':
|
||||
specifier: workspace:*
|
||||
version: link:../../config/config
|
||||
'@pnpm/sort-packages':
|
||||
specifier: workspace:*
|
||||
version: link:../../workspace/sort-packages
|
||||
'@pnpm/store-connection-manager':
|
||||
specifier: workspace:*
|
||||
version: link:../../store/store-connection-manager
|
||||
'@pnpm/types':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/types
|
||||
p-limit:
|
||||
specifier: 'catalog:'
|
||||
version: 7.3.0
|
||||
ramda:
|
||||
specifier: 'catalog:'
|
||||
version: '@pnpm/ramda@0.28.1'
|
||||
render-help:
|
||||
specifier: 'catalog:'
|
||||
version: 1.0.3
|
||||
devDependencies:
|
||||
'@jest/globals':
|
||||
specifier: 'catalog:'
|
||||
version: 30.0.5
|
||||
'@pnpm/assert-project':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/assert-project
|
||||
'@pnpm/building.build-commands':
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
'@pnpm/constants':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/constants
|
||||
'@pnpm/crypto.object-hasher':
|
||||
specifier: workspace:*
|
||||
version: link:../../crypto/object-hasher
|
||||
'@pnpm/logger':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/logger
|
||||
'@pnpm/prepare':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/prepare
|
||||
'@pnpm/registry-mock':
|
||||
specifier: 'catalog:'
|
||||
version: 5.2.2(verdaccio@6.2.7(encoding@0.1.13)(typanion@3.14.0))
|
||||
'@pnpm/store.cafs':
|
||||
specifier: workspace:*
|
||||
version: link:../../store/cafs
|
||||
'@pnpm/store.index':
|
||||
specifier: workspace:*
|
||||
version: link:../../store/index
|
||||
'@pnpm/test-fixtures':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/test-fixtures
|
||||
'@pnpm/test-ipc-server':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/test-ipc-server
|
||||
'@pnpm/workspace.filter-packages-from-dir':
|
||||
specifier: workspace:*
|
||||
version: link:../../workspace/filter-packages-from-dir
|
||||
'@types/ramda':
|
||||
specifier: 'catalog:'
|
||||
version: 0.29.12
|
||||
execa:
|
||||
specifier: 'catalog:'
|
||||
version: safe-execa@0.2.0
|
||||
write-yaml-file:
|
||||
specifier: 'catalog:'
|
||||
version: 5.0.0
|
||||
|
||||
building/during-install:
|
||||
dependencies:
|
||||
'@pnpm/calc-dep-state':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/calc-dep-state
|
||||
'@pnpm/config':
|
||||
specifier: workspace:*
|
||||
version: link:../../config/config
|
||||
'@pnpm/core-loggers':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/core-loggers
|
||||
'@pnpm/dependency-path':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/dependency-path
|
||||
'@pnpm/deps.graph-sequencer':
|
||||
specifier: workspace:*
|
||||
version: link:../../deps/graph-sequencer
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/error
|
||||
'@pnpm/fs.hard-link-dir':
|
||||
specifier: workspace:*
|
||||
version: link:../../fs/hard-link-dir
|
||||
'@pnpm/lifecycle':
|
||||
specifier: workspace:*
|
||||
version: link:../../exec/lifecycle
|
||||
'@pnpm/link-bins':
|
||||
specifier: workspace:*
|
||||
version: link:../../pkg-manager/link-bins
|
||||
'@pnpm/patching.apply-patch':
|
||||
specifier: workspace:*
|
||||
version: link:../../patching/apply-patch
|
||||
'@pnpm/patching.types':
|
||||
specifier: workspace:*
|
||||
version: link:../../patching/types
|
||||
'@pnpm/read-package-json':
|
||||
specifier: workspace:*
|
||||
version: link:../../pkg-manifest/read-package-json
|
||||
'@pnpm/store-controller-types':
|
||||
specifier: workspace:*
|
||||
version: link:../../store/store-controller-types
|
||||
'@pnpm/types':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/types
|
||||
'@pnpm/worker':
|
||||
specifier: workspace:^
|
||||
version: link:../../worker
|
||||
p-defer:
|
||||
specifier: 'catalog:'
|
||||
version: 4.0.1
|
||||
ramda:
|
||||
specifier: 'catalog:'
|
||||
version: '@pnpm/ramda@0.28.1'
|
||||
run-groups:
|
||||
specifier: 'catalog:'
|
||||
version: 4.0.0
|
||||
devDependencies:
|
||||
'@pnpm/building.during-install':
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
'@pnpm/logger':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/logger
|
||||
'@types/ramda':
|
||||
specifier: 'catalog:'
|
||||
version: 0.29.12
|
||||
|
||||
building/pkg-requires-build:
|
||||
dependencies:
|
||||
'@pnpm/types':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/types
|
||||
devDependencies:
|
||||
'@pnpm/building.pkg-requires-build':
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
|
||||
building/policy:
|
||||
dependencies:
|
||||
'@pnpm/config.version-policy':
|
||||
@@ -1329,6 +1488,82 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
|
||||
building/policy-commands:
|
||||
dependencies:
|
||||
'@pnpm/building.build-commands':
|
||||
specifier: workspace:*
|
||||
version: link:../build-commands
|
||||
'@pnpm/config':
|
||||
specifier: workspace:*
|
||||
version: link:../../config/config
|
||||
'@pnpm/config.config-writer':
|
||||
specifier: workspace:*
|
||||
version: link:../../config/config-writer
|
||||
'@pnpm/dependency-path':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/dependency-path
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/error
|
||||
'@pnpm/logger':
|
||||
specifier: 'catalog:'
|
||||
version: 1001.0.1
|
||||
'@pnpm/modules-yaml':
|
||||
specifier: workspace:*
|
||||
version: link:../../pkg-manager/modules-yaml
|
||||
'@pnpm/prepare-temp-dir':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/prepare-temp-dir
|
||||
'@pnpm/util.lex-comparator':
|
||||
specifier: 'catalog:'
|
||||
version: 3.0.2
|
||||
chalk:
|
||||
specifier: 'catalog:'
|
||||
version: 5.6.2
|
||||
enquirer:
|
||||
specifier: 'catalog:'
|
||||
version: 2.4.1
|
||||
render-help:
|
||||
specifier: 'catalog:'
|
||||
version: 1.0.3
|
||||
devDependencies:
|
||||
'@jest/globals':
|
||||
specifier: 'catalog:'
|
||||
version: 30.0.5
|
||||
'@pnpm/building.policy-commands':
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
'@pnpm/prepare':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/prepare
|
||||
'@pnpm/registry-mock':
|
||||
specifier: 'catalog:'
|
||||
version: 5.2.2(verdaccio@6.2.7(encoding@0.1.13)(typanion@3.14.0))
|
||||
'@pnpm/types':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/types
|
||||
'@types/ramda':
|
||||
specifier: 'catalog:'
|
||||
version: 0.29.12
|
||||
execa:
|
||||
specifier: 'catalog:'
|
||||
version: safe-execa@0.2.0
|
||||
load-json-file:
|
||||
specifier: 'catalog:'
|
||||
version: 7.0.1
|
||||
ramda:
|
||||
specifier: 'catalog:'
|
||||
version: '@pnpm/ramda@0.28.1'
|
||||
read-yaml-file:
|
||||
specifier: 'catalog:'
|
||||
version: 2.1.0
|
||||
write-package:
|
||||
specifier: 'catalog:'
|
||||
version: 7.2.0
|
||||
write-yaml-file:
|
||||
specifier: 'catalog:'
|
||||
version: 5.0.0
|
||||
|
||||
cache/api:
|
||||
dependencies:
|
||||
'@pnpm/config':
|
||||
@@ -2514,149 +2749,6 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
|
||||
exec/build-commands:
|
||||
dependencies:
|
||||
'@pnpm/config':
|
||||
specifier: workspace:*
|
||||
version: link:../../config/config
|
||||
'@pnpm/config.config-writer':
|
||||
specifier: workspace:*
|
||||
version: link:../../config/config-writer
|
||||
'@pnpm/dependency-path':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/dependency-path
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/error
|
||||
'@pnpm/logger':
|
||||
specifier: 'catalog:'
|
||||
version: 1001.0.1
|
||||
'@pnpm/modules-yaml':
|
||||
specifier: workspace:*
|
||||
version: link:../../pkg-manager/modules-yaml
|
||||
'@pnpm/plugin-commands-rebuild':
|
||||
specifier: workspace:*
|
||||
version: link:../plugin-commands-rebuild
|
||||
'@pnpm/prepare-temp-dir':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/prepare-temp-dir
|
||||
'@pnpm/util.lex-comparator':
|
||||
specifier: 'catalog:'
|
||||
version: 3.0.2
|
||||
chalk:
|
||||
specifier: 'catalog:'
|
||||
version: 5.6.2
|
||||
enquirer:
|
||||
specifier: 'catalog:'
|
||||
version: 2.4.1
|
||||
render-help:
|
||||
specifier: 'catalog:'
|
||||
version: 1.0.3
|
||||
devDependencies:
|
||||
'@jest/globals':
|
||||
specifier: 'catalog:'
|
||||
version: 30.0.5
|
||||
'@pnpm/exec.build-commands':
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
'@pnpm/prepare':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/prepare
|
||||
'@pnpm/registry-mock':
|
||||
specifier: 'catalog:'
|
||||
version: 5.2.2(verdaccio@6.2.7(encoding@0.1.13)(typanion@3.14.0))
|
||||
'@pnpm/types':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/types
|
||||
'@types/ramda':
|
||||
specifier: 'catalog:'
|
||||
version: 0.29.12
|
||||
execa:
|
||||
specifier: 'catalog:'
|
||||
version: safe-execa@0.2.0
|
||||
load-json-file:
|
||||
specifier: 'catalog:'
|
||||
version: 7.0.1
|
||||
ramda:
|
||||
specifier: 'catalog:'
|
||||
version: '@pnpm/ramda@0.28.1'
|
||||
read-yaml-file:
|
||||
specifier: 'catalog:'
|
||||
version: 2.1.0
|
||||
write-package:
|
||||
specifier: 'catalog:'
|
||||
version: 7.2.0
|
||||
write-yaml-file:
|
||||
specifier: 'catalog:'
|
||||
version: 5.0.0
|
||||
|
||||
exec/build-modules:
|
||||
dependencies:
|
||||
'@pnpm/calc-dep-state':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/calc-dep-state
|
||||
'@pnpm/config':
|
||||
specifier: workspace:*
|
||||
version: link:../../config/config
|
||||
'@pnpm/core-loggers':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/core-loggers
|
||||
'@pnpm/dependency-path':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/dependency-path
|
||||
'@pnpm/deps.graph-sequencer':
|
||||
specifier: workspace:*
|
||||
version: link:../../deps/graph-sequencer
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/error
|
||||
'@pnpm/fs.hard-link-dir':
|
||||
specifier: workspace:*
|
||||
version: link:../../fs/hard-link-dir
|
||||
'@pnpm/lifecycle':
|
||||
specifier: workspace:*
|
||||
version: link:../lifecycle
|
||||
'@pnpm/link-bins':
|
||||
specifier: workspace:*
|
||||
version: link:../../pkg-manager/link-bins
|
||||
'@pnpm/patching.apply-patch':
|
||||
specifier: workspace:*
|
||||
version: link:../../patching/apply-patch
|
||||
'@pnpm/patching.types':
|
||||
specifier: workspace:*
|
||||
version: link:../../patching/types
|
||||
'@pnpm/read-package-json':
|
||||
specifier: workspace:*
|
||||
version: link:../../pkg-manifest/read-package-json
|
||||
'@pnpm/store-controller-types':
|
||||
specifier: workspace:*
|
||||
version: link:../../store/store-controller-types
|
||||
'@pnpm/types':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/types
|
||||
'@pnpm/worker':
|
||||
specifier: workspace:^
|
||||
version: link:../../worker
|
||||
p-defer:
|
||||
specifier: 'catalog:'
|
||||
version: 4.0.1
|
||||
ramda:
|
||||
specifier: 'catalog:'
|
||||
version: '@pnpm/ramda@0.28.1'
|
||||
run-groups:
|
||||
specifier: 'catalog:'
|
||||
version: 4.0.0
|
||||
devDependencies:
|
||||
'@pnpm/build-modules':
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
'@pnpm/logger':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/logger
|
||||
'@types/ramda':
|
||||
specifier: 'catalog:'
|
||||
version: 0.29.12
|
||||
|
||||
exec/lifecycle:
|
||||
dependencies:
|
||||
'@pnpm/cafs-types':
|
||||
@@ -2724,98 +2816,6 @@ importers:
|
||||
specifier: 'catalog:'
|
||||
version: 7.0.1
|
||||
|
||||
exec/pkg-requires-build:
|
||||
dependencies:
|
||||
'@pnpm/types':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/types
|
||||
devDependencies:
|
||||
'@pnpm/exec.pkg-requires-build':
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
|
||||
exec/plugin-commands-rebuild:
|
||||
dependencies:
|
||||
'@pnpm/building.after-install':
|
||||
specifier: workspace:*
|
||||
version: link:../../building/after-install
|
||||
'@pnpm/cli-utils':
|
||||
specifier: workspace:*
|
||||
version: link:../../cli/cli-utils
|
||||
'@pnpm/common-cli-options-help':
|
||||
specifier: workspace:*
|
||||
version: link:../../cli/common-cli-options-help
|
||||
'@pnpm/config':
|
||||
specifier: workspace:*
|
||||
version: link:../../config/config
|
||||
'@pnpm/sort-packages':
|
||||
specifier: workspace:*
|
||||
version: link:../../workspace/sort-packages
|
||||
'@pnpm/store-connection-manager':
|
||||
specifier: workspace:*
|
||||
version: link:../../store/store-connection-manager
|
||||
'@pnpm/types':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/types
|
||||
p-limit:
|
||||
specifier: 'catalog:'
|
||||
version: 7.3.0
|
||||
ramda:
|
||||
specifier: 'catalog:'
|
||||
version: '@pnpm/ramda@0.28.1'
|
||||
render-help:
|
||||
specifier: 'catalog:'
|
||||
version: 1.0.3
|
||||
devDependencies:
|
||||
'@jest/globals':
|
||||
specifier: 'catalog:'
|
||||
version: 30.0.5
|
||||
'@pnpm/assert-project':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/assert-project
|
||||
'@pnpm/constants':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/constants
|
||||
'@pnpm/crypto.object-hasher':
|
||||
specifier: workspace:*
|
||||
version: link:../../crypto/object-hasher
|
||||
'@pnpm/logger':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/logger
|
||||
'@pnpm/plugin-commands-rebuild':
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
'@pnpm/prepare':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/prepare
|
||||
'@pnpm/registry-mock':
|
||||
specifier: 'catalog:'
|
||||
version: 5.2.2(verdaccio@6.2.7(encoding@0.1.13)(typanion@3.14.0))
|
||||
'@pnpm/store.cafs':
|
||||
specifier: workspace:*
|
||||
version: link:../../store/cafs
|
||||
'@pnpm/store.index':
|
||||
specifier: workspace:*
|
||||
version: link:../../store/index
|
||||
'@pnpm/test-fixtures':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/test-fixtures
|
||||
'@pnpm/test-ipc-server':
|
||||
specifier: workspace:*
|
||||
version: link:../../__utils__/test-ipc-server
|
||||
'@pnpm/workspace.filter-packages-from-dir':
|
||||
specifier: workspace:*
|
||||
version: link:../../workspace/filter-packages-from-dir
|
||||
'@types/ramda':
|
||||
specifier: 'catalog:'
|
||||
version: 0.29.12
|
||||
execa:
|
||||
specifier: 'catalog:'
|
||||
version: safe-execa@0.2.0
|
||||
write-yaml-file:
|
||||
specifier: 'catalog:'
|
||||
version: 5.0.0
|
||||
|
||||
exec/plugin-commands-script-runners:
|
||||
dependencies:
|
||||
'@pnpm/catalogs.resolver':
|
||||
@@ -3093,12 +3093,12 @@ importers:
|
||||
|
||||
fetching/directory-fetcher:
|
||||
dependencies:
|
||||
'@pnpm/building.pkg-requires-build':
|
||||
specifier: workspace:*
|
||||
version: link:../../building/pkg-requires-build
|
||||
'@pnpm/cafs-types':
|
||||
specifier: workspace:*
|
||||
version: link:../../store/cafs-types
|
||||
'@pnpm/exec.pkg-requires-build':
|
||||
specifier: workspace:*
|
||||
version: link:../../exec/pkg-requires-build
|
||||
'@pnpm/fetcher-base':
|
||||
specifier: workspace:*
|
||||
version: link:../fetcher-base
|
||||
@@ -3523,6 +3523,9 @@ importers:
|
||||
|
||||
global/commands:
|
||||
dependencies:
|
||||
'@pnpm/building.policy-commands':
|
||||
specifier: workspace:*
|
||||
version: link:../../building/policy-commands
|
||||
'@pnpm/cli-utils':
|
||||
specifier: workspace:*
|
||||
version: link:../../cli/cli-utils
|
||||
@@ -3535,9 +3538,6 @@ importers:
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/error
|
||||
'@pnpm/exec.build-commands':
|
||||
specifier: workspace:*
|
||||
version: link:../../exec/build-commands
|
||||
'@pnpm/global.packages':
|
||||
specifier: workspace:*
|
||||
version: link:../packages
|
||||
@@ -5008,12 +5008,12 @@ importers:
|
||||
|
||||
pkg-manager/core:
|
||||
dependencies:
|
||||
'@pnpm/build-modules':
|
||||
specifier: workspace:*
|
||||
version: link:../../exec/build-modules
|
||||
'@pnpm/building.after-install':
|
||||
specifier: workspace:*
|
||||
version: link:../../building/after-install
|
||||
'@pnpm/building.during-install':
|
||||
specifier: workspace:*
|
||||
version: link:../../building/during-install
|
||||
'@pnpm/building.policy':
|
||||
specifier: workspace:*
|
||||
version: link:../../building/policy
|
||||
@@ -5380,9 +5380,9 @@ importers:
|
||||
|
||||
pkg-manager/headless:
|
||||
dependencies:
|
||||
'@pnpm/build-modules':
|
||||
'@pnpm/building.during-install':
|
||||
specifier: workspace:*
|
||||
version: link:../../exec/build-modules
|
||||
version: link:../../building/during-install
|
||||
'@pnpm/building.policy':
|
||||
specifier: workspace:*
|
||||
version: link:../../building/policy
|
||||
@@ -5906,6 +5906,9 @@ importers:
|
||||
'@pnpm/building.after-install':
|
||||
specifier: workspace:*
|
||||
version: link:../../building/after-install
|
||||
'@pnpm/building.build-commands':
|
||||
specifier: workspace:*
|
||||
version: link:../../building/build-commands
|
||||
'@pnpm/catalogs.types':
|
||||
specifier: workspace:*
|
||||
version: link:../../catalogs/types
|
||||
@@ -5981,9 +5984,6 @@ importers:
|
||||
'@pnpm/pick-registry-for-package':
|
||||
specifier: workspace:*
|
||||
version: link:../../config/pick-registry-for-package
|
||||
'@pnpm/plugin-commands-rebuild':
|
||||
specifier: workspace:*
|
||||
version: link:../../exec/plugin-commands-rebuild
|
||||
'@pnpm/pnpmfile':
|
||||
specifier: workspace:*
|
||||
version: link:../../hooks/pnpmfile
|
||||
@@ -6616,6 +6616,12 @@ importers:
|
||||
'@pnpm/assert-project':
|
||||
specifier: workspace:*
|
||||
version: link:../__utils__/assert-project
|
||||
'@pnpm/building.build-commands':
|
||||
specifier: workspace:*
|
||||
version: link:../building/build-commands
|
||||
'@pnpm/building.policy-commands':
|
||||
specifier: workspace:*
|
||||
version: link:../building/policy-commands
|
||||
'@pnpm/byline':
|
||||
specifier: 'catalog:'
|
||||
version: 1.0.0
|
||||
@@ -6664,9 +6670,6 @@ importers:
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../packages/error
|
||||
'@pnpm/exec.build-commands':
|
||||
specifier: workspace:*
|
||||
version: link:../exec/build-commands
|
||||
'@pnpm/filter-workspace-packages':
|
||||
specifier: workspace:*
|
||||
version: link:../workspace/filter-workspace-packages
|
||||
@@ -6730,9 +6733,6 @@ importers:
|
||||
'@pnpm/plugin-commands-publishing':
|
||||
specifier: workspace:*
|
||||
version: link:../releasing/plugin-commands-publishing
|
||||
'@pnpm/plugin-commands-rebuild':
|
||||
specifier: workspace:*
|
||||
version: link:../exec/plugin-commands-rebuild
|
||||
'@pnpm/plugin-commands-sbom':
|
||||
specifier: workspace:*
|
||||
version: link:../reviewing/plugin-commands-sbom
|
||||
@@ -8453,9 +8453,9 @@ importers:
|
||||
|
||||
store/create-cafs-store:
|
||||
dependencies:
|
||||
'@pnpm/exec.pkg-requires-build':
|
||||
'@pnpm/building.pkg-requires-build':
|
||||
specifier: workspace:*
|
||||
version: link:../../exec/pkg-requires-build
|
||||
version: link:../../building/pkg-requires-build
|
||||
'@pnpm/fetcher-base':
|
||||
specifier: workspace:*
|
||||
version: link:../../fetching/fetcher-base
|
||||
@@ -9005,6 +9005,9 @@ importers:
|
||||
|
||||
worker:
|
||||
dependencies:
|
||||
'@pnpm/building.pkg-requires-build':
|
||||
specifier: workspace:*
|
||||
version: link:../building/pkg-requires-build
|
||||
'@pnpm/cafs-types':
|
||||
specifier: workspace:*
|
||||
version: link:../store/cafs-types
|
||||
@@ -9017,9 +9020,6 @@ importers:
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../packages/error
|
||||
'@pnpm/exec.pkg-requires-build':
|
||||
specifier: workspace:*
|
||||
version: link:../exec/pkg-requires-build
|
||||
'@pnpm/fs.hard-link-dir':
|
||||
specifier: workspace:*
|
||||
version: link:../fs/hard-link-dir
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
"@pnpm/dependency-path": "workspace:*",
|
||||
"@pnpm/env.path": "workspace:*",
|
||||
"@pnpm/error": "workspace:*",
|
||||
"@pnpm/exec.build-commands": "workspace:*",
|
||||
"@pnpm/building.policy-commands": "workspace:*",
|
||||
"@pnpm/filter-workspace-packages": "workspace:*",
|
||||
"@pnpm/find-workspace-dir": "workspace:*",
|
||||
"@pnpm/fs.msgpack-file": "workspace:*",
|
||||
@@ -116,7 +116,7 @@
|
||||
"@pnpm/plugin-commands-outdated": "workspace:*",
|
||||
"@pnpm/plugin-commands-patching": "workspace:*",
|
||||
"@pnpm/plugin-commands-publishing": "workspace:*",
|
||||
"@pnpm/plugin-commands-rebuild": "workspace:*",
|
||||
"@pnpm/building.build-commands": "workspace:*",
|
||||
"@pnpm/plugin-commands-script-runners": "workspace:*",
|
||||
"@pnpm/plugin-commands-setup": "workspace:*",
|
||||
"@pnpm/plugin-commands-store": "workspace:*",
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { rebuild } from '@pnpm/building.build-commands'
|
||||
import { approveBuilds, ignoredBuilds } from '@pnpm/building.policy-commands'
|
||||
import { cache } from '@pnpm/cache.commands'
|
||||
import type { CompletionFunc } from '@pnpm/command'
|
||||
import { types as allTypes } from '@pnpm/config'
|
||||
import { approveBuilds, ignoredBuilds } from '@pnpm/exec.build-commands'
|
||||
import { audit } from '@pnpm/plugin-commands-audit'
|
||||
import { generateCompletion, createCompletionServer } from '@pnpm/plugin-commands-completion'
|
||||
import { config, getCommand, setCommand } from '@pnpm/plugin-commands-config'
|
||||
@@ -17,7 +18,6 @@ import { sbom } from '@pnpm/plugin-commands-sbom'
|
||||
import { outdated } from '@pnpm/plugin-commands-outdated'
|
||||
import { pack, publish } from '@pnpm/plugin-commands-publishing'
|
||||
import { patch, patchCommit, patchRemove } from '@pnpm/plugin-commands-patching'
|
||||
import { rebuild } from '@pnpm/plugin-commands-rebuild'
|
||||
import {
|
||||
create,
|
||||
dlx,
|
||||
|
||||
@@ -23,6 +23,12 @@
|
||||
{
|
||||
"path": "../__utils__/test-ipc-server"
|
||||
},
|
||||
{
|
||||
"path": "../building/build-commands"
|
||||
},
|
||||
{
|
||||
"path": "../building/policy-commands"
|
||||
},
|
||||
{
|
||||
"path": "../cache/commands"
|
||||
},
|
||||
@@ -65,12 +71,6 @@
|
||||
{
|
||||
"path": "../env/plugin-commands-env"
|
||||
},
|
||||
{
|
||||
"path": "../exec/build-commands"
|
||||
},
|
||||
{
|
||||
"path": "../exec/plugin-commands-rebuild"
|
||||
},
|
||||
{
|
||||
"path": "../exec/plugin-commands-script-runners"
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
],
|
||||
"ignoreDeps": [
|
||||
"@pnpm/assert-project",
|
||||
"@pnpm/build-modules",
|
||||
"@pnpm/building.during-install",
|
||||
"@pnpm/config",
|
||||
"@pnpm/constants",
|
||||
"@pnpm/core-loggers",
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
"compile": "tsgo --build && pnpm run lint --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/exec.pkg-requires-build": "workspace:*",
|
||||
"@pnpm/building.pkg-requires-build": "workspace:*",
|
||||
"@pnpm/fetcher-base": "workspace:*",
|
||||
"@pnpm/fs.indexed-pkg-importer": "workspace:*",
|
||||
"@pnpm/store-controller-types": "workspace:*",
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"path": "../../__utils__/prepare"
|
||||
},
|
||||
{
|
||||
"path": "../../exec/pkg-requires-build"
|
||||
"path": "../../building/pkg-requires-build"
|
||||
},
|
||||
{
|
||||
"path": "../../fetching/fetcher-base"
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
"_test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pnpm/building.pkg-requires-build": "workspace:*",
|
||||
"@pnpm/cafs-types": "workspace:*",
|
||||
"@pnpm/create-cafs-store": "workspace:*",
|
||||
"@pnpm/crypto.integrity": "workspace:*",
|
||||
"@pnpm/error": "workspace:*",
|
||||
"@pnpm/exec.pkg-requires-build": "workspace:*",
|
||||
"@pnpm/fs.hard-link-dir": "workspace:*",
|
||||
"@pnpm/graceful-fs": "workspace:*",
|
||||
"@pnpm/store.cafs": "workspace:*",
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import crypto from 'crypto'
|
||||
import path from 'path'
|
||||
import fs from 'fs'
|
||||
import { PnpmError } from '@pnpm/error'
|
||||
import { pkgRequiresBuild } from '@pnpm/building.pkg-requires-build'
|
||||
import type { Cafs, PackageFiles, SideEffectsDiff, FilesMap } from '@pnpm/cafs-types'
|
||||
import { createCafsStore } from '@pnpm/create-cafs-store'
|
||||
import { pkgRequiresBuild } from '@pnpm/exec.pkg-requires-build'
|
||||
import { formatIntegrity, parseIntegrity } from '@pnpm/crypto.integrity'
|
||||
import { PnpmError } from '@pnpm/error'
|
||||
import { hardLinkDir } from '@pnpm/fs.hard-link-dir'
|
||||
import { StoreIndex, packForStorage } from '@pnpm/store.index'
|
||||
import { formatIntegrity, parseIntegrity } from '@pnpm/crypto.integrity'
|
||||
import {
|
||||
type CafsFunctions,
|
||||
checkPkgFilesIntegrity,
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "../crypto/integrity"
|
||||
"path": "../building/pkg-requires-build"
|
||||
},
|
||||
{
|
||||
"path": "../exec/pkg-requires-build"
|
||||
"path": "../crypto/integrity"
|
||||
},
|
||||
{
|
||||
"path": "../fs/graceful-fs"
|
||||
|
||||
Reference in New Issue
Block a user