refactor: rootProjectManifestDir

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

No files matched your search

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