mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-06 00:07:24 -05:00
refactor: rootProjectManifestDir
This commit is contained in:
@@ -169,7 +169,7 @@ export async function handler (
|
||||
|
||||
const store = await createOrConnectStoreController(opts)
|
||||
const manifest = await readProjectManifestOnly(opts.dir)
|
||||
const manifestOpts = opts.rootProjectManifest ? getOptionsFromRootManifest(opts.rootProjectManifestDir!, opts.rootProjectManifest) : {}
|
||||
const manifestOpts = opts.rootProjectManifest ? getOptionsFromRootManifest(opts.rootProjectManifestDir, opts.rootProjectManifest) : {}
|
||||
const installOpts = {
|
||||
...opts,
|
||||
...manifestOpts,
|
||||
|
||||
@@ -188,7 +188,7 @@ when running add/update with the --workspace option')
|
||||
params,
|
||||
{
|
||||
...opts,
|
||||
...getOptionsFromRootManifest(opts.rootProjectManifestDir!, opts.rootProjectManifest ?? {}),
|
||||
...getOptionsFromRootManifest(opts.rootProjectManifestDir, opts.rootProjectManifest ?? {}),
|
||||
forceHoistPattern,
|
||||
forcePublicHoistPattern,
|
||||
allProjectsGraph,
|
||||
|
||||
@@ -174,7 +174,7 @@ export async function handler (
|
||||
await install(
|
||||
await readProjectManifestOnly(dir, opts), {
|
||||
...config,
|
||||
...getOptionsFromRootManifest(config.rootProjectManifestDir!, config.rootProjectManifest ?? {}),
|
||||
...getOptionsFromRootManifest(config.rootProjectManifestDir, config.rootProjectManifest ?? {}),
|
||||
include: {
|
||||
dependencies: config.production !== false,
|
||||
devDependencies: config.dev !== false,
|
||||
|
||||
@@ -172,7 +172,7 @@ export async function handler (
|
||||
}
|
||||
const store = await createOrConnectStoreController(opts)
|
||||
const removeOpts = Object.assign(opts, {
|
||||
...getOptionsFromRootManifest(opts.rootProjectManifestDir!, opts.rootProjectManifest ?? {}),
|
||||
...getOptionsFromRootManifest(opts.rootProjectManifestDir, opts.rootProjectManifest ?? {}),
|
||||
storeController: store.ctrl,
|
||||
storeDir: store.dir,
|
||||
include,
|
||||
|
||||
@@ -73,7 +73,7 @@ export async function handler (
|
||||
}
|
||||
const store = await createOrConnectStoreController(opts)
|
||||
const unlinkOpts = Object.assign(opts, {
|
||||
...getOptionsFromRootManifest(opts.rootProjectManifestDir!, opts.rootProjectManifest ?? {}),
|
||||
...getOptionsFromRootManifest(opts.rootProjectManifestDir, opts.rootProjectManifest ?? {}),
|
||||
globalBin: opts.bin,
|
||||
storeController: store.ctrl,
|
||||
storeDir: store.dir,
|
||||
|
||||
Reference in New Issue
Block a user