fix(dlx): don't fail when running dlx from project with patched deps (#7201)

close #7198
close #7183
close #7200
This commit is contained in:
Zoltan Kochan
2023-10-15 04:44:55 +03:00
committed by GitHub
parent bc83798d46
commit ac5abd3ff7
9 changed files with 77 additions and 19 deletions

View File

@@ -42,7 +42,7 @@ export function help () {
})
}
export async function handler (opts: install.InstallCommandOptions & Pick<Config, 'patchesDir' | 'rootProjectManifest'>, params: string[]) {
export async function handler (opts: install.InstallCommandOptions & Pick<Config, 'patchesDir' | 'rootProjectManifest' | 'rootProjectManifestDir'>, params: string[]) {
const userDir = params[0]
const lockfileDir = opts.lockfileDir ?? opts.dir ?? process.cwd()
const patchesDirName = normalizePath(path.normalize(opts.patchesDir ?? 'patches'))