refactor: rootProjectManifestDir

This commit is contained in:
Zoltan Kochan
2023-10-24 15:30:06 +03:00
parent d6592964f0
commit e56207df65
5 changed files with 5 additions and 5 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,