Skip to content

Commit

Permalink
feat: only require packageDir, not NamedPackageDir
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jun 10, 2024
1 parent 4e697cd commit 6b4b308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sfProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export class SfProjectJson extends ConfigFile<ConfigFile.Options, ProjectJson> {
*
* @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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b4b308

Please sign in to comment.