Skip to content

Commit

Permalink
Add new jsonPackageManifestPath value to asYaml/load/reset
Browse files Browse the repository at this point in the history
  • Loading branch information
rock88 committed May 19, 2024
1 parent e628511 commit 453bc52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Shared/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ public final class Configuration {
config[$retainCodableProperties.key] = retainCodableProperties
}

if $jsonPackageManifestPath.hasNonDefaultValue {
config[$jsonPackageManifestPath.key] = jsonPackageManifestPath
}

return try Yams.dump(object: config)
}

Expand Down Expand Up @@ -340,6 +344,8 @@ public final class Configuration {
$relativeResults.assign(value)
case $retainCodableProperties.key:
$retainCodableProperties.assign(value)
case $jsonPackageManifestPath.key:
$jsonPackageManifestPath.assign(value)
default:
logger.warn("\(path.string): invalid key '\(key)'")
}
Expand Down Expand Up @@ -380,6 +386,7 @@ public final class Configuration {
$buildArguments.reset()
$relativeResults.reset()
$retainCodableProperties.reset()
$jsonPackageManifestPath.reset()
}

// MARK: - Helpers
Expand Down

0 comments on commit 453bc52

Please sign in to comment.