From 453bc5226cd7d75ebd1054bf9ea9f5949bf6d8fd Mon Sep 17 00:00:00 2001 From: rock88 Date: Sun, 19 May 2024 19:38:08 +0300 Subject: [PATCH] Add new jsonPackageManifestPath value to asYaml/load/reset --- Sources/Shared/Configuration.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/Shared/Configuration.swift b/Sources/Shared/Configuration.swift index 19c40f19d..f07d8d829 100644 --- a/Sources/Shared/Configuration.swift +++ b/Sources/Shared/Configuration.swift @@ -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) } @@ -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)'") } @@ -380,6 +386,7 @@ public final class Configuration { $buildArguments.reset() $relativeResults.reset() $retainCodableProperties.reset() + $jsonPackageManifestPath.reset() } // MARK: - Helpers