From 6b4b3082fd348f5b659731e9185d2163d641de44 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Mon, 10 Jun 2024 14:22:58 -0500 Subject: [PATCH] feat: only require packageDir, not NamedPackageDir --- src/sfProject.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfProject.ts b/src/sfProject.ts index b7b868a77..3d006a148 100644 --- a/src/sfProject.ts +++ b/src/sfProject.ts @@ -309,7 +309,7 @@ export class SfProjectJson extends ConfigFile { * * @param packageDir */ - public addPackageDirectory(packageDir: NamedPackageDir): void { + public addPackageDirectory(packageDir: PackageDir): void { const dirIndex = this.getContents().packageDirectories.findIndex(findPackageDir(packageDir)); // merge new package dir with existing entry, if present @@ -736,7 +736,7 @@ export const isNamedPackagingDirectory = (packageDir: NamedPackageDir): packageD * so an attempt of matching an existing entry is a bit convoluted */ const findPackageDir = - (target: NamedPackageDir) => + (target: PackageDir) => (potentialMatch: PackageDir): boolean => // an entry w/o a package or id is considered a directory entry for which a package has yet to be created // find a matching dir entry that where path is the same and id and package are not present