@halospv3/hce.shared-config 3.4.5 → 3.4.6-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/dotnet/.github/workflows/_unit_test.yml +1 -1
- package/mjs/CaseInsensitiveMap.d.mts +15 -0
- package/mjs/CaseInsensitiveMap.d.mts.map +1 -0
- package/mjs/CaseInsensitiveMap.mjs +2 -33
- package/mjs/CaseInsensitiveMap.mjs.map +1 -1
- package/mjs/commitlintConfig.d.mts +15 -0
- package/mjs/commitlintConfig.d.mts.map +1 -0
- package/mjs/commitlintConfig.mjs +2 -13
- package/mjs/commitlintConfig.mjs.map +1 -1
- package/mjs/debug.d.mts +9 -0
- package/mjs/debug.d.mts.map +1 -0
- package/mjs/debug.mjs +2 -9
- package/mjs/debug.mjs.map +1 -1
- package/mjs/dotnet/GithubNugetRegistryInfo.d.mts +42 -0
- package/mjs/dotnet/GithubNugetRegistryInfo.d.mts.map +1 -0
- package/mjs/dotnet/GithubNugetRegistryInfo.mjs +2 -43
- package/mjs/dotnet/GithubNugetRegistryInfo.mjs.map +1 -1
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.mts +65 -0
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.mts.map +1 -0
- package/mjs/dotnet/GitlabNugetRegistryInfo.mjs +2 -99
- package/mjs/dotnet/GitlabNugetRegistryInfo.mjs.map +1 -1
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.mts +1 -0
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs +2 -44
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs.map +1 -1
- package/mjs/dotnet/MSBuildProject.d.mts +267 -0
- package/mjs/dotnet/MSBuildProject.d.mts.map +1 -0
- package/mjs/dotnet/MSBuildProject.mjs +3 -490
- package/mjs/dotnet/MSBuildProject.mjs.map +1 -1
- package/mjs/dotnet/MSBuildProjectProperties.d.mts +172 -0
- package/mjs/dotnet/MSBuildProjectProperties.d.mts.map +1 -0
- package/mjs/dotnet/MSBuildProjectProperties.mjs +2 -260
- package/mjs/dotnet/MSBuildProjectProperties.mjs.map +1 -1
- package/mjs/dotnet/NugetProjectProperties.d.mts +381 -0
- package/mjs/dotnet/NugetProjectProperties.d.mts.map +1 -0
- package/mjs/dotnet/NugetProjectProperties.mjs +2 -577
- package/mjs/dotnet/NugetProjectProperties.mjs.map +1 -1
- package/mjs/dotnet/NugetRegistryInfo.d.mts +387 -0
- package/mjs/dotnet/NugetRegistryInfo.d.mts.map +1 -0
- package/mjs/dotnet/NugetRegistryInfo.mjs +4 -752
- package/mjs/dotnet/NugetRegistryInfo.mjs.map +1 -1
- package/mjs/dotnet/helpers.d.mts +66 -0
- package/mjs/dotnet/helpers.d.mts.map +1 -0
- package/mjs/dotnet/helpers.mjs +2 -354
- package/mjs/dotnet/helpers.mjs.map +1 -1
- package/mjs/dotnet/index.d.mts +8 -0
- package/mjs/dotnet/index.mjs +1 -9
- package/mjs/dotnet.d.mts +8 -0
- package/mjs/dotnet.mjs +1 -9
- package/mjs/eslintConfig.d.mts +7 -0
- package/mjs/eslintConfig.d.mts.map +1 -0
- package/mjs/eslintConfig.mjs +2 -64
- package/mjs/eslintConfig.mjs.map +1 -1
- package/mjs/index.d.mts +2 -0
- package/mjs/index.mjs +1 -4
- package/mjs/insertPlugins.d.mts +22 -0
- package/mjs/insertPlugins.d.mts.map +1 -0
- package/mjs/insertPlugins.mjs +2 -73
- package/mjs/insertPlugins.mjs.map +1 -1
- package/mjs/semantic-release__commit-analyzer.d.mts +44 -0
- package/mjs/semantic-release__commit-analyzer.d.mts.map +1 -0
- package/mjs/semantic-release__exec.d.mts +17 -0
- package/mjs/semantic-release__exec.d.mts.map +1 -0
- package/mjs/semantic-release__git.d.mts +83 -0
- package/mjs/semantic-release__git.d.mts.map +1 -0
- package/mjs/semantic-release__github.d.mts +141 -0
- package/mjs/semantic-release__github.d.mts.map +1 -0
- package/mjs/semanticReleaseConfig.d.mts +94 -0
- package/mjs/semanticReleaseConfig.d.mts.map +1 -0
- package/mjs/semanticReleaseConfig.mjs +2 -63
- package/mjs/semanticReleaseConfig.mjs.map +1 -1
- package/mjs/semanticReleaseConfigDotnet.d.mts +96 -0
- package/mjs/semanticReleaseConfigDotnet.d.mts.map +1 -0
- package/mjs/semanticReleaseConfigDotnet.mjs +7 -274
- package/mjs/semanticReleaseConfigDotnet.mjs.map +1 -1
- package/mjs/setupGitPluginSpec.d.mts +18 -0
- package/mjs/setupGitPluginSpec.d.mts.map +1 -0
- package/mjs/setupGitPluginSpec.default.d.mts +13 -0
- package/mjs/setupGitPluginSpec.default.d.mts.map +1 -0
- package/mjs/setupGitPluginSpec.default.mjs +4 -0
- package/mjs/setupGitPluginSpec.default.mjs.map +1 -0
- package/mjs/setupGitPluginSpec.mjs +2 -144
- package/mjs/setupGitPluginSpec.mjs.map +1 -1
- package/mjs/utils/Exact.d.mts +18 -0
- package/mjs/utils/Exact.d.mts.map +1 -0
- package/mjs/utils/Exact.mjs +2 -75
- package/mjs/utils/Exact.mjs.map +1 -1
- package/mjs/utils/GracefulRecursion.d.mts +14 -0
- package/mjs/utils/GracefulRecursion.d.mts.map +1 -0
- package/mjs/utils/env.d.mts +28 -0
- package/mjs/utils/env.d.mts.map +1 -0
- package/mjs/utils/env.mjs +2 -47
- package/mjs/utils/env.mjs.map +1 -1
- package/mjs/utils/execAsync.d.mts +40 -0
- package/mjs/utils/execAsync.d.mts.map +1 -0
- package/mjs/utils/execAsync.mjs +10 -59
- package/mjs/utils/execAsync.mjs.map +1 -1
- package/mjs/utils/isError.d.mts +14 -0
- package/mjs/utils/isError.d.mts.map +1 -0
- package/mjs/utils/isError.mjs +2 -19
- package/mjs/utils/isError.mjs.map +1 -1
- package/mjs/utils/miscTypes.d.mts +16 -0
- package/mjs/utils/miscTypes.d.mts.map +1 -0
- package/mjs/utils/miscTypes.mjs +2 -10
- package/mjs/utils/miscTypes.mjs.map +1 -1
- package/mjs/utils/reflection/FunctionLike.d.mts +17 -0
- package/mjs/utils/reflection/FunctionLike.d.mts.map +1 -0
- package/mjs/utils/reflection/GetterDescriptor.d.mts +11 -0
- package/mjs/utils/reflection/GetterDescriptor.d.mts.map +1 -0
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mts +26 -0
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mts +17 -0
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mts +18 -0
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/OwnKeyOf.d.mts +15 -0
- package/mjs/utils/reflection/OwnKeyOf.d.mts.map +1 -0
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mts +15 -0
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mts +13 -0
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mts.map +1 -0
- package/mjs/utils/reflection/filterForGetters.d.mts +11 -0
- package/mjs/utils/reflection/filterForGetters.d.mts.map +1 -0
- package/mjs/utils/reflection/filterForGetters.mjs +2 -27
- package/mjs/utils/reflection/filterForGetters.mjs.map +1 -1
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.mts +26 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.mts.map +1 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs +2 -34
- package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs.map +1 -1
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.mts +51 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.mts.map +1 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs +2 -72
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs.map +1 -1
- package/mjs/utils/reflection/getPrototypeChainOf.d.mts +19 -0
- package/mjs/utils/reflection/getPrototypeChainOf.d.mts.map +1 -0
- package/mjs/utils/reflection/getPrototypeChainOf.mjs +2 -55
- package/mjs/utils/reflection/getPrototypeChainOf.mjs.map +1 -1
- package/mjs/utils/reflection/getPrototypeOf.d.mts +12 -0
- package/mjs/utils/reflection/getPrototypeOf.d.mts.map +1 -0
- package/mjs/utils/reflection/getPrototypeOf.mjs +2 -10
- package/mjs/utils/reflection/getPrototypeOf.mjs.map +1 -1
- package/mjs/utils/reflection/inheritance.d.mts +173 -0
- package/mjs/utils/reflection/inheritance.d.mts.map +1 -0
- package/mjs/utils/reflection/inheritance.mjs +2 -148
- package/mjs/utils/reflection/inheritance.mjs.map +1 -1
- package/mjs/utils/reflection/isConstructor.d.mts +20 -0
- package/mjs/utils/reflection/isConstructor.d.mts.map +1 -0
- package/mjs/utils/reflection/isConstructor.mjs +2 -63
- package/mjs/utils/reflection/isConstructor.mjs.map +1 -1
- package/mjs/utils/reflection/isGetterDescriptor.d.mts +13 -0
- package/mjs/utils/reflection/isGetterDescriptor.d.mts.map +1 -0
- package/mjs/utils/reflection/isGetterDescriptor.mjs +2 -12
- package/mjs/utils/reflection/isGetterDescriptor.mjs.map +1 -1
- package/mjs/utils/reflection/listOwnGetters.d.mts +29 -0
- package/mjs/utils/reflection/listOwnGetters.d.mts.map +1 -0
- package/mjs/utils/reflection/listOwnGetters.mjs +2 -39
- package/mjs/utils/reflection/listOwnGetters.mjs.map +1 -1
- package/mjs/utils/reflection.d.mts +18 -0
- package/mjs/utils/reflection.mjs +1 -10
- package/package.json +102 -65
- package/src/debug.ts +1 -0
- package/src/dotnet/GithubNugetRegistryInfo.ts +4 -4
- package/src/dotnet/GitlabNugetRegistryInfo.ts +5 -5
- package/src/dotnet/IsNextVersionAlreadyPublished.cli.ts +2 -1
- package/src/dotnet/MSBuildProject.ts +8 -7
- package/src/dotnet/MSBuildProjectProperties.ts +4 -3
- package/src/dotnet/NugetProjectProperties.ts +4 -4
- package/src/dotnet/NugetRegistryInfo.ts +9 -8
- package/src/dotnet/helpers.ts +5 -4
- package/src/dotnet/index.ts +8 -8
- package/src/dotnet.ts +1 -1
- package/src/index.ts +1 -1
- package/src/semanticReleaseConfig.ts +5 -1
- package/src/semanticReleaseConfigDotnet.ts +10 -8
- package/src/setupGitPluginSpec.default.ts +22 -0
- package/src/setupGitPluginSpec.ts +4 -21
- package/src/tsconfig.json +1 -2
- package/src/utils/execAsync.ts +1 -1
- package/src/utils/reflection/InstancePropertyDescriptorMap.d.ts +1 -1
- package/src/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.ts +2 -2
- package/src/utils/reflection/OwnGetterDescriptorMap.d.ts +2 -2
- package/src/utils/reflection/filterForGetters.ts +5 -5
- package/src/utils/reflection/getOwnPropertyDescriptors.ts +4 -4
- package/src/utils/reflection/getOwnPropertyDescriptorsRecursively.ts +12 -12
- package/src/utils/reflection/getPrototypeChainOf.ts +5 -5
- package/src/utils/reflection/getPrototypeOf.ts +1 -1
- package/src/utils/reflection/inheritance.ts +5 -5
- package/src/utils/reflection/isGetterDescriptor.ts +1 -1
- package/src/utils/reflection/listOwnGetters.ts +6 -6
- package/src/utils/reflection.ts +17 -17
- package/tsconfig.base.json +2 -2
- package/mjs/CaseInsensitiveMap.d.ts +0 -12
- package/mjs/CaseInsensitiveMap.d.ts.map +0 -1
- package/mjs/commitlintConfig.d.ts +0 -12
- package/mjs/commitlintConfig.d.ts.map +0 -1
- package/mjs/debug.d.ts +0 -6
- package/mjs/debug.d.ts.map +0 -1
- package/mjs/dotnet/GithubNugetRegistryInfo.d.ts +0 -38
- package/mjs/dotnet/GithubNugetRegistryInfo.d.ts.map +0 -1
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts +0 -61
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts.map +0 -1
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts +0 -2
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts.map +0 -1
- package/mjs/dotnet/MSBuildProject.d.ts +0 -264
- package/mjs/dotnet/MSBuildProject.d.ts.map +0 -1
- package/mjs/dotnet/MSBuildProjectProperties.d.ts +0 -170
- package/mjs/dotnet/MSBuildProjectProperties.d.ts.map +0 -1
- package/mjs/dotnet/NugetProjectProperties.d.ts +0 -379
- package/mjs/dotnet/NugetProjectProperties.d.ts.map +0 -1
- package/mjs/dotnet/NugetRegistryInfo.d.ts +0 -384
- package/mjs/dotnet/NugetRegistryInfo.d.ts.map +0 -1
- package/mjs/dotnet/helpers.d.ts +0 -63
- package/mjs/dotnet/helpers.d.ts.map +0 -1
- package/mjs/dotnet/index.d.ts +0 -9
- package/mjs/dotnet/index.d.ts.map +0 -1
- package/mjs/dotnet/index.mjs.map +0 -1
- package/mjs/dotnet.d.ts +0 -2
- package/mjs/dotnet.d.ts.map +0 -1
- package/mjs/dotnet.mjs.map +0 -1
- package/mjs/eslintConfig.d.ts +0 -4
- package/mjs/eslintConfig.d.ts.map +0 -1
- package/mjs/index.d.ts +0 -3
- package/mjs/index.d.ts.map +0 -1
- package/mjs/index.mjs.map +0 -1
- package/mjs/insertPlugins.d.ts +0 -18
- package/mjs/insertPlugins.d.ts.map +0 -1
- package/mjs/semantic-release__commit-analyzer.d.mjs +0 -2
- package/mjs/semantic-release__commit-analyzer.d.mjs.map +0 -1
- package/mjs/semantic-release__exec.d.mjs +0 -2
- package/mjs/semantic-release__exec.d.mjs.map +0 -1
- package/mjs/semantic-release__git.d.mjs +0 -2
- package/mjs/semantic-release__git.d.mjs.map +0 -1
- package/mjs/semantic-release__github.d.mjs +0 -2
- package/mjs/semantic-release__github.d.mjs.map +0 -1
- package/mjs/semanticReleaseConfig.d.ts +0 -97
- package/mjs/semanticReleaseConfig.d.ts.map +0 -1
- package/mjs/semanticReleaseConfigDotnet.d.ts +0 -112
- package/mjs/semanticReleaseConfigDotnet.d.ts.map +0 -1
- package/mjs/setupGitPluginSpec.d.ts +0 -22
- package/mjs/setupGitPluginSpec.d.ts.map +0 -1
- package/mjs/utils/Exact.d.ts +0 -20
- package/mjs/utils/Exact.d.ts.map +0 -1
- package/mjs/utils/GracefulRecursion.d.mjs +0 -2
- package/mjs/utils/GracefulRecursion.d.mjs.map +0 -1
- package/mjs/utils/env.d.ts +0 -24
- package/mjs/utils/env.d.ts.map +0 -1
- package/mjs/utils/execAsync.d.ts +0 -37
- package/mjs/utils/execAsync.d.ts.map +0 -1
- package/mjs/utils/isError.d.ts +0 -11
- package/mjs/utils/isError.d.ts.map +0 -1
- package/mjs/utils/miscTypes.d.ts +0 -12
- package/mjs/utils/miscTypes.d.ts.map +0 -1
- package/mjs/utils/reflection/FunctionLike.d.mjs +0 -2
- package/mjs/utils/reflection/FunctionLike.d.mjs.map +0 -1
- package/mjs/utils/reflection/GetterDescriptor.d.mjs +0 -2
- package/mjs/utils/reflection/GetterDescriptor.d.mjs.map +0 -1
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/OwnKeyOf.d.mjs +0 -2
- package/mjs/utils/reflection/OwnKeyOf.d.mjs.map +0 -1
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs +0 -2
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs.map +0 -1
- package/mjs/utils/reflection/filterForGetters.d.ts +0 -7
- package/mjs/utils/reflection/filterForGetters.d.ts.map +0 -1
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts +0 -22
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts.map +0 -1
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts +0 -56
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts.map +0 -1
- package/mjs/utils/reflection/getPrototypeChainOf.d.ts +0 -16
- package/mjs/utils/reflection/getPrototypeChainOf.d.ts.map +0 -1
- package/mjs/utils/reflection/getPrototypeOf.d.ts +0 -8
- package/mjs/utils/reflection/getPrototypeOf.d.ts.map +0 -1
- package/mjs/utils/reflection/inheritance.d.ts +0 -180
- package/mjs/utils/reflection/inheritance.d.ts.map +0 -1
- package/mjs/utils/reflection/isConstructor.d.ts +0 -17
- package/mjs/utils/reflection/isConstructor.d.ts.map +0 -1
- package/mjs/utils/reflection/isGetterDescriptor.d.ts +0 -9
- package/mjs/utils/reflection/isGetterDescriptor.d.ts.map +0 -1
- package/mjs/utils/reflection/listOwnGetters.d.ts +0 -26
- package/mjs/utils/reflection/listOwnGetters.d.ts.map +0 -1
- package/mjs/utils/reflection.d.ts +0 -18
- package/mjs/utils/reflection.d.ts.map +0 -1
- package/mjs/utils/reflection.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NugetProjectProperties.mjs","sources":["../../src/dotnet/NugetProjectProperties.ts"],"names":[],"mappings":";;;;;;;;AAKA,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC;AAClD,MAAM,wBAAwB,GAAG,IAAI,CAAC,4BAA4B,CAAC;;AAEnE;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,sBAAsB,SAAS,wBAAwB,CAAC;AACrE;AACA,EAAE,WAAW;AACb,EAAE,gCAAgC;AAClC,EAAE,eAAe;AACjB,EAAE,UAAU;AAC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U,CAAC;AACvF,EAAE;AACF,EAAE,WAAW,wBAAwB,GAAG;AACxC,IAAI,OAAO,IAAI,CAAC,yBAAyB,KAAK,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,cAAc,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AACrH,EAAE;AACF,EAAE,WAAW,aAAa,GAAG;AAC7B,IAAI,OAAO,IAAI,CAAC,cAAc,KAAK,cAAc,CAAC,sBAAsB,EAAE,QAAQ,CAAC;AACnF,EAAE;AACF,EAAE,WAAW,sBAAsB,GAAG;AACtC,IAAI,OAAO,IAAI,CAAC,uBAAuB,KAAK,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACjH,EAAE;AACF;;AAEA;;;;"}
|
|
1
|
+
{"version":3,"file":"NugetProjectProperties.mjs","names":[],"sources":["../../src/dotnet/NugetProjectProperties.ts"],"sourcesContent":["import { type } from 'arktype';\nimport { CaseInsensitiveMap } from '../CaseInsensitiveMap.ts';\nimport {\n tBooleanString,\n tEmptyOrBooleanString,\n type BooleanString,\n type EmptyOrBooleanString,\n} from '../utils/miscTypes.ts';\nimport {\n getPrototypesChainOf,\n listOwnGetters,\n type ClassLike,\n type ProtoChainOfClass,\n type WithProto,\n} from '../utils/reflection.ts';\nimport { MSBuildProjectProperties, type Class_MSBPP } from './MSBuildProjectProperties.ts';\n\nconst Type_RepositoryType: type<'' | 'git' | 'tfs'> = type('\"\"|\"git\"|\"tfs\"');\nconst Type_SymbolPackageFormat: type<'symbols.nupkg' | 'snupkg'> = type('\"symbols.nupkg\" | \"snupkg\"');\n\n/**\n * A readonly record of a .csproj or .fsproj with NuGet configuration properties in\n * addition to those specified by {@link MSBuildProjectProperties}. This record\n * should be considered immutable. A new instance should be constructed from MSBuild's evaluation output.\n * @see https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target-inputs\n */\nexport class NugetProjectProperties extends MSBuildProjectProperties {\n // #region private\n private _isPackable: BooleanString | undefined;\n private _suppressDependenciesWhenPacking: BooleanString | undefined;\n private _packageVersion: string | undefined;\n private _packageId: string | undefined;\n private _packageDescription: string | undefined;\n private _authors: string | undefined;\n private _copyright: string | undefined;\n private _packageRequireLicenseAcceptance: BooleanString | undefined;\n private _developmentDependency: EmptyOrBooleanString | undefined;\n private _packageLicenseExpression: string | undefined;\n private _packageLicenseFile: string | undefined;\n private _packageProjectUrl: string | undefined;\n private _packageIcon: string | undefined;\n private _packageReleaseNotes: string | undefined;\n private _packageReadmeFile: string | undefined;\n private _packageTags: string | undefined;\n private _packageOutputPath: string | undefined;\n private _includeSymbols: EmptyOrBooleanString | undefined;\n private _includeSource: EmptyOrBooleanString | undefined;\n private _packageType: string | undefined;\n private _isTool: EmptyOrBooleanString | undefined;\n private _repositoryUrl: string | undefined;\n private _repositoryType: '' | 'git' | 'tfs' | undefined;\n private _repositoryCommit: string | undefined;\n private _symbolPackageFormat: 'symbols.nupkg' | 'snupkg' | undefined;\n private _noPackageAnalysis: EmptyOrBooleanString | undefined;\n private _minClientVersion: string | undefined;\n private _includeBuiltOutput: BooleanString | undefined;\n private _includeContentInPack: BooleanString | undefined;\n private _buildOutputTargetFolder: string | undefined;\n private _contentTargetFolders: string | undefined;\n private _nuspecFile: string | undefined;\n private _nuspecBasePath: string | undefined;\n private _nuspecProperties: string | undefined;\n private _title: string | undefined;\n private _company: string | undefined;\n private _product: string | undefined;\n // #endregion private\n\n /**\n * Initialize a readonly record of an MSBuild project's properties, including those related to NuGet.\n * @param msbuildProjectFullPath See {@link NugetProjectProperties.MSBuildProjectFullPath}\n * @param properties The dictionary returned by MSBuild's `-getProperty:propname,...` argument\n */\n constructor(\n msbuildProjectFullPath: string,\n properties: CaseInsensitiveMap<string, string>,\n ) {\n /**\n * names of properties to consume in this constructor instead of its super.\n * These are the names of getters, lowercased.\n */\n const keysToMoveOut = NPPGetterNames.InstanceGetters;\n /** Entries to remove from {@link properties} and apply to `this` after calling `super` */\n const consumables = new CaseInsensitiveMap<string, string>();\n // move property by key from `properties` to `consumables`. The types of keys and values in `properties` do not matter here.\n for (const key of keysToMoveOut) {\n const value = NugetProjectProperties.getAndForget(properties, key);\n if (value !== undefined)\n consumables.set(key, value);\n }\n\n // Pass the remainder to super\n super(msbuildProjectFullPath, properties);\n\n /** convert values to strings */\n for (const [value, key] of consumables.entries()) {\n if (typeof value !== 'string')\n consumables.set(key, String(value));\n }\n\n const _getAndForget = (key: string) => NugetProjectProperties.getAndForget(consumables, key);\n let data;\n this._authors = _getAndForget('Authors');\n this._buildOutputTargetFolder = _getAndForget('BuildOutputTargetFolder');\n this._company = _getAndForget('Company');\n this._contentTargetFolders = _getAndForget('ContentTargetFolders');\n this._copyright = _getAndForget('Copyright');\n if (tEmptyOrBooleanString.allows(data = _getAndForget('DevelopmentDependency')))\n this._developmentDependency = data;\n if (tBooleanString.allows(data = _getAndForget('IncludeBuiltOutput')))\n this._includeBuiltOutput = data;\n if (tBooleanString.allows(data = _getAndForget('IncludeContentInPack')))\n this._includeContentInPack = data;\n if (tEmptyOrBooleanString.allows(data = _getAndForget('IncludeSource')))\n this._includeSource = data;\n if (tEmptyOrBooleanString.allows(data = _getAndForget('IncludeSymbols')))\n this._includeSymbols = data;\n if (tBooleanString.allows(data = _getAndForget('IsPackable')))\n this._isPackable = data;\n if (tEmptyOrBooleanString.allows(data = _getAndForget('IsTool')))\n this._isTool = data;\n this._minClientVersion = _getAndForget('MinClientVersion');\n if (tEmptyOrBooleanString.allows(data = _getAndForget('NoPackageAnalysis')))\n this._noPackageAnalysis = data;\n this._nuspecBasePath = _getAndForget('NuspecBasePath');\n this._nuspecFile = _getAndForget('NuspecFile');\n this._nuspecProperties = _getAndForget('NuspecProperties');\n this._packageDescription = _getAndForget('PackageDescription');\n this._packageIcon = _getAndForget('PackageIcon');\n this._packageId = _getAndForget('PackageId');\n this._packageLicenseExpression = _getAndForget('PackageLicenseExpression');\n this._packageLicenseFile = _getAndForget('PackageLicenseFile');\n this._packageOutputPath = _getAndForget('PackageOutputPath');\n this._packageProjectUrl = _getAndForget('PackageProjectUrl');\n this._packageReadmeFile = _getAndForget('PackageReadmeFile');\n this._packageReleaseNotes = _getAndForget('PackageReleaseNotes');\n if (tBooleanString.allows(data = _getAndForget('PackageRequireLicenseAcceptance')))\n this._packageRequireLicenseAcceptance = data;\n this._packageTags = _getAndForget('PackageTags');\n this._packageType = _getAndForget('PackageType');\n this._packageVersion = _getAndForget('PackageVersion');\n this._product = _getAndForget('Product');\n this._repositoryCommit = _getAndForget('RepositoryCommit');\n if (Type_RepositoryType.allows(data = _getAndForget('RepositoryType')))\n this._repositoryType = data;\n this._repositoryUrl = _getAndForget('RepositoryUrl');\n if (tBooleanString.allows(data = _getAndForget('SuppressDependenciesWhenPacking')))\n this._suppressDependenciesWhenPacking = data;\n if (Type_SymbolPackageFormat.allows(data = _getAndForget('SymbolPackageFormat')))\n this._symbolPackageFormat = data;\n this._title = _getAndForget('Title');\n }\n\n /**\n * @returns A string-formatted boolean. If 'false', the project's `Pack`\n * Target (if available) will no-op.\n *\n * Default: `\"true\"`\n */\n get IsPackable(): BooleanString {\n return this._isPackable ??= 'true';\n }\n\n /**\n * @returns `\"true\"` or `\"false\"`. If \"true\", the package's dependencies are\n * excluded from the generated NuGet package.\n *\n * Default: `\"false\"`\n */\n get SuppressDependenciesWhenPacking(): BooleanString {\n return this._suppressDependenciesWhenPacking ??= 'false';\n }\n\n /**\n * @returns A semver-compatible version number in the form\n * Major.Minor.Patch[-Suffix], where -Suffix identifies prerelease versions.\n *\n * Default: {@link Version}\n * @example \"1.0.0\", \"1.0.0-beta\", \"1.0.0-beta-00345\"\n */\n get PackageVersion(): string {\n return this._packageVersion ??= this.Version;\n }\n\n /**\n * @returns The ID of the resulting NuGet package.\n *\n * Default: {@link AssemblyName}\n */\n get PackageId(): string {\n return this._packageId ??= this.AssemblyName;\n }\n\n /**\n * @returns A long description of the package for UI display.\n *\n * Default: {@link Description}\n */\n get PackageDescription(): string {\n return this._packageDescription ??= this.Description;\n }\n\n /**\n * @returns A semicolon-separated list of the package's authors, matching the\n * profile names on nuget.org. These are displayed in the NuGet Gallery on\n * nuget.org and are used to cross-reference packages by the same authors.\n *\n * Default: {@link AssemblyName `AssemblyName`}\n */\n get Authors(): string {\n return this._authors ??= this.AssemblyName;\n }\n\n /**\n * @returns Copyright details for the package.\n *\n * Default: `''`\n */\n get Copyright(): string {\n return this._copyright ??= '';\n }\n\n /**\n * @returns A string-formatted boolean. If `\"true\"`, the client must prompt the\n * consumer to accept the package license before installing the package.\n *\n * Default: `\"false\"`\n */\n get PackageRequireLicenseAcceptance(): BooleanString {\n return this._packageRequireLicenseAcceptance ??= 'false';\n }\n\n /**\n * This boolean only affects the package created from the project.\n * @see\n * {@link https://github.com/NuGet/Home/wiki/DevelopmentDependency-support-for-PackageReference DevelopmentDependency support for PackageReference}\n * @returns A string-formatted boolean. If `\"true\"`, the package is marked as\n * a development-only dependency and is prevented from being included as a\n * dependency in other packages. With PackageReference (NuGet 4.8+), this flag\n * also means that compile-time assets are excluded from compilation.\n *\n * Default: `''` (`false`-y)\n */\n get DevelopmentDependency(): EmptyOrBooleanString {\n return this._developmentDependency ??= '';\n }\n\n /**\n * @returns The {@link https://spdx.org/licenses/ SPDX license identifier} or\n * expression.\n *\n * Default: `''`\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#packing-a-license-expression-or-a-license-file Packing a license expression or a license file}\n * @example \"Apache-2.0\"\n */\n get PackageLicenseExpression(): string {\n return this._packageLicenseExpression ??= '';\n }\n\n /**\n * @returns The path to a license file within the package if you're using a\n * custom license or a license that hasn't been assigned an SPDX identifier.\n *\n * Default: `''`\n */\n get PackageLicenseFile(): string {\n return this._packageLicenseFile ??= '';\n }\n\n /**\n * @returns The package's project URL.\n *\n * Default: `''`\n */\n get PackageProjectUrl(): string {\n return this._packageProjectUrl ??= '';\n }\n\n /**\n * @returns The package icon path, relative to the root of the package.\n *\n * Default: `''`\n * @description You must pack the referenced icon image file. By default, it\n * is not packed.\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#packing-an-icon-image-file Packing an icon image file},\n * {@link https://learn.microsoft.com/en-us/nuget/reference/nuspec#icon icon metadata}\n */\n get PackageIcon(): string {\n return this._packageIcon ??= '';\n }\n\n /**\n * @returns Release notes for the package.\n *\n * Default: `''`\n */\n get PackageReleaseNotes(): string {\n return this._packageReleaseNotes ??= '';\n }\n\n /**\n * @returns The path of the package's README file relative to the package's\n * root.\n *\n * Default: `''`\n * @description You must pack the referenced readme file. By default, it is\n * not packed.\n */\n get PackageReadmeFile(): string {\n return this._packageReadmeFile ??= '';\n }\n\n /**\n * @returns A semicolon-delimited list of tags that designates the package.\n *\n * Default : `''`\n */\n get PackageTags(): string {\n return this._packageTags ??= '';\n }\n\n /**\n * @returns A relative or absolute path determining the where the packed\n * package will be dropped.\n *\n * Default: {@link OutputPath}\n */\n get PackageOutputPath(): string {\n return this._packageOutputPath ??= this.OutputPath;\n }\n\n /**\n * @returns A string-formatted boolean indicating whether the package should\n * create an additional symbols package when the project is packed. The\n * symbols package's format is controlled by the `SymbolPackageFormat`\n * property.\n *\n * Default: `''` (false-y)\n * @description When using `MSBuild -t:pack -p:IncludeSymbols=true`, the\n * corresponding .pdb files are copied along with other output files (.dll,\n * .exe, .winmd, .xml, .json, .pri). Note that setting `IncludeSymbols=true`\n * creates a regular package and a symbols package.\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#includesymbols IncludeSymbols}\n */\n get IncludeSymbols(): EmptyOrBooleanString {\n return this._includeSymbols ??= '';\n }\n\n /**\n * @returns A string-formatted boolean indicating whether the pack process\n * should create a source package. The source package contains the library's\n * source code as well as PDB files. Source files are put under the\n * `src/ProjectName` directory in the resulting package file.\n *\n * Default: `''` (false-y)\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#includesource IncludeSource}\n */\n get IncludeSource(): EmptyOrBooleanString {\n return this._includeSource ??= '';\n }\n\n /**\n * @returns A semicolon-separated list of tags indicating the package's\n * intended use. Custom types are allowed, but cannot be installed via Visual\n * Studio nor nuget.exe. See https://github.com/NuGet/Home/issues/10468.\n *\n * Package types can be version e.g. `PackageType1, 1.0.0.0;PackageType2`\n *\n * Default: `''`\n * @example \"Dependency \", \"DotnetTool\", \"MSBuildSdk\", \"Template\"\n * @see {@link https://learn.microsoft.com/en-us/nuget/create-packages/set-package-type?tabs=dotnet Set a NuGet package type}\n */\n get PackageType(): string {\n return this._packageType ??= '';\n }\n\n /**\n * @returns A string-formatted boolean specifying whether all output files are\n * copied to the *tools* folder instead of the *lib* folder.\n *\n * Default: `''` (false-y)\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#istool IsTool}\n */\n get IsTool(): EmptyOrBooleanString {\n return this._isTool ??= '';\n }\n\n /**\n * @returns The repository URL used to clone or retrieve source code.\n *\n * Default: `''`\n * @example \"https://github.com/NuGet/NuGet.Client.git\".\n */\n get RepositoryUrl(): string {\n return this._repositoryUrl ??= '';\n }\n\n /**\n * @returns The repository type.\n *\n * Default: `''`\n * @example \"git\", \"fts\"\n */\n get RepositoryType(): typeof Type_RepositoryType.inferOut {\n return this._repositoryType ??= '';\n }\n\n /**\n * @returns The (optional) repository commit or changeset to indicate which\n * source the package was built against. {@link RepositoryUrl} must also be\n * specified for this property to be included.\n *\n * Default: `''`\n * @description This is evaluated only during the \"Pack\" and \"Publish\"\n * Targets. If using nuget.exe or Visual Studio, NuGet 4.7.0 or later is\n * required.\n * @example \"0e4d1b598f350b3dc675018d539114d1328189ef\"\n */\n get RepositoryCommit(): string {\n return this._repositoryCommit ??= '';\n }\n\n /**\n * @returns A string specifying the format of the symbols package. If\n * \"symbols.nupkg\", a legacy symbols package is created with a .symbols.nupkg\n * extension containing PDBs, DLLs, and other output files. If \"snupkg\", a\n * snupkg symbol package is created containing the portable PDBs. The default\n * is \"symbols.nupkg\".\n *\n * Default: \"symbols.nupkg\"\n * @example \"symbols.nupkg\", \"snupkg\"\n */\n get SymbolPackageFormat(): typeof Type_SymbolPackageFormat.inferOut {\n return this._symbolPackageFormat ??= 'symbols.nupkg';\n }\n\n /**\n * @returns A string-formatted boolean specifying that `pack` should not run\n * package analysis after building the package.\n *\n * Default: `''` (false-y)\n */\n get NoPackageAnalysis(): EmptyOrBooleanString {\n return this._noPackageAnalysis ??= '';\n }\n\n /**\n * @returns A string specifying the minimum version of the NuGet client that\n * can install this package, enforced by nuget.exe and the Visual Studio\n * Package Manager.\n *\n * Default: `''`\n */\n get MinClientVersion(): string {\n return this._minClientVersion ??= '';\n }\n\n /**\n * @returns A string-formatted boolean value specifying whether the build\n * output assemblies should be packed into the .nupkg file or not.\n *\n * Default: `\"true\"`\n */\n get IncludeBuildOutput(): BooleanString {\n return this._includeBuiltOutput ??= 'true';\n }\n\n /**\n * @returns A string-formatted boolean specifying whether any items that have\n * a type of Content are included in the resulting package automatically.\n *\n * Default: `\"true\"`\n */\n get IncludeContentInPack(): BooleanString {\n return this._includeContentInPack ??= 'true';\n }\n\n /**\n * @returns The output directory of the output assemblies relative to the root\n * of the package. The output assemblies (and other output files) are copied\n * into their respective framework folders.\n *\n * Default: `''`\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#output-assemblies Output assemblies}\n */\n get BuildOutputTargetFolder(): string {\n return this._buildOutputTargetFolder ??= '';\n }\n\n /**\n * @returns A semicolon-separated list of default locations of where all the\n * content files should go if `PackagePath` is not specified for them.\n *\n * Default: `\"content;contentFiles\"`\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#including-content-in-a-package Including content in a package}\n */\n get ContentTargetFolders(): string {\n return this._contentTargetFolders ??= 'content;contentFiles';\n }\n\n /**\n * @returns The relative or absolute path to the `*.nuspec` file being used\n * for packing. If specified, it's used **exclusively** for packaging\n * information, and any information in the projects is not used.\n *\n * Default: `''`\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#packing-using-a-nuspec-file Packing using a .nuspec}\n */\n get NuspecFile(): string {\n return this._nuspecFile ??= '';\n }\n\n /**\n * @returns The base path for the *.nuspec* file.\n *\n * Default: `''`\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#packing-using-a-nuspec-file Packing using a .nuspec}\n */\n get NuspecBasePath(): string {\n return this._nuspecBasePath ??= '';\n }\n\n /**\n * @returns A semicolon-separated list of key=value pairs.\n *\n * Default: `''`\n * @see\n * {@link https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#packing-using-a-nuspec-file Packing using a .nuspec}\n */\n get NuspecProperties(): string {\n return this._nuspecProperties ??= '';\n }\n\n /**\n * @returns A human-friendly title of the package, typically used in UI displays as\n * on nuget.org and the Package Manager in Visual Studio.\n * Default: {@link PackageId}\n */\n get Title(): string {\n return this._title ??= this.PackageId;\n }\n\n /**\n * @returns Company name or information.\n *\n * Default: {@link Authors}\n */\n get Company(): string {\n return this._company ??= this.Authors;\n }\n\n /**\n * @returns Product name or information.\n *\n * Default: {@link AssemblyName}\n */\n get Product(): string {\n return this._product ??= this.AssemblyName;\n }\n}\n\nexport type Class_NPP = ClassLike<\n typeof NugetProjectProperties\n & WithProto<Class_MSBPP>\n>;\n\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nexport class NPPGetterNames {\n private static _prototypeChain: ProtoChainOfClass<Class_NPP> | undefined;\n private static get PrototypeChain(): [Class_NPP, Class_MSBPP] {\n return this._prototypeChain ??= getPrototypesChainOf(NugetProjectProperties as Class_NPP, 'classes');\n }\n\n private static _instanceGetters: Exclude<keyof NugetProjectProperties, keyof MSBuildProjectProperties>[] | undefined;\n private static _instanceGettersRecursive: (keyof NugetProjectProperties)[] | undefined;\n private static _StaticGetters: never[] | undefined;\n private static _StaticGettersRecursive: (keyof typeof NugetProjectProperties)[] | undefined;\n\n public static get InstanceGetters(): Exclude<keyof NugetProjectProperties, keyof MSBuildProjectProperties>[] {\n return this._instanceGetters ??= listOwnGetters(NugetProjectProperties as Class_NPP, 'Instance');\n }\n\n public static get InstanceGettersRecursive(): (keyof NugetProjectProperties)[] {\n return this._instanceGettersRecursive ??= this.PrototypeChain.flatMap(\n proto => listOwnGetters<typeof proto, 'Instance'>(proto, 'Instance'),\n );\n }\n\n public static get StaticGetters(): never[] {\n return this._StaticGetters ??= listOwnGetters(NugetProjectProperties as Class_NPP, 'Static');\n };\n\n public static get StaticGettersRecursive(): ('prototype' | 'GetFullPath')[] {\n return this._StaticGettersRecursive ??= this.PrototypeChain.flatMap(\n proto => listOwnGetters(proto, 'Static'),\n );\n }\n}\n\n/** @module NugetProjectProperties */\n"],"mappings":"sbAiBA,MAAM,EAAgD,EAAK,iBAAiB,CACtE,EAA6D,EAAK,6BAA6B,CAQrG,IAAa,EAAb,MAAa,UAA+B,CAAyB,CAEnE,YACA,iCACA,gBACA,WACA,oBACA,SACA,WACA,iCACA,uBACA,0BACA,oBACA,mBACA,aACA,qBACA,mBACA,aACA,mBACA,gBACA,eACA,aACA,QACA,eACA,gBACA,kBACA,qBACA,mBACA,kBACA,oBACA,sBACA,yBACA,sBACA,YACA,gBACA,kBACA,OACA,SACA,SAQA,YACE,EACA,EACA,CAKA,IAAM,EAAgB,EAAe,gBAE/B,EAAc,IAAI,EAExB,IAAK,IAAM,KAAO,EAAe,CAC/B,IAAM,EAAQ,EAAuB,aAAa,EAAY,EAAI,CAC9D,IAAU,IAAA,IACZ,EAAY,IAAI,EAAK,EAAM,CAI/B,MAAM,EAAwB,EAAW,CAGzC,IAAK,GAAM,CAAC,EAAO,KAAQ,EAAY,SAAS,CAC1C,OAAO,GAAU,UACnB,EAAY,IAAI,EAAK,OAAO,EAAM,CAAC,CAGvC,IAAM,EAAiB,GAAgB,EAAuB,aAAa,EAAa,EAAI,CACxF,EACJ,KAAK,SAAW,EAAc,UAAU,CACxC,KAAK,yBAA2B,EAAc,0BAA0B,CACxE,KAAK,SAAW,EAAc,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iBAAmB,EAAe,EAAqC,SAAS,CAG9F,WAAkB,wBAA0D,CAC1E,MAAO,MAAK,0BAA4B,KAAK,eAAe,QAC1D,GAAS,EAAe,EAAO,SAAS,CACzC"}
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { NugetProjectProperties } from "./NugetProjectProperties.mjs";
|
|
2
|
+
import { MSBuildEvaluationOutput, MSBuildProject } from "./MSBuildProject.mjs";
|
|
3
|
+
import { Type } from "arktype";
|
|
4
|
+
import { config } from "@dotenvx/dotenvx";
|
|
5
|
+
import { Default } from "arktype/internal/attributes.ts";
|
|
6
|
+
|
|
7
|
+
//#region src/dotnet/NugetRegistryInfo.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Read the contents of $GITHUB_OUTPUT (if its value is a file path) or $TEMP/GITHUB_OUTPUT.
|
|
10
|
+
* If the file doesn't exist, it is created.
|
|
11
|
+
* @returns If successful, a promised object with a parsed key.
|
|
12
|
+
*/
|
|
13
|
+
declare function getGithubOutput(): Promise<ReturnType<typeof config>["parsed"]>;
|
|
14
|
+
/**
|
|
15
|
+
* Read the contents of $GITHUB_OUTPUT (if its value is a file path) or $TEMP/GITHUB_OUTPUT.
|
|
16
|
+
* If the file doesn't exist, it is created.
|
|
17
|
+
* @returns An object with a parsed key if successful.
|
|
18
|
+
*/
|
|
19
|
+
declare function getGithubOutputSync(): NonNullable<ReturnType<typeof config>["parsed"]>;
|
|
20
|
+
declare class NugetRegistryInfo {
|
|
21
|
+
private _canPushPackagesToSource;
|
|
22
|
+
private readonly _project;
|
|
23
|
+
private readonly _resolvedEnvVariable;
|
|
24
|
+
private readonly _source;
|
|
25
|
+
static readonly DefaultTokenEnvVars: readonly ["NUGET_TOKEN"];
|
|
26
|
+
/**
|
|
27
|
+
* Convert a URL string to a filesystem folder name.
|
|
28
|
+
*
|
|
29
|
+
* Intended usage: modify the output path of `dotnet pack` based on the NuGet
|
|
30
|
+
* Source the package should be pushed to. This is extra work is usually
|
|
31
|
+
* unnecessary and you'd typically push the same file to multiple sources.
|
|
32
|
+
* This is for the edge-case scenario of creating multiple nupkgs and signing
|
|
33
|
+
* each one with a different certificate corresponding to a given NuGet
|
|
34
|
+
* Source. This is only useful if the Sources have different certificates
|
|
35
|
+
* registered for a given package/user/organization.
|
|
36
|
+
* @param source The URL of the NuGet Source
|
|
37
|
+
* @returns A string suitable for a local filesystem folder name, formatted as
|
|
38
|
+
* `${hostname}_${pathname.replace('/', '_')}`.
|
|
39
|
+
*/
|
|
40
|
+
static GetDirNameForSource(source: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* Creates an instance of NugetRegistryInfo.\
|
|
43
|
+
* This class enables the ability to push a given {@link project}'s
|
|
44
|
+
* package(s) to the {@link source} of a given NuGet Source's API endpoint with
|
|
45
|
+
* a user-defined API key. This API key, herein referred to as a "token", is
|
|
46
|
+
* derived from the {@link tokenEnvVars} array. This array is iterated through
|
|
47
|
+
* until one of the items is discovered to be an existing environment variable
|
|
48
|
+
* (or is defined in a file named '.env' in the current working directory for
|
|
49
|
+
* LOCAL TESTING ONLY! Do NOT `git add` your private keys!).
|
|
50
|
+
* \
|
|
51
|
+
* WARNING:
|
|
52
|
+
* - The token value is stored privately within this class, but it is plain text.
|
|
53
|
+
* - This private key may be copied to command line strings stored in Semantic
|
|
54
|
+
* Release's config object for later use by `@semantic-release/exec`.
|
|
55
|
+
* - Other EcmaScript modules can access the environment variable(s) and steal
|
|
56
|
+
* your key. Be aware of malicious dependencies!
|
|
57
|
+
* @param opts The input type of {@link NRIOpts.from}
|
|
58
|
+
* @param opts.project The project whose package(s) will be
|
|
59
|
+
* pushed.\
|
|
60
|
+
* - Its {@link NugetProjectProperties#PackageId} will be read.\
|
|
61
|
+
* - Its {@link NugetProjectProperties#PackageVersion} will be overridden via CLI args when creating a dummy package. The real package's
|
|
62
|
+
* `PackageVersion` will *not* be overridden.
|
|
63
|
+
* @param [opts.tokenEnvVars] The environment variables
|
|
64
|
+
* whose values are tokens with permission to push a package to the NuGet
|
|
65
|
+
* package registry. The array is iterated through until one token is found.
|
|
66
|
+
* If none of the environment variables are defined, this constructor will
|
|
67
|
+
* throw an {@link Error}.
|
|
68
|
+
* @param [opts.source] A NuGet package registry's API endpoint URL or name. Default: 'https://api.nuget.org/v3/index.json'
|
|
69
|
+
*/
|
|
70
|
+
constructor(opts: typeof NRIOpts["inferIn"]);
|
|
71
|
+
get project(): MSBuildProject;
|
|
72
|
+
/**
|
|
73
|
+
* This is not useful without it being executed as part of a Semantic Release
|
|
74
|
+
* plugin. Deferring this to `@semantic-release/exec`'s prepareCmd is possible,
|
|
75
|
+
* but impractical. You'd need to configure prepareCmd to invoke something
|
|
76
|
+
* like `node customScriptFile.mjs`. It's not worth the hassle.
|
|
77
|
+
* @returns `true` if the token can be used to push nupkg to the given Nuget registry
|
|
78
|
+
* @throws {TypeError | Error | import('../utils/execAsync.js').ChildProcessSpawnException }
|
|
79
|
+
* - {@link Error} | {@link module:utils/execAsync:ChildProcessSpawnException ChildProcessSpawnException}
|
|
80
|
+
* - The token is invalid, of the wrong token type, or lacks permission to push packages
|
|
81
|
+
* - The URL does not exist or a connection could not be established
|
|
82
|
+
* - The command line string is malformed.
|
|
83
|
+
* @deprecated Call during the `verifyConditions` step of Semantic Release! Additionally, {@link GetIsNextVersionAlreadyPublishedCommand}'s return value should be assigned to `prepareCmd` to prevent package version collision errors.
|
|
84
|
+
*/
|
|
85
|
+
get canPushPackagesToSource(): Promise<true>;
|
|
86
|
+
/**
|
|
87
|
+
* The first environment variable found to have a defined value. Set by
|
|
88
|
+
* {@link _GetTokenEnvVariables} in the constructor.
|
|
89
|
+
* @returns The first environment variable found to have a defined value.
|
|
90
|
+
*/
|
|
91
|
+
get resolvedEnvVariable(): string | undefined;
|
|
92
|
+
get source(): string;
|
|
93
|
+
/**
|
|
94
|
+
* Get the API token from {@link NugetRegistryInfo#resolvedEnvVariable}
|
|
95
|
+
* @param resolvedEnvVariable The name of the environment variable(s) whose
|
|
96
|
+
* value is a NuGet API key. Typically, the value of
|
|
97
|
+
* {@link NugetRegistryInfo#resolvedEnvVariable}.
|
|
98
|
+
* @returns The value of the first defined environment variable.
|
|
99
|
+
* @throws {Error} when none of the provided environment variables are defined.
|
|
100
|
+
*/
|
|
101
|
+
private static _GetTokenValue;
|
|
102
|
+
/**
|
|
103
|
+
* The type for options and arguments of `dotnet pack`. See https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-pack.
|
|
104
|
+
*
|
|
105
|
+
* {@link NRI.PackPackagesOptionsType.t.propertyOverrides `propertyOverrides`}
|
|
106
|
+
* is a wrapper for MSBuild's `-property:<n>=<v>` properties override arg.
|
|
107
|
+
*/
|
|
108
|
+
static readonly PackPackagesOptionsType: Type<{
|
|
109
|
+
propertyOverrides?: Record<string, string> | undefined;
|
|
110
|
+
artifactsPath?: string | undefined;
|
|
111
|
+
configuration?: "Release" | "Debug" | undefined;
|
|
112
|
+
disableBuildServers?: boolean | undefined;
|
|
113
|
+
force?: boolean | undefined;
|
|
114
|
+
includeSource?: boolean | undefined;
|
|
115
|
+
includeSymbols?: boolean | undefined;
|
|
116
|
+
interactive?: boolean | undefined;
|
|
117
|
+
noBuild?: boolean | undefined;
|
|
118
|
+
noLogo?: boolean | undefined;
|
|
119
|
+
noRestore?: boolean | undefined;
|
|
120
|
+
output?: string | undefined;
|
|
121
|
+
runtime?: string | undefined;
|
|
122
|
+
serviceable?: boolean | undefined;
|
|
123
|
+
terminalLogger?: "auto" | "on" | "off" | undefined;
|
|
124
|
+
useCurrentRuntime?: boolean | undefined;
|
|
125
|
+
verbosity?: "quiet" | "minimal" | "normal" | "detailed" | "diagnostic" | undefined;
|
|
126
|
+
versionSuffix?: string | undefined;
|
|
127
|
+
"-GetItem"?: readonly string[] | string[] | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
static readonly PackDummyPackagesOptionsType: Type<{
|
|
130
|
+
propertyOverrides?: Record<string, string> | undefined;
|
|
131
|
+
artifactsPath?: string | undefined;
|
|
132
|
+
configuration?: "Release" | "Debug" | undefined;
|
|
133
|
+
disableBuildServers?: boolean | undefined;
|
|
134
|
+
force?: boolean | undefined;
|
|
135
|
+
includeSource?: boolean | undefined;
|
|
136
|
+
includeSymbols?: boolean | undefined;
|
|
137
|
+
interactive?: boolean | undefined;
|
|
138
|
+
noBuild?: boolean | undefined;
|
|
139
|
+
noLogo?: boolean | undefined;
|
|
140
|
+
noRestore?: boolean | undefined;
|
|
141
|
+
runtime?: string | undefined;
|
|
142
|
+
serviceable?: boolean | undefined;
|
|
143
|
+
terminalLogger?: "auto" | "on" | "off" | undefined;
|
|
144
|
+
useCurrentRuntime?: boolean | undefined;
|
|
145
|
+
verbosity?: "quiet" | "minimal" | "normal" | "detailed" | "diagnostic" | undefined;
|
|
146
|
+
versionSuffix?: string | undefined;
|
|
147
|
+
"-GetItem"?: readonly string[] | string[] | undefined;
|
|
148
|
+
}>;
|
|
149
|
+
/**
|
|
150
|
+
* Get a `dotnet pack` command line string, outputting the package(s) to a
|
|
151
|
+
* path determined by this method's parameters.
|
|
152
|
+
* When pushing the package(s), you only need to supply the main .nupkg's path
|
|
153
|
+
* or its directory to the dotnet CLI—by default, it will also push the
|
|
154
|
+
* symbols package, if present.
|
|
155
|
+
* @param opts Options passed to
|
|
156
|
+
* `dotnet pack`, excluding the required `<PROJECT | SOLUTION>` argument. The
|
|
157
|
+
* {@link PackPackagesOptionsType.t.output} path is modified according to the
|
|
158
|
+
* {@link usePerSourceSubfolder} and {@link usePerPackageIdSubfolder}
|
|
159
|
+
* arguments.
|
|
160
|
+
* @param usePerSourceSubfolder If true, the path of the package output will
|
|
161
|
+
* include a subfolder named after the NuGet Source.
|
|
162
|
+
* @param usePerPackageIdSubfolder If true, the path of the package output
|
|
163
|
+
* will include a subfolder named after the NuGet package's ID.
|
|
164
|
+
* @returns `dotnet pack "${this.project.Properties.MSBuildProjectFullPath}"
|
|
165
|
+
* -o "${outDir}"` where outDir may be `${cwd()}/publish/${NugetRegistryInfo.GetNameForURL(this.source)}/${this._project.Properties.PackageId}`
|
|
166
|
+
*/
|
|
167
|
+
GetPackCommand(opts: typeof NRI.PackPackagesOptionsType.inferIn, usePerSourceSubfolder?: boolean, usePerPackageIdSubfolder?: boolean): string;
|
|
168
|
+
/**
|
|
169
|
+
* !Not ready for use! Remove private modifier and commit as `feat(dotnet)` when ready for release!
|
|
170
|
+
* Blocking Issue: convert all dotnet-related functionality to a Semantic Release plugin!
|
|
171
|
+
* The current {@link _srcd SemanticReleaseConfigDotnet} leverages
|
|
172
|
+
* `@semantic-release/exec` to invoke dotnet commands. This is fine for
|
|
173
|
+
* relatively short command lines, but chaining commands with ' && ' results
|
|
174
|
+
* in quickly-growing complexity.
|
|
175
|
+
* NuGet packages should be created during the `prepare` step, but complex
|
|
176
|
+
* configuration of `dotnet pack` via command lines intended to be invoked by
|
|
177
|
+
* `@semantic-release/exec` is impractical.
|
|
178
|
+
* @param opts `dotnet pack` options. See `dotnet pack -h`,
|
|
179
|
+
* https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-pack, and
|
|
180
|
+
* {@link PackPackagesOptionsType}.
|
|
181
|
+
* {@link opts['-GetItem']} will _always_ have '_OutputPackItems'.
|
|
182
|
+
* @param [usePerSourceSubfolder] If `true`, modify the output path to
|
|
183
|
+
* include a subfolder bearing a path-safe encoding of the NuGet Source that
|
|
184
|
+
* will receive the nupkg.
|
|
185
|
+
* @param [usePerPackageIdSubfolder] If `true`, modify the output path
|
|
186
|
+
* to include a subfolder named after the the PackageId.
|
|
187
|
+
* @returns a string[] containing the full file paths of all new packages i.e.
|
|
188
|
+
* .nupkg, .symbols.nupkg, .snupkg
|
|
189
|
+
*/
|
|
190
|
+
private _PackPackages;
|
|
191
|
+
/**
|
|
192
|
+
* Create a dummy package for the current {@link project} by executing a
|
|
193
|
+
* command line like \``dotnet pack ${this.project.Properties.MSBuildProjectFullPath} -p:Version=0.0.1-DUMMY -output ${getDummiesDir(this._project)}/${GetNameForURL(this.source)}`\`
|
|
194
|
+
* @param opts Options passed to
|
|
195
|
+
* `dotnet pack`, excluding the required `<PROJECT | SOLUTION>` argument.
|
|
196
|
+
* - The `output` field is ignored and overwritten. It is replaced with
|
|
197
|
+
* ${{@link getDummiesDir}({@link project})}/${{@link GetDirNameForSource}({@link source})}
|
|
198
|
+
* - The `output` path will be affixed with a folder named after this
|
|
199
|
+
* {@link NugetRegistryInfo#source}, but will not include a subfolder for the
|
|
200
|
+
* {@link NugetRegistryInfo#project NugetRegistryInfo.project}.{@link MSBuildProject#Properties Properties}.{@link MSBuildProject#Properties#PackageId PackageId}.
|
|
201
|
+
* @returns the full paths of all nupkg, symbols.nupkg, and snupkg files
|
|
202
|
+
* created by the Pack target, as extracted from the dotnet process's STDOUT.
|
|
203
|
+
* If mixed with other nupkgs, filter for the {@link NugetProjectProperties#PackageId}
|
|
204
|
+
*/
|
|
205
|
+
PackDummyPackage(opts: typeof NRI.PackDummyPackagesOptionsType.inferIn): Promise<string[]>;
|
|
206
|
+
/**
|
|
207
|
+
* Also includes required argument 'ROOT': the directory in which packages
|
|
208
|
+
* should be present and ready to be pushed the default or specified Source.
|
|
209
|
+
* The ROOT may also include wildcards e.g. `*.nupkg`, `**\\*.nupkg`
|
|
210
|
+
* See https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-push
|
|
211
|
+
*
|
|
212
|
+
* Specific to this API:
|
|
213
|
+
* If you want to use this API's default root value (\`${cwd()}/publish`), assign an empty string.
|
|
214
|
+
*/
|
|
215
|
+
static readonly PushPackagesOptionsType: Type<{
|
|
216
|
+
root: string;
|
|
217
|
+
apiKey?: string | undefined;
|
|
218
|
+
configFile?: string | undefined;
|
|
219
|
+
disableBuffering?: boolean | undefined;
|
|
220
|
+
forceEnglishOutput?: boolean | undefined;
|
|
221
|
+
interactive?: boolean | undefined;
|
|
222
|
+
noServiceEndpoint?: boolean | undefined;
|
|
223
|
+
noSymbols?: boolean | undefined;
|
|
224
|
+
skipDuplicate?: boolean | undefined;
|
|
225
|
+
source?: string | undefined;
|
|
226
|
+
symbolApiKey?: string | undefined;
|
|
227
|
+
symbolSource?: string | undefined;
|
|
228
|
+
timeout?: number | undefined;
|
|
229
|
+
}>;
|
|
230
|
+
/**
|
|
231
|
+
* {@link NRI.PushPackagesOptionsType} sans {@link NRI.PushPackagesOptionsType.t.root}.
|
|
232
|
+
* The result of {@link getDummiesDir} is used, instead.
|
|
233
|
+
*/
|
|
234
|
+
static readonly PushDummyPackagesOptionsType: Type<{
|
|
235
|
+
apiKey?: string | undefined;
|
|
236
|
+
configFile?: string | undefined;
|
|
237
|
+
disableBuffering?: boolean | undefined;
|
|
238
|
+
forceEnglishOutput?: boolean | undefined;
|
|
239
|
+
interactive?: boolean | undefined;
|
|
240
|
+
noServiceEndpoint?: boolean | undefined;
|
|
241
|
+
noSymbols?: boolean | undefined;
|
|
242
|
+
source?: string | undefined;
|
|
243
|
+
symbolApiKey?: string | undefined;
|
|
244
|
+
symbolSource?: string | undefined;
|
|
245
|
+
timeout?: number | undefined;
|
|
246
|
+
skipDuplicate: Default<true, true>;
|
|
247
|
+
}>;
|
|
248
|
+
/**
|
|
249
|
+
* Create a `dotnet nuget push` command line from the given options and
|
|
250
|
+
* optional boolean parameters.
|
|
251
|
+
* @param opts See {@link PushPackagesOptionsType}
|
|
252
|
+
* @param usePerSourceSubfolder If `true`, the NuGet Source name or URL is formatted
|
|
253
|
+
* to a folder name and appended to the ROOT as a subfolder. Do not use
|
|
254
|
+
* wildcards in ROOT with this set to `true`!
|
|
255
|
+
* @param usePerPackageIdSubfolder If `true`, the
|
|
256
|
+
* {@link project}'s {@link NugetProjectProperties#PackageId}
|
|
257
|
+
* is appended to the ROOT as a subfolder. Do not use wildcards in
|
|
258
|
+
* ROOT with this set to `true`!
|
|
259
|
+
* @returns A `dotnet nuget push` command line formatted with the
|
|
260
|
+
* appropriate arguments.
|
|
261
|
+
*/
|
|
262
|
+
GetPushCommand(opts: typeof NRI.PushPackagesOptionsType.inferIn, usePerSourceSubfolder?: boolean, usePerPackageIdSubfolder?: boolean): string;
|
|
263
|
+
/**
|
|
264
|
+
* Immediately push packages. The input path may be modified according to the
|
|
265
|
+
* {@link usePerSourceSubfolder} and {@link usePerPackageIdSubfolder}
|
|
266
|
+
* arguments.
|
|
267
|
+
* @param opts The `dotnet nuget push` command line options, including the
|
|
268
|
+
* ROOT argument, the directory containing local nuget packages ready to be
|
|
269
|
+
* pushed.
|
|
270
|
+
* @param usePerSourceSubfolder If `true`, the NuGet Source name or URL is formatted
|
|
271
|
+
* to a folder name and appended to the ROOT as a subfolder. Do not use
|
|
272
|
+
* wildcards in ROOT with this set to `true`!
|
|
273
|
+
* @param usePerPackageIdSubfolder If `true`, the current {@link project}'s
|
|
274
|
+
* PackageId is appended to the ROOT as a subfolder. Do not use wildcards in
|
|
275
|
+
* ROOT with this set to `true`!
|
|
276
|
+
*/
|
|
277
|
+
private _PushPackages;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* Get a `dotnet nuget push` command for pushing one or more nupkg/snupkg
|
|
281
|
+
* files created by {@link GetPackCommand} or {@link _PackPackages}.\
|
|
282
|
+
* Like {@link PackDummyPackage}, the output/ROOT path will include a
|
|
283
|
+
* folder named after this NRI instance's {@link NugetRegistryInfo#source},
|
|
284
|
+
* but will not include a subfolder for the
|
|
285
|
+
* {@link NugetRegistryInfo#project NugetRegistryInfo.project}.{@link MSBuildProject#Properties Properties}.{@link MSBuildProject#Properties#PackageId PackageId}
|
|
286
|
+
* @example
|
|
287
|
+
* ```ts
|
|
288
|
+
* const packAndPushDummyCmd = [
|
|
289
|
+
* nri.GetPackCommand(
|
|
290
|
+
* NugetRegistryInfo.PackPackagesOptionsType.from({ root: '' }),
|
|
291
|
+
* false,
|
|
292
|
+
* false,
|
|
293
|
+
* ),
|
|
294
|
+
* nri.GetPushDummyPackageCommand(pushOpts, false, false),
|
|
295
|
+
* ].join(' && ')
|
|
296
|
+
* ```
|
|
297
|
+
* @param opts options for `dotnet nuget push`. The following
|
|
298
|
+
* fields are overwritten:
|
|
299
|
+
* - root: getDummiesDir(this.project)
|
|
300
|
+
* - skipDuplicates: true
|
|
301
|
+
* @returns a `dotnet nuget push` command to push a dummy package
|
|
302
|
+
* (created by executing {@link PackDummyPackage}) to {@link source}
|
|
303
|
+
*/
|
|
304
|
+
GetPushDummyCommand(opts: typeof NRI.PushDummyPackagesOptionsType.inferIn): string;
|
|
305
|
+
/**
|
|
306
|
+
* Call {@link GetPushDummyCommand} and immediately execute it.
|
|
307
|
+
* @throws {Error} when the process exits with an error code indicating
|
|
308
|
+
* failure i.e. the command line is invalid, the process fails to start,
|
|
309
|
+
* the push fails, et cetera.
|
|
310
|
+
* @param opts the ROOT arg and options for `dotnet nuget push`. The following
|
|
311
|
+
* fields are overwritten:
|
|
312
|
+
* - root: getDummiesDir(this.project)
|
|
313
|
+
* - skipDuplicates: true
|
|
314
|
+
* @returns The return type of {@link execAsync} i.e. a {@link Promise} resolving to `{ stdout: string; stderr: string }`.
|
|
315
|
+
*/
|
|
316
|
+
private _PushDummyPackages;
|
|
317
|
+
private static readonly _NugetSearchReturnTypes;
|
|
318
|
+
private static readonly _ParseNugetSearchReturn;
|
|
319
|
+
/**
|
|
320
|
+
* !WARNING: this method requires the Nuget Source to be configured via `dotnet nuget add source` or `dotnet nuget update source`. `NUGET_TOKEN` works, but it may be vulnerable to supply chain attacks.\
|
|
321
|
+
* Call during the `prepare` step of a Semantic Release run.\
|
|
322
|
+
* Determine if the `nextVersion` generated during the `analyze` Semantic
|
|
323
|
+
* Release step was already published to the NuGet {@link source}.
|
|
324
|
+
* @param source The name or URI of the NuGet Source to search. If this API
|
|
325
|
+
* endpoint does not support searches, the operation will fail. If this API
|
|
326
|
+
* endpoint requires authentication (e.g. GitHub), it must be configured via
|
|
327
|
+
* `dotnet nuget add source` or `dotnet nuget update source` before calling
|
|
328
|
+
* this method.
|
|
329
|
+
* @param packageId The ID of the NuGet package to search for.
|
|
330
|
+
* @param nextVersion The nextVersion value generated by semantic-release's hidden ["Create Git tag" step](https://semantic-release.gitbook.io/semantic-release#:~:text=the%20last%20release.-,Create%20Git%20tag,-Create%20a%20Git).
|
|
331
|
+
* @returns A promised boolean.
|
|
332
|
+
* If the promise resolves to `true`, the semantic release run should be
|
|
333
|
+
* cancelled immediately.
|
|
334
|
+
* Otherwise, the release should proceed.
|
|
335
|
+
* @todo utilize in custom plugin inserted at the beginning of `prepare`
|
|
336
|
+
*/
|
|
337
|
+
static IsNextVersionAlreadyPublished(source: string, packageId: string, nextVersion: string): Promise<boolean>;
|
|
338
|
+
/**
|
|
339
|
+
* !WARNING: GITHUB_OUTPUT must be the full path to an environment file.
|
|
340
|
+
* The plugin "semantic-release-output-variables" next-release-version
|
|
341
|
+
*
|
|
342
|
+
* !WARNING: NuGet Source API Key mus tbe configured via `dotnet nuget add source` or `dotnet nuget update source`.
|
|
343
|
+
* Some Sources (e.g. GitHub) require authentication for package searches.
|
|
344
|
+
*
|
|
345
|
+
* # Authenticating NuGet Package Searches
|
|
346
|
+
*
|
|
347
|
+
* ## GitHub NuGet Registry authentication
|
|
348
|
+
* - {@link https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry#authenticating-in-a-github-actions-workflow Authenticating in a GitHub Actions workflow}
|
|
349
|
+
* - {@link https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry#authenticating-with-a-personal-access-token Authenticating with a personal access token}.
|
|
350
|
+
* ## For GitLab NuGet Registry authentication, see
|
|
351
|
+
* - {@link https://docs.gitlab.com/ee/user/packages/nuget_repository/#add-a-source-with-the-net-cli Add a source with the .NET CLI}
|
|
352
|
+
* @returns a string containing a Node.JS command line invoking {@link ./IsNextVersionAlreadyPublished.cli.ts}
|
|
353
|
+
* @see {@link ./IsNextVersionAlreadyPublished.cli.ts}, {@link ./IsNextVersionAlreadyPublished.cli.js}
|
|
354
|
+
*/
|
|
355
|
+
GetIsNextVersionAlreadyPublishedCommand(): string;
|
|
356
|
+
}
|
|
357
|
+
declare const NRI: typeof NugetRegistryInfo;
|
|
358
|
+
/**
|
|
359
|
+
* The base type for {@link NRIOpts} and related types. Extend this type while
|
|
360
|
+
* overriding member types via {@link NRIOptsBase.merge}
|
|
361
|
+
*/
|
|
362
|
+
declare const NRIOptsBase: Type<{
|
|
363
|
+
project: MSBuildProject | {
|
|
364
|
+
readonly Items: Readonly<Required<MSBuildEvaluationOutput>["Items"]>;
|
|
365
|
+
readonly Properties: Readonly<NugetProjectProperties>;
|
|
366
|
+
readonly Targets: readonly string[];
|
|
367
|
+
readonly TargetResults: Required<MSBuildEvaluationOutput>["TargetResults"][];
|
|
368
|
+
};
|
|
369
|
+
source: string;
|
|
370
|
+
tokenEnvVars: readonly string[];
|
|
371
|
+
}>;
|
|
372
|
+
/**
|
|
373
|
+
* The type of the parameter for {@link NugetRegistryInfo}'s constructor.
|
|
374
|
+
*/
|
|
375
|
+
declare const NRIOpts: Type<{
|
|
376
|
+
project: MSBuildProject | {
|
|
377
|
+
readonly Items: Readonly<Required<MSBuildEvaluationOutput>["Items"]>;
|
|
378
|
+
readonly Properties: Readonly<NugetProjectProperties>;
|
|
379
|
+
readonly Targets: readonly string[];
|
|
380
|
+
readonly TargetResults: Required<MSBuildEvaluationOutput>["TargetResults"][];
|
|
381
|
+
};
|
|
382
|
+
tokenEnvVars: Default<readonly string[], readonly ["NUGET_TOKEN"]>;
|
|
383
|
+
source: Default<string, string>;
|
|
384
|
+
}>;
|
|
385
|
+
//#endregion
|
|
386
|
+
export { NRIOpts, NRIOptsBase, NugetRegistryInfo, getGithubOutput, getGithubOutputSync };
|
|
387
|
+
//# sourceMappingURL=NugetRegistryInfo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NugetRegistryInfo.d.mts","names":[],"sources":["../../src/dotnet/NugetRegistryInfo.ts"],"mappings":";;;;;;;;;AAmCA;;;iBAAsB,eAAA,CAAA,GAAmB,OAAA,CAAQ,UAAA,QAAkB,MAAA;;;;;;iBA0BnD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