@halospv3/hce.shared-config 3.0.0-develop.2 → 3.0.0-develop.20

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.
Files changed (188) hide show
  1. package/CHANGELOG.md +158 -0
  2. package/dotnet/.github/workflows/_unit_test.yml +0 -3
  3. package/dotnet/.github/workflows/dotnet-release.yml +0 -3
  4. package/dotnet/.github/workflows/sample-dotnet-build.yml +0 -3
  5. package/dotnet/PublishAll.targets +1 -1
  6. package/dotnet/ZipPublishDir.targets +24 -29
  7. package/mjs/CaseInsensitiveMap.d.ts +12 -0
  8. package/mjs/CaseInsensitiveMap.d.ts.map +1 -0
  9. package/mjs/CaseInsensitiveMap.mjs +33 -0
  10. package/mjs/CaseInsensitiveMap.mjs.map +1 -0
  11. package/mjs/commitlintConfig.d.ts +12 -0
  12. package/mjs/commitlintConfig.d.ts.map +1 -0
  13. package/mjs/commitlintConfig.mjs +13 -0
  14. package/mjs/commitlintConfig.mjs.map +1 -0
  15. package/mjs/debug.d.ts +6 -0
  16. package/mjs/debug.d.ts.map +1 -0
  17. package/mjs/debug.mjs +9 -0
  18. package/mjs/debug.mjs.map +1 -0
  19. package/mjs/dotnet/GithubNugetRegistryInfo.d.ts +38 -0
  20. package/mjs/dotnet/GithubNugetRegistryInfo.d.ts.map +1 -0
  21. package/mjs/dotnet/GithubNugetRegistryInfo.mjs +43 -0
  22. package/mjs/dotnet/GithubNugetRegistryInfo.mjs.map +1 -0
  23. package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts +62 -0
  24. package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts.map +1 -0
  25. package/mjs/dotnet/GitlabNugetRegistryInfo.mjs +99 -0
  26. package/mjs/dotnet/GitlabNugetRegistryInfo.mjs.map +1 -0
  27. package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts +2 -0
  28. package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts.map +1 -0
  29. package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs +41 -0
  30. package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs.map +1 -0
  31. package/mjs/dotnet/MSBuildProject.d.ts +256 -0
  32. package/mjs/dotnet/MSBuildProject.d.ts.map +1 -0
  33. package/mjs/dotnet/MSBuildProject.mjs +447 -0
  34. package/mjs/dotnet/MSBuildProject.mjs.map +1 -0
  35. package/mjs/dotnet/MSBuildProjectProperties.d.ts +170 -0
  36. package/mjs/dotnet/MSBuildProjectProperties.d.ts.map +1 -0
  37. package/mjs/dotnet/MSBuildProjectProperties.mjs +260 -0
  38. package/mjs/dotnet/MSBuildProjectProperties.mjs.map +1 -0
  39. package/mjs/dotnet/NugetProjectProperties.d.ts +379 -0
  40. package/mjs/dotnet/NugetProjectProperties.d.ts.map +1 -0
  41. package/mjs/dotnet/NugetProjectProperties.mjs +577 -0
  42. package/mjs/dotnet/NugetProjectProperties.mjs.map +1 -0
  43. package/mjs/dotnet/NugetRegistryInfo.d.ts +384 -0
  44. package/mjs/dotnet/NugetRegistryInfo.d.ts.map +1 -0
  45. package/mjs/dotnet/NugetRegistryInfo.mjs +752 -0
  46. package/mjs/dotnet/NugetRegistryInfo.mjs.map +1 -0
  47. package/mjs/dotnet/helpers.d.ts +63 -0
  48. package/mjs/dotnet/helpers.d.ts.map +1 -0
  49. package/mjs/dotnet/helpers.mjs +354 -0
  50. package/mjs/dotnet/helpers.mjs.map +1 -0
  51. package/mjs/dotnet/index.d.ts +9 -0
  52. package/mjs/dotnet/index.d.ts.map +1 -0
  53. package/mjs/dotnet/index.mjs +9 -0
  54. package/mjs/dotnet/index.mjs.map +1 -0
  55. package/mjs/dotnet.d.ts +2 -0
  56. package/mjs/dotnet.d.ts.map +1 -0
  57. package/mjs/dotnet.mjs +9 -0
  58. package/mjs/dotnet.mjs.map +1 -0
  59. package/mjs/eslintConfig.d.ts +4 -0
  60. package/mjs/eslintConfig.d.ts.map +1 -0
  61. package/mjs/eslintConfig.mjs +98 -0
  62. package/mjs/eslintConfig.mjs.map +1 -0
  63. package/mjs/index.d.ts +3 -0
  64. package/mjs/index.d.ts.map +1 -0
  65. package/mjs/index.mjs +4 -0
  66. package/mjs/index.mjs.map +1 -0
  67. package/mjs/insertPlugins.d.ts +18 -0
  68. package/mjs/insertPlugins.d.ts.map +1 -0
  69. package/mjs/insertPlugins.mjs +73 -0
  70. package/mjs/insertPlugins.mjs.map +1 -0
  71. package/mjs/semantic-release__commit-analyzer.d.mjs +2 -0
  72. package/mjs/semantic-release__commit-analyzer.d.mjs.map +1 -0
  73. package/mjs/semantic-release__exec.d.mjs +2 -0
  74. package/mjs/semantic-release__exec.d.mjs.map +1 -0
  75. package/mjs/semantic-release__git.d.mjs +2 -0
  76. package/mjs/semantic-release__git.d.mjs.map +1 -0
  77. package/mjs/semantic-release__github.d.mjs +2 -0
  78. package/mjs/semantic-release__github.d.mjs.map +1 -0
  79. package/mjs/semanticReleaseConfig.d.ts +97 -0
  80. package/mjs/semanticReleaseConfig.d.ts.map +1 -0
  81. package/mjs/semanticReleaseConfig.mjs +63 -0
  82. package/mjs/semanticReleaseConfig.mjs.map +1 -0
  83. package/mjs/semanticReleaseConfigDotnet.d.ts +109 -0
  84. package/mjs/semanticReleaseConfigDotnet.d.ts.map +1 -0
  85. package/mjs/semanticReleaseConfigDotnet.mjs +268 -0
  86. package/mjs/semanticReleaseConfigDotnet.mjs.map +1 -0
  87. package/mjs/setupGitPluginSpec.d.ts +22 -0
  88. package/mjs/setupGitPluginSpec.d.ts.map +1 -0
  89. package/mjs/setupGitPluginSpec.mjs +144 -0
  90. package/mjs/setupGitPluginSpec.mjs.map +1 -0
  91. package/mjs/utils/Exact.d.ts +20 -0
  92. package/mjs/utils/Exact.d.ts.map +1 -0
  93. package/mjs/utils/Exact.mjs +75 -0
  94. package/mjs/utils/Exact.mjs.map +1 -0
  95. package/mjs/utils/GracefulRecursion.d.mjs +2 -0
  96. package/mjs/utils/GracefulRecursion.d.mjs.map +1 -0
  97. package/mjs/utils/env.d.ts +24 -0
  98. package/mjs/utils/env.d.ts.map +1 -0
  99. package/mjs/utils/env.mjs +39 -0
  100. package/mjs/utils/env.mjs.map +1 -0
  101. package/mjs/utils/execAsync.d.ts +37 -0
  102. package/mjs/utils/execAsync.d.ts.map +1 -0
  103. package/mjs/utils/execAsync.mjs +59 -0
  104. package/mjs/utils/execAsync.mjs.map +1 -0
  105. package/mjs/utils/miscTypes.d.ts +13 -0
  106. package/mjs/utils/miscTypes.d.ts.map +1 -0
  107. package/mjs/utils/miscTypes.mjs +10 -0
  108. package/mjs/utils/miscTypes.mjs.map +1 -0
  109. package/mjs/utils/reflection/FunctionLike.d.mjs +2 -0
  110. package/mjs/utils/reflection/FunctionLike.d.mjs.map +1 -0
  111. package/mjs/utils/reflection/GetterDescriptor.d.mjs +2 -0
  112. package/mjs/utils/reflection/GetterDescriptor.d.mjs.map +1 -0
  113. package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs +2 -0
  114. package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs.map +1 -0
  115. package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs +2 -0
  116. package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs.map +1 -0
  117. package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs +2 -0
  118. package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs.map +1 -0
  119. package/mjs/utils/reflection/OwnKeyOf.d.mjs +2 -0
  120. package/mjs/utils/reflection/OwnKeyOf.d.mjs.map +1 -0
  121. package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs +2 -0
  122. package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs.map +1 -0
  123. package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs +2 -0
  124. package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs.map +1 -0
  125. package/mjs/utils/reflection/filterForGetters.d.ts +7 -0
  126. package/mjs/utils/reflection/filterForGetters.d.ts.map +1 -0
  127. package/mjs/utils/reflection/filterForGetters.mjs +27 -0
  128. package/mjs/utils/reflection/filterForGetters.mjs.map +1 -0
  129. package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts +22 -0
  130. package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts.map +1 -0
  131. package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs +34 -0
  132. package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs.map +1 -0
  133. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts +56 -0
  134. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts.map +1 -0
  135. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs +72 -0
  136. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs.map +1 -0
  137. package/mjs/utils/reflection/getPrototypeChainOf.d.ts +16 -0
  138. package/mjs/utils/reflection/getPrototypeChainOf.d.ts.map +1 -0
  139. package/mjs/utils/reflection/getPrototypeChainOf.mjs +55 -0
  140. package/mjs/utils/reflection/getPrototypeChainOf.mjs.map +1 -0
  141. package/mjs/utils/reflection/getPrototypeOf.d.ts +8 -0
  142. package/mjs/utils/reflection/getPrototypeOf.d.ts.map +1 -0
  143. package/mjs/utils/reflection/getPrototypeOf.mjs +10 -0
  144. package/mjs/utils/reflection/getPrototypeOf.mjs.map +1 -0
  145. package/mjs/utils/reflection/inheritance.d.ts +180 -0
  146. package/mjs/utils/reflection/inheritance.d.ts.map +1 -0
  147. package/mjs/utils/reflection/inheritance.mjs +148 -0
  148. package/mjs/utils/reflection/inheritance.mjs.map +1 -0
  149. package/mjs/utils/reflection/isConstructor.d.ts +17 -0
  150. package/mjs/utils/reflection/isConstructor.d.ts.map +1 -0
  151. package/mjs/utils/reflection/isConstructor.mjs +63 -0
  152. package/mjs/utils/reflection/isConstructor.mjs.map +1 -0
  153. package/mjs/utils/reflection/isGetterDescriptor.d.ts +9 -0
  154. package/mjs/utils/reflection/isGetterDescriptor.d.ts.map +1 -0
  155. package/mjs/utils/reflection/isGetterDescriptor.mjs +12 -0
  156. package/mjs/utils/reflection/isGetterDescriptor.mjs.map +1 -0
  157. package/mjs/utils/reflection/listOwnGetters.d.ts +26 -0
  158. package/mjs/utils/reflection/listOwnGetters.d.ts.map +1 -0
  159. package/mjs/utils/reflection/listOwnGetters.mjs +39 -0
  160. package/mjs/utils/reflection/listOwnGetters.mjs.map +1 -0
  161. package/mjs/utils/reflection.d.ts +18 -0
  162. package/mjs/utils/reflection.d.ts.map +1 -0
  163. package/mjs/utils/reflection.mjs +10 -0
  164. package/mjs/utils/reflection.mjs.map +1 -0
  165. package/package.json +16 -16
  166. package/src/debug.ts +5 -4
  167. package/src/dotnet/GithubNugetRegistryInfo.ts +17 -9
  168. package/src/dotnet/GitlabNugetRegistryInfo.ts +19 -5
  169. package/src/dotnet/IsNextVersionAlreadyPublished.cli.ts +53 -36
  170. package/src/dotnet/MSBuildProject.ts +150 -5
  171. package/src/dotnet/MSBuildProjectProperties.ts +2 -1
  172. package/src/dotnet/NugetProjectProperties.ts +3 -2
  173. package/src/dotnet/NugetRegistryInfo.ts +94 -8
  174. package/src/dotnet/helpers.ts +82 -48
  175. package/src/dotnet/index.ts +8 -0
  176. package/src/dotnet.ts +1 -0
  177. package/src/insertPlugins.ts +116 -0
  178. package/src/semantic-release__exec.d.ts +1 -1
  179. package/src/semanticReleaseConfig.ts +8 -3
  180. package/src/semanticReleaseConfigDotnet.ts +90 -88
  181. package/src/setupGitPluginSpec.ts +4 -1
  182. package/src/tsconfig.json +1 -1
  183. package/src/utils/execAsync.ts +13 -1
  184. package/src/utils/miscTypes.ts +4 -3
  185. package/src/utils/reflection/inheritance.ts +1 -1
  186. package/tsconfig.base.json +54 -0
  187. package/tsconfig.json +22 -0
  188. package/tsconfig.mjs.json +8 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,161 @@
1
+ ## [3.0.0-develop.20](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.19...v3.0.0-develop.20) (2025-08-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **dotnet.ZPD:** beware of case-insensitive property names! Prefix private props with '_'; fix invalid condition expressions; add conditions to assignments ([60a25ce](https://github.com/HaloSPV3/HCE.Shared/commit/60a25ce54202e31003491e32016e47dd990acd4e))
6
+ * **dotnet.ZPD:** fix placeholders PropertyGroup condition almost always evaluating to `true` ([44f2fc4](https://github.com/HaloSPV3/HCE.Shared/commit/44f2fc4af1caf3d14c4fe27ba27154d79094a7a3))
7
+
8
+ ## [3.0.0-develop.19](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.18...v3.0.0-develop.19) (2025-08-07)
9
+
10
+ ### Bug Fixes
11
+
12
+ * **dotnet:** fix `-t:Publish` commands starting with `dotnet publish` instead of `dotnet msbuild` ([5d6bbca](https://github.com/HaloSPV3/HCE.Shared/commit/5d6bbca822131eeb2c76e184e6b4c036e161cc15))
13
+ * **dotnet:** fix PublishAll never running `_PublishProjectForAllFrameworksAndRuntimes` ([1717ea6](https://github.com/HaloSPV3/HCE.Shared/commit/1717ea6ac6256dcba00a61a62f0d270f0267a54d))
14
+
15
+ ## [3.0.0-develop.18](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.17...v3.0.0-develop.18) (2025-08-05)
16
+
17
+ ### Bug Fixes
18
+
19
+ * **dotnet.INVAP:** execute INVAP cli only if it's the main module ([5006ab1](https://github.com/HaloSPV3/HCE.Shared/commit/5006ab1d6ff46554f5fd17d076465fcc1e2018e6)), closes [#455](https://github.com/HaloSPV3/HCE.Shared/issues/455)
20
+
21
+ ## [3.0.0-develop.17](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.16...v3.0.0-develop.17) (2025-07-31)
22
+
23
+ ### Bug Fixes
24
+
25
+ * **dotnet:** do not mix `export *` and `export type *`! ([1184896](https://github.com/HaloSPV3/HCE.Shared/commit/118489616924fdb3d62670a67b1a0ab8123ba299))
26
+
27
+ ## [3.0.0-develop.16](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.15...v3.0.0-develop.16) (2025-07-31)
28
+
29
+ ### Bug Fixes
30
+
31
+ * **dotnet:** do not mix `export *` and `export type *`! ([859dfb4](https://github.com/HaloSPV3/HCE.Shared/commit/859dfb440b32258ddd34f36cb9f42f033b8b287a))
32
+
33
+ ## [3.0.0-develop.15](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.14...v3.0.0-develop.15) (2025-07-31)
34
+
35
+ ### Bug Fixes
36
+
37
+ * **dotnet.SemanticRelease:** swap out `console.debug` with colorful `debug` logging ([54029e1](https://github.com/HaloSPV3/HCE.Shared/commit/54029e1089e802ed6dcc02338b67118a67f7ecb4))
38
+
39
+ ## [3.0.0-develop.14](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.13...v3.0.0-develop.14) (2025-07-31)
40
+
41
+ ### Bug Fixes
42
+
43
+ * replace `debug.log` calls with `debug` call ([1b94603](https://github.com/HaloSPV3/HCE.Shared/commit/1b946035b5732deb69ff8a446843f1c5947ca49e))
44
+
45
+ ## [3.0.0-develop.13](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.12...v3.0.0-develop.13) (2025-07-26)
46
+
47
+ ### Bug Fixes
48
+
49
+ * remove second gitlab-sync ([b09f6c9](https://github.com/HaloSPV3/HCE.Shared/commit/b09f6c937a295d5bedcff85e8e32a4770b369ff2))
50
+
51
+ ## [3.0.0-develop.12](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.11...v3.0.0-develop.12) (2025-07-26)
52
+
53
+ ### Bug Fixes
54
+
55
+ * **TODO:** temporarily disable Deno/JSR publishing ([3479838](https://github.com/HaloSPV3/HCE.Shared/commit/347983862b0c19a62d1266824c75db72ef7a8917)), closes [#448](https://github.com/HaloSPV3/HCE.Shared/issues/448)
56
+
57
+ ## [3.0.0-develop.11](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.10...v3.0.0-develop.11) (2025-07-26)
58
+
59
+ ### Bug Fixes
60
+
61
+ * move gitlab `git push --tags` to `publish` step ([5faf150](https://github.com/HaloSPV3/HCE.Shared/commit/5faf1509f8176fd530c1041ee3384b3554ca1369))
62
+
63
+ ## [3.0.0-develop.10](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.9...v3.0.0-develop.10) (2025-07-26)
64
+
65
+ ### Bug Fixes
66
+
67
+ * avoid using implicitly fixed-length arrays ([02a2c2b](https://github.com/HaloSPV3/HCE.Shared/commit/02a2c2b880025fbd5e309d330f5546c6101ce3c0))
68
+
69
+ ## [3.0.0-develop.9](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.8...v3.0.0-develop.9) (2025-07-24)
70
+
71
+ ### Bug Fixes
72
+
73
+ * use argument splatting ([6861778](https://github.com/HaloSPV3/HCE.Shared/commit/68617788184e3b9c56afaddd8c69461b2286312c))
74
+
75
+ ## [3.0.0-develop.8](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.7...v3.0.0-develop.8) (2025-07-24)
76
+
77
+ ### Bug Fixes
78
+
79
+ * fix typo in $ghRegistry string ([8f8de0d](https://github.com/HaloSPV3/HCE.Shared/commit/8f8de0d5a23403f11824c839dc80a98025f06b04))
80
+
81
+ ## [3.0.0-develop.7](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.6...v3.0.0-develop.7) (2025-07-24)
82
+
83
+ ### ⚠ BREAKING CHANGES
84
+
85
+ * **insertPlugins, semanticRelease:** allow only tuple `PluginSpec`
86
+
87
+ ### Features
88
+
89
+ * export `@semantic-release/exec` `Options` interface ([331456e](https://github.com/HaloSPV3/HCE.Shared/commit/331456ed9ffe220f0270a1aefc3b34973c5ce64b))
90
+
91
+ ### Bug Fixes
92
+
93
+ * disable `@semantic-release/npm` tarballDir config ([b4d2fb5](https://github.com/HaloSPV3/HCE.Shared/commit/b4d2fb50b368e5c66c323781fb094adee7f8fb01))
94
+ * try increasing GitLab Release retry limit ([ff1e758](https://github.com/HaloSPV3/HCE.Shared/commit/ff1e758499602cbe02bee31fc217be4e91d2b423))
95
+
96
+ ### Code Refactoring
97
+
98
+ * **insertPlugins, semanticRelease:** allow only tuple `PluginSpec` ([e44ef67](https://github.com/HaloSPV3/HCE.Shared/commit/e44ef67fb824ddf2a74f13bd4e08a4acc27a002f))
99
+
100
+ ## [3.0.0-develop.7](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.6...v3.0.0-develop.7) (2025-07-24)
101
+
102
+ ### ⚠ BREAKING CHANGES
103
+
104
+ * **insertPlugins, semanticRelease:** allow only tuple `PluginSpec`
105
+
106
+ ### Features
107
+
108
+ * export `@semantic-release/exec` `Options` interface ([331456e](https://github.com/HaloSPV3/HCE.Shared/commit/331456ed9ffe220f0270a1aefc3b34973c5ce64b))
109
+
110
+ ### Bug Fixes
111
+
112
+ * try increasing GitLab Release retry limit ([ff1e758](https://github.com/HaloSPV3/HCE.Shared/commit/ff1e758499602cbe02bee31fc217be4e91d2b423))
113
+
114
+ ### Code Refactoring
115
+
116
+ * **insertPlugins, semanticRelease:** allow only tuple `PluginSpec` ([e44ef67](https://github.com/HaloSPV3/HCE.Shared/commit/e44ef67fb824ddf2a74f13bd4e08a4acc27a002f))
117
+
118
+ ## [3.0.0-develop.6](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.5...v3.0.0-develop.6) (2025-07-17)
119
+
120
+ ### Bug Fixes
121
+
122
+ * try fixing GitLab asset label, path ([75463a0](https://github.com/HaloSPV3/HCE.Shared/commit/75463a02ce247b33c25435d1e4afa78d6748f8db))
123
+ * try fixing GitLab assets path AGAIN ([0bee0ae](https://github.com/HaloSPV3/HCE.Shared/commit/0bee0aee71e2da6707228820cec41c4a2248c44a))
124
+
125
+ ## [3.0.0-develop.5](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.4...v3.0.0-develop.5) (2025-07-17)
126
+
127
+ ### Features
128
+
129
+ * **insertPlugins:** add, export `insertPlugin`; declare internal `insertAndSortPlugins`; fix false-positive error caused by `!0` ([8971599](https://github.com/HaloSPV3/HCE.Shared/commit/8971599585dc962d5be6e7c3cc084f8c1a65d71c))
130
+
131
+ ### Bug Fixes
132
+
133
+ * **dotnet.SemanticRelease:** append `@semantic-release/exec` plugin to plugins array if not found ([7eeafb2](https://github.com/HaloSPV3/HCE.Shared/commit/7eeafb2caab31358ecb91f8b3f1b885a11bc43b8))
134
+ * **dotnet.SemanticRelease:** set/append dummy pack, dummy push, and INVAP commands ([88a523e](https://github.com/HaloSPV3/HCE.Shared/commit/88a523e231a821b59b72af0dee785affa9889499))
135
+
136
+ ## [3.0.0-develop.5](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.4...v3.0.0-develop.5) (2025-07-17)
137
+
138
+ ### Features
139
+
140
+ * **insertPlugins:** add, export `insertPlugin`; declare internal `insertAndSortPlugins`; fix false-positive error caused by `!0` ([8971599](https://github.com/HaloSPV3/HCE.Shared/commit/8971599585dc962d5be6e7c3cc084f8c1a65d71c))
141
+
142
+ ### Bug Fixes
143
+
144
+ * **dotnet.SemanticRelease:** append `@semantic-release/exec` plugin to plugins array if not found ([7eeafb2](https://github.com/HaloSPV3/HCE.Shared/commit/7eeafb2caab31358ecb91f8b3f1b885a11bc43b8))
145
+ * **dotnet.SemanticRelease:** set/append dummy pack, dummy push, and INVAP commands ([88a523e](https://github.com/HaloSPV3/HCE.Shared/commit/88a523e231a821b59b72af0dee785affa9889499))
146
+
147
+ ## [3.0.0-develop.4](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.3...v3.0.0-develop.4) (2025-07-16)
148
+
149
+ ### Bug Fixes
150
+
151
+ * **deps:** force `semantic-release-export-data` to use `@actions/core@1.11.1` to mitigate CVE-2025-22150 ([1b9cd9c](https://github.com/HaloSPV3/HCE.Shared/commit/1b9cd9c34f34b656f135ed9cd128366168df97b4))
152
+
153
+ ## [3.0.0-develop.3](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.2...v3.0.0-develop.3) (2025-07-16)
154
+
155
+ ### Bug Fixes
156
+
157
+ * don't forget to add the GHTuple object to the plugins list, overwriting the original GHTuple ([4b8e8a3](https://github.com/HaloSPV3/HCE.Shared/commit/4b8e8a3ec7215aa75785793006e6f0cd4a76ae60))
158
+
1
159
  ## [3.0.0-develop.2](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.1...v3.0.0-develop.2) (2025-07-16)
2
160
 
3
161
  ### ⚠ BREAKING CHANGES
@@ -14,9 +14,6 @@ jobs:
14
14
 
15
15
  runs-on: ${{ matrix.os }}
16
16
  steps:
17
- - uses: GitHubSecurityLab/actions-permissions/monitor@v1
18
- with:
19
- config: ${{ vars.PERMISSIONS_CONFIG }}
20
17
  - uses: actions/checkout@v4
21
18
  with:
22
19
  fetch-depth: 0
@@ -24,9 +24,6 @@ jobs:
24
24
  issues: write
25
25
  pull-requests: write
26
26
  steps:
27
- - uses: GitHubSecurityLab/actions-permissions/monitor@v1
28
- with:
29
- config: ${{ vars.PERMISSIONS_CONFIG }}
30
27
  ################
31
28
  # SETUP
32
29
  ################
@@ -9,9 +9,6 @@ jobs:
9
9
  build:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: GitHubSecurityLab/actions-permissions/monitor@v1
13
- with:
14
- config: ${{ vars.PERMISSIONS_CONFIG }}
15
12
  - uses: actions/checkout@v4
16
13
  with:
17
14
  submodules: 'recursive'
@@ -41,5 +41,5 @@
41
41
  </Target>
42
42
 
43
43
  <Target Name="PublishAll"
44
- DependsOnTargets="_PublishProjectIfFrameworkSetAndNotMultiRuntime;_PublishProjectIfFrameworkSetAndNotMultiRuntime;_PublishProjectForAllFrameworksIfFrameworkUnset" />
44
+ DependsOnTargets="_PublishProjectIfFrameworkSetAndNotMultiRuntime;_PublishProjectForAllFrameworksAndRuntimes;_PublishProjectForAllFrameworksIfFrameworkUnset" />
45
45
  </Project>
@@ -1,8 +1,8 @@
1
1
  <Project>
2
2
  <PropertyGroup>
3
3
  <RepoRoot Condition="'$(RepoRoot)' == '' And '$(ProjectRootDir)' != ''">$(ProjectRootDir)</RepoRoot>
4
- <RepoRoot Condition="'$(RepoRoot)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), '.git/index'))</RepoRoot>
5
- <RepoRootPublishDir>$(RepoRoot)/publish</RepoRootPublishDir>
4
+ <RepoRoot Condition="'$(RepoRoot)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), $([System.IO.Path]::Join('.git','index'))))</RepoRoot>
5
+ <RepoRootPublishDir>$([System.IO.Path]::Join("$(RepoRoot)", "publish"))</RepoRootPublishDir>
6
6
  <PackageOutputPath Condition="'$(PackageOutputPath)' == ''">$(RepoRootPublishDir)</PackageOutputPath>
7
7
  </PropertyGroup>
8
8
 
@@ -26,25 +26,22 @@
26
26
  - RuntimeIdentifier
27
27
  -->
28
28
  <AppendVariantArgs Condition="'$(AppendVariantArgs)' == ''">true</AppendVariantArgs>
29
-
30
- <appendVarArgs>$(AppendVariantArgs)</appendVarArgs>
31
- <RepoRootPublishDir>$(RepoRoot)/publish</RepoRootPublishDir>
32
-
29
+ <_appendVarArgs>$(AppendVariantArgs)</_appendVarArgs>
33
30
  <!-- Only add Configuration when Debug -->
34
- <dbgCfg Condition="'$(Configuration)' == 'Debug'">$(Configuration)</dbgCfg>
31
+ <_dbgCfg Condition="'$(Configuration)' == 'Debug'">$(Configuration)</_dbgCfg>
35
32
  <!-- "net6.0 win7-x86"
36
33
  "Debug net6.0 win7-x86" -->
37
- <spaceArgs Condition="'$(VariantArgs)' != ''">$(VariantArgs.Replace(";"," ").Trim())</spaceArgs>
38
- <spaceArgs Condition="'$(spaceArgs)' == ''">$([System.String]::Join(' ',$(dbgCfg), $(TargetFramework), $(RuntimeIdentifier)).Trim())</spaceArgs>
34
+ <_spaceArgs Condition="'$(VariantArgs)' != ''">$(VariantArgs.Replace(";"," ").Trim())</_spaceArgs>
35
+ <_spaceArgs Condition="'$(_spaceArgs)' == ''">$([System.String]::Join(' ',$(_dbgCfg), $(TargetFramework), $(RuntimeIdentifier)).Trim())</_spaceArgs>
39
36
  <!-- " (Debug net6.0 win7-x86)"
40
37
  " (net6.0 win7-x86)"
41
38
  "" -->
42
- <enclosedVArgs Condition="$(appendVarArgs) And '$(spaceArgs)' != ''"> ($(spaceArgs))</enclosedVArgs>
39
+ <_enclosedVArgs Condition="$(_appendVarArgs) And '$(_spaceArgs)' != ''"> ($(_spaceArgs))</_enclosedVArgs>
43
40
  <!-- " 1.2.3-preview.4"
44
41
  "" -->
45
- <version Condition="'$(Version)' != ''"> $(Version)</version>
42
+ <_spaceVersion Condition="'$(Version)' != ''"> $(Version)</_spaceVersion>
46
43
  <!-- "C:\Repos\HaloSPV3\HXE\publish\HXE 1.2.3-preview.4 (net6.0 win7-x86).zip" -->
47
- <DestinationFile>$(RepoRootPublishDir)/$(AssemblyName)$(version)$(enclosedVArgs).zip</DestinationFile>
44
+ <DestinationFile>$([System.IO.Path]::Join("$(RepoRootPublishDir)", "$(AssemblyName)$(_spaceVersion)$(_enclosedVArgs).zip"))</DestinationFile>
48
45
  <!-- todo: look into .NET 8 SDK's Artifacts feature -->
49
46
  </PropertyGroup>
50
47
 
@@ -54,33 +51,31 @@
54
51
  DestinationFile="$(DestinationFile)"
55
52
  Overwrite="true" />
56
53
 
57
- <Message Text="Publish assets zipped to '$(DestinationFile)'." Importance="high"/>
54
+ <Message Text="Publish assets zipped to '$(DestinationFile)'." Importance="high"/>
58
55
  </Target>
59
56
 
60
57
  <!-- placeholder values for HCE.Shared ONLY -->
61
- <PropertyGroup Condition="$([System.String]::Copy($(MSBuildProjectDirectory)).ToLowerInvariant().Contains('hce.shared'))">
62
- <Configuration>Release</Configuration>
63
- <TargetFramework>net6.0</TargetFramework>
64
- <RuntimeIdentifier>win7-x86</RuntimeIdentifier>
65
- <RuntimeIdentifiers>;;;win7-x86;win7-x64;;;</RuntimeIdentifiers>
66
- <ZipPublishDir_AppendVariantArgs>true</ZipPublishDir_AppendVariantArgs>
58
+ <PropertyGroup Condition="$([System.String]::Copy($(RepoRoot)).ToLowerInvariant().Contains('hce.shared'))">
59
+ <Configuration Condition="'$(Configuration)'==''">Release</Configuration>
60
+ <TargetFramework Condition="'$(TargetFramework)'==''">net6.0</TargetFramework>
61
+ <RuntimeIdentifier Condition="'$(RuntimeIdentifiers)'=='' AND '$(RuntimeIdentifier)'==''">win7-x86</RuntimeIdentifier>
62
+ <RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)'==''">win7-x86;win7-x64</RuntimeIdentifiers>
63
+ <ZipPublishDir_AppendVariantArgs Condition="'$(ZipPublishDir_AppendVariantArgs)'==''">true</ZipPublishDir_AppendVariantArgs>
67
64
  <!-- <VariantArgs>$(MSBuildProjectName);$(Configuration)</VariantArgs> -->
68
65
 
69
66
  <!-- -->
70
67
 
71
- <appendVarArgs>$(ZipPublishDir_AppendVariantArgs)</appendVarArgs>
72
- <dbgCfg Condition="'$(Configuration)' == 'Debug'">$(Configuration)</dbgCfg>
68
+ <_appendVarArgs>$(ZipPublishDir_AppendVariantArgs)</_appendVarArgs>
69
+ <_dbgCfg Condition="'$(Configuration)' == 'Debug'">$(Configuration)</_dbgCfg>
73
70
  <!-- "net6.0 win7-x86" -->
74
- <spaceArgs Condition="'$(VariantArgs)' != ''">$(VariantArgs.Replace(";"," ").Trim())</spaceArgs>
75
- <spaceArgs Condition="'$(spaceArgs)' == ''">$([System.String]::Join(' ',$(dbgCfg), $(TargetFramework), $(RuntimeIdentifier)).Trim())</spaceArgs>
71
+ <_spaceArgs Condition="'$(VariantArgs)'!=''">$(VariantArgs.Replace(";"," ").Trim())</_spaceArgs>
72
+ <_spaceArgs Condition="'$(_spaceArgs)'==''">$([System.String]::Join(' ',$(_dbgCfg), $(TargetFramework), $(RuntimeIdentifier)).Trim())</_spaceArgs>
76
73
  <!-- " (net6.0 win7-x86)" -->
77
- <enclosedVArgs Condition="$(appendVarArgs) And '$(spaceArgs)' != ''"> ($(spaceArgs))</enclosedVArgs>
74
+ <_enclosedVArgs Condition="'$(_appendVarArgs)' == 'true' And '$(_spaceArgs)' != ''"> ($(_spaceArgs))</_enclosedVArgs>
78
75
  <!-- "win7-x86 win7-x64" -->
79
- <spaceSeparatedRIDs Condition="$(RuntimeIdentifiers) != ''">$(RuntimeIdentifiers.ToString().Replace(";"," ").Trim())</spaceSeparatedRIDs>
76
+ <_spaceSeparatedRIDs Condition="$(RuntimeIdentifiers) != ''">$(RuntimeIdentifiers.ToString().Replace(";"," ").Trim())</_spaceSeparatedRIDs>
80
77
  <!-- " (win7-x86 win7-x64)" -->
81
- <enclosedRIDs Condition="$(appendVarArgs) And '$(spaceSeparatedRIDs)' != ''"> ($(spaceSeparatedRIDs))</enclosedRIDs>
82
- <Version>1.0.0</Version>
83
- <version Condition="'$(Version)' != ''"> $(Version)</version>
84
-
78
+ <enclosedRIDs Condition="'$(_appendVarArgs)' == 'true' And '$(_spaceSeparatedRIDs)' != ''"> ($(_spaceSeparatedRIDs))</enclosedRIDs>
79
+ <_spaceVersion Condition="'$(Version)' == ''"> 1.0.0</_spaceVersion>
85
80
  </PropertyGroup>
86
81
  </Project>
@@ -0,0 +1,12 @@
1
+ /**
2
+ * https://stackoverflow.com/a/50022230/14894786
3
+ * licensed under CC BY-SA 4.0
4
+ * changes: add overrides, remove "as any", remove empty lines
5
+ */
6
+ export declare class CaseInsensitiveMap<T, U> extends Map<T, U> {
7
+ delete(key: T): boolean;
8
+ get(key: T): U | undefined;
9
+ has(key: T): boolean;
10
+ set(key: T, value: U): this;
11
+ }
12
+ //# sourceMappingURL=CaseInsensitiveMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseInsensitiveMap.d.ts","sourceRoot":"","sources":["../src/CaseInsensitiveMap.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO;IAOvB,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAO1B,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO;IAOpB,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;CAMrC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * https://stackoverflow.com/a/50022230/14894786
3
+ * licensed under CC BY-SA 4.0
4
+ * changes: add overrides, remove "as any", remove empty lines
5
+ */
6
+ class CaseInsensitiveMap extends Map {
7
+ delete(key) {
8
+ if (typeof key === 'string') {
9
+ key = key.toLowerCase();
10
+ }
11
+ return super.delete(key);
12
+ }
13
+ get(key) {
14
+ if (typeof key === 'string') {
15
+ key = key.toLowerCase();
16
+ }
17
+ return super.get(key);
18
+ }
19
+ has(key) {
20
+ if (typeof key === 'string') {
21
+ key = key.toLowerCase();
22
+ }
23
+ return super.has(key);
24
+ }
25
+ set(key, value) {
26
+ if (typeof key === 'string') {
27
+ key = key.toLowerCase();
28
+ }
29
+ return super.set(key, value);
30
+ }
31
+ }
32
+ export { CaseInsensitiveMap };
33
+ //# sourceMappingURL=CaseInsensitiveMap.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaseInsensitiveMap.mjs","sources":["../src/CaseInsensitiveMap.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,kBAAkB,SAAS,GAAG,CAAC;AAC5C,EAAE,MAAM,CAAC,GAAG,EAAE;AACd,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AACjC,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE;AAC7B;AACA,IAAI,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC;AAC5B;AACA,EAAE,GAAG,CAAC,GAAG,EAAE;AACX,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AACjC,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE;AAC7B;AACA,IAAI,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC;AACzB;AACA,EAAE,GAAG,CAAC,GAAG,EAAE;AACX,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AACjC,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE;AAC7B;AACA,IAAI,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC;AACzB;AACA,EAAE,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE;AAClB,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AACjC,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,EAAE;AAC7B;AACA,IAAI,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC;AAChC;AACA;;;;"}
@@ -0,0 +1,12 @@
1
+ import type { RuleConfigSeverity, UserConfig } from '@commitlint/types';
2
+ declare const disabled: RuleConfigSeverity.Disabled;
3
+ declare const commitlintConfig: UserConfig & {
4
+ extends: UserConfig['extends'] | ['@commitlint/config-conventional'];
5
+ rules: {
6
+ 'body-max-line-length': [typeof disabled];
7
+ 'footer-max-line-length': [typeof disabled];
8
+ 'header-max-length': [typeof disabled];
9
+ };
10
+ };
11
+ export default commitlintConfig;
12
+ //# sourceMappingURL=commitlintConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commitlintConfig.d.ts","sourceRoot":"","sources":["../src/commitlintConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIxE,QAAA,MAAM,QAAQ,EAAQ,kBAAkB,CAAC,QAAQ,CAAC;AAClD,QAAA,MAAM,gBAAgB,EAAE,UAAU,GAAG;IACnC,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IACrE,KAAK,EAAE;QACL,sBAAsB,EAAE,CAAC,OAAO,QAAQ,CAAC,CAAC;QAC1C,wBAAwB,EAAE,CAAC,OAAO,QAAQ,CAAC,CAAC;QAC5C,mBAAmB,EAAE,CAAC,OAAO,QAAQ,CAAC,CAAC;KACxC,CAAC;CAQH,CAAC;AAGF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,13 @@
1
+ // explicit type annotations for isolatedDeclarations. Allows for faster processing.
2
+
3
+ const disabled = 0;
4
+ const commitlintConfig = {
5
+ extends: ['@commitlint/config-conventional'],
6
+ rules: {
7
+ 'body-max-line-length': [disabled],
8
+ 'footer-max-line-length': [disabled],
9
+ 'header-max-length': [disabled]
10
+ }
11
+ };
12
+ export { commitlintConfig as default };
13
+ //# sourceMappingURL=commitlintConfig.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commitlintConfig.mjs","sources":["../src/commitlintConfig.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;;AAEA,MAAM,QAAQ,GAAG,CAAC;AACb,MAAC,gBAAgB,GAAG;AACzB,EAAE,OAAO,EAAE,CAAC,iCAAiC,CAAC;AAC9C,EAAE,KAAK,EAAE;AACT,IAAI,sBAAsB,EAAE,CAAC,QAAQ,CAAC;AACtC,IAAI,wBAAwB,EAAE,CAAC,QAAQ,CAAC;AACxC,IAAI,mBAAmB,EAAE,CAAC,QAAQ;AAClC;AACA;;;;"}
package/mjs/debug.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { type Debugger } from 'debug';
2
+ declare const _debug: Debugger & {
3
+ log: never;
4
+ };
5
+ export default _debug;
6
+ //# sourceMappingURL=debug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../src/debug.ts"],"names":[],"mappings":"AACA,OAAuB,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtD,QAAA,MAAM,MAAM,EAAoD,QAAQ,GAAG;IAAE,GAAG,EAAE,KAAK,CAAA;CAAE,CAAC;AAM1F,eAAe,MAAM,CAAC"}
package/mjs/debug.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import createDebugger from 'debug';
2
+
3
+ // note: @types/debug is incorrect. There is no .log function!
4
+ const _debug = createDebugger('@halospv3/hce.shared-config');
5
+ if (process.argv.some(v => v.includes('--debug')) || createDebugger.enabled('@halospv3/hce.shared-config')) {
6
+ createDebugger.enable(_debug.namespace);
7
+ }
8
+ export { _debug as default };
9
+ //# sourceMappingURL=debug.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.mjs","sources":["../src/debug.ts"],"sourcesContent":null,"names":[],"mappings":";;AAAA;AAEK,MAAC,MAAM,GAAG,cAAc,CAAC,6BAA6B;AAC3D,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,6BAA6B,CAAC,EAAE;AAC5G,EAAE,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;AACzC;;;;"}
@@ -0,0 +1,38 @@
1
+ import type { Type } from 'arktype';
2
+ import type { MSBuildProject, MSBuildEvaluationOutput } from './MSBuildProject.js';
3
+ import type { NugetProjectProperties } from './NugetProjectProperties.js';
4
+ import { NugetRegistryInfo } from './NugetRegistryInfo.js';
5
+ import type { Default } from 'arktype/internal/attributes.ts';
6
+ export declare const DefaultGithubTokenEnvVars: readonly ['GH_TOKEN', 'GITHUB_TOKEN'];
7
+ export declare class GithubNugetRegistryInfo extends NugetRegistryInfo {
8
+ static readonly NUGET_PKG_GITHUB_COM = "https://nuget.pkg.github.com";
9
+ /**
10
+ * Creates an instance of GithubNugetRegistryInfo.
11
+ * @param opts The input type of {@link GHNRIOpts.from}
12
+ */
13
+ constructor(opts: typeof GHNRIOpts.inferIn);
14
+ /**
15
+ * Returns `https://nuget.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/index.json`
16
+ * or (if GITHUB_REPOSITORY_OWNER is not defined in {@link process.env} nor
17
+ * {@link process.cwd() $CWD}/.env) `undefined`.
18
+ * @returns If GITHUB_REPOSITORY_OWNER is defined, returns the GitHub Package Repository URL endpoint for NuGet pushes (--source).\
19
+ * Otherwise, returns `undefined`
20
+ */
21
+ static getNugetGitHubUrl(): string | undefined;
22
+ }
23
+ /**
24
+ * The default value of {@link GHNRIOpts.t.source `source`} is dependent on
25
+ * {@link GHNRI.getNugetGitHubUrl} and will default to an empty string if the
26
+ * environment variable `GITHUB_REPOSITORY_OWNER` is undefined!
27
+ */
28
+ export declare const GHNRIOpts: Type<{
29
+ project: MSBuildProject | {
30
+ readonly Items: Readonly<Required<MSBuildEvaluationOutput>['Items']>;
31
+ readonly Properties: Readonly<NugetProjectProperties>;
32
+ readonly Targets: readonly string[];
33
+ readonly TargetResults: Required<MSBuildEvaluationOutput>['TargetResults'][];
34
+ };
35
+ source: Default<string, string>;
36
+ tokenEnvVars: Default<readonly string[], readonly ['GH_TOKEN', 'GITHUB_TOKEN']>;
37
+ }>;
38
+ //# sourceMappingURL=GithubNugetRegistryInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GithubNugetRegistryInfo.d.ts","sourceRoot":"","sources":["../../src/dotnet/GithubNugetRegistryInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAG9D,eAAO,MAAM,yBAAyB,EAAE,SAAS,CAAC,UAAU,EAAE,cAAc,CAG1E,CAAC;AAEH,qBAAa,uBAAwB,SAAQ,iBAAiB;IAC5D,MAAM,CAAC,QAAQ,CAAC,oBAAoB,kCAAkC;IAGtE;;;OAGG;gBACS,IAAI,EAAE,OAAO,SAAS,CAAC,OAAO;IAI1C;;;;;;OAMG;IACH,MAAM,CAAC,iBAAiB,IAAI,MAAM,GAAG,SAAS;CAM/C;AAGD;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC;IAC3B,OAAO,EAAE,cAAc,GAAG;QACxB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACrE,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;QACtD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;QACpC,QAAQ,CAAC,aAAa,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC;KAC9E,CAAC;IACF,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,EAAE,OAAO,CAAC,SAAS,MAAM,EAAE,EAAE,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;CACjF,CASC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { getEnvVarValue } from '../utils/env.mjs';
2
+ import { NugetRegistryInfo, NRIOptsBase } from './NugetRegistryInfo.mjs';
3
+ const NUGET_PKG_GITHUB_COM = 'https://nuget.pkg.github.com';
4
+ const DefaultGithubTokenEnvVars = Object.freeze(['GH_TOKEN', 'GITHUB_TOKEN']);
5
+ class GithubNugetRegistryInfo extends NugetRegistryInfo {
6
+ static NUGET_PKG_GITHUB_COM = 'https://nuget.pkg.github.com';
7
+
8
+ // GithubNugetRegistryInfo.CtorArgs(...) behaves differently than NugetRegistryInfo.CtorArgs(...)
9
+ /**
10
+ * Creates an instance of GithubNugetRegistryInfo.
11
+ * @param opts The input type of {@link GHNRIOpts.from}
12
+ */
13
+ constructor(opts) {
14
+ super(GHNRIOpts.from(opts));
15
+ }
16
+
17
+ /**
18
+ * Returns `https://nuget.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/index.json`
19
+ * or (if GITHUB_REPOSITORY_OWNER is not defined in {@link process.env} nor
20
+ * {@link process.cwd() $CWD}/.env) `undefined`.
21
+ * @returns If GITHUB_REPOSITORY_OWNER is defined, returns the GitHub Package Repository URL endpoint for NuGet pushes (--source).\
22
+ * Otherwise, returns `undefined`
23
+ */
24
+ static getNugetGitHubUrl() {
25
+ const owner = getEnvVarValue('GITHUB_REPOSITORY_OWNER');
26
+ return owner === undefined ? undefined : `${NUGET_PKG_GITHUB_COM}/${owner}/index.json`;
27
+ }
28
+ }
29
+ const GHNRI = GithubNugetRegistryInfo;
30
+
31
+ /**
32
+ * The default value of {@link GHNRIOpts.t.source `source`} is dependent on
33
+ * {@link GHNRI.getNugetGitHubUrl} and will default to an empty string if the
34
+ * environment variable `GITHUB_REPOSITORY_OWNER` is undefined!
35
+ */
36
+ const GHNRIOpts = NRIOptsBase.merge({
37
+ /** @see {@link GHNRI.getNugetGitHubUrl } */
38
+ source: NRIOptsBase.get('source').default(() => GHNRI.getNugetGitHubUrl() ?? ''),
39
+ tokenEnvVars: NRIOptsBase.get('tokenEnvVars').default(/* must be a function. A fixed-length array is NOT a primitive type! */
40
+ () => DefaultGithubTokenEnvVars)
41
+ });
42
+ export { DefaultGithubTokenEnvVars, GHNRIOpts, GithubNugetRegistryInfo };
43
+ //# sourceMappingURL=GithubNugetRegistryInfo.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GithubNugetRegistryInfo.mjs","sources":["../../src/dotnet/GithubNugetRegistryInfo.ts"],"sourcesContent":null,"names":[],"mappings":";;;AAEA,MAAM,oBAAoB,GAAG,8BAA8B;AAC/C,MAAC,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC;AAC5E,MAAM,uBAAuB,SAAS,iBAAiB,CAAC;AAC/D,EAAE,OAAO,oBAAoB,GAAG,8BAA8B;;AAE9D;AACA;AACA;AACA;AACA;AACA,EAAE,WAAW,CAAC,IAAI,EAAE;AACpB,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,OAAO,iBAAiB,GAAG;AAC7B,IAAI,MAAM,KAAK,GAAG,cAAc,CAAC,yBAAyB,CAAC;AAC3D,IAAI,OAAO,KAAK,KAAK,SAAS,GAAG,SAAS,GAAG,CAAC,EAAE,oBAAoB,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;AAC1F;AACA;AACA,MAAM,KAAK,GAAG,uBAAuB;;AAErC;AACA;AACA;AACA;AACA;AACY,MAAC,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC;AAC3C;AACA,EAAE,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,iBAAiB,EAAE,IAAI,EAAE,CAAC;AAClF,EAAE,YAAY,EAAE,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,OAAO;AACvD,EAAE,MAAM,yBAAyB;AACjC,CAAC;;;;"}
@@ -0,0 +1,62 @@
1
+ import { NugetRegistryInfo } from './NugetRegistryInfo.js';
2
+ import type { Out } from 'arktype';
3
+ import type { Default } from 'arktype/internal/attributes.ts';
4
+ import type { ObjectType } from 'arktype/internal/methods/object.ts';
5
+ import type { MSBuildProject, MSBuildEvaluationOutput } from './MSBuildProject.js';
6
+ import type { NugetProjectProperties } from './NugetProjectProperties.js';
7
+ export declare class GitlabNugetRegistryInfo extends NugetRegistryInfo {
8
+ /**
9
+ * The GitLab API v4 root URL.
10
+ * @returns The value of the environment variable `CI_API_V4_URL`.
11
+ * If that's `undefined`, 'https://gitlab.com/api/v4' is returned, instead.
12
+ */
13
+ static get CI_API_V4_URL(): string;
14
+ /**
15
+ * CI_PROJECT_ID - If you want to publish to your GitLab server, this needs to be set to the Id of the project you want to publish to. When running in GitLab CI this is already set to the project the pipeline runs in by GitLab.
16
+ * This method checks the contents of your `.env` file, if present.
17
+ * @returns The value of the environment variable `CI_PROJECT_ID` or `undefined`.
18
+ * @todo add URI encoded project pathname as alternative e.g. 'halospv3%2FHCE.Shared' in 'https://gitlab.com/api/v4/projects/halospv3%2FHCE.Shared'
19
+ */
20
+ static get projectId(): string | undefined;
21
+ /**
22
+ * CI_PROJECT_NAMESPACE_ID
23
+ * This method checks the contents of your `.env` file, if present.
24
+ * @returns The value of the environment variable 'CI_PROJECT_NAMESPACE_ID' or `undefined`.
25
+ */
26
+ static get ownerId(): string | undefined;
27
+ static readonly DefaultGitlabTokenEnvVars: readonly ['GL_TOKEN', 'GITLAB_TOKEN', 'CI_JOB_TOKEN'];
28
+ /**
29
+ * Creates an instance of GitlabNugetRegistryInfo.
30
+ * @param opts The input type of {@link GLNRIOpts.from}
31
+ */
32
+ constructor(opts: typeof GLNRIOpts.inferIn);
33
+ /**
34
+ * Get the GitLab Nuget API for your project url as seen in https://docs.gitlab.com/ee/user/packages/nuget_repository/index.html#publish-a-nuget-package-by-using-cicd
35
+ * ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/nuget/index.json
36
+ * @returns If {@link this.projectId} is a string, a string formatted like
37
+ * `${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/nuget/index.json`.
38
+ * Else, {@link Error}.
39
+ */
40
+ static get projectUrl(): string | Error;
41
+ /**
42
+ * ${CI_API_V4_URL}/groups/${CI_PROJECT_NAMESPACE_ID}/-/packages/nuget/index.json
43
+ * @returns If {@link ownerId} is a string, then a string formatted like
44
+ * `${CI_API_V4_URL}/groups/${CI_PROJECT_NAMESPACE_ID}/-/packages/nuget/index.json`.
45
+ * Else, {@link Error}.
46
+ */
47
+ static get groupUrl(): string | Error;
48
+ }
49
+ /**
50
+ * The Arktype definition for {@link GitlabNugetRegistryInfo}'s constructor parameter. Construct an object of this type by calling {@link GLNRIOpts.from}
51
+ */
52
+ export declare const GLNRIOpts: ObjectType<{
53
+ project: MSBuildProject | {
54
+ readonly Items: Readonly<Required<MSBuildEvaluationOutput>['Items']>;
55
+ readonly Properties: Readonly<NugetProjectProperties>;
56
+ readonly Targets: readonly string[];
57
+ readonly TargetResults: Required<MSBuildEvaluationOutput>['TargetResults'][];
58
+ };
59
+ tokenEnvVars: Default<readonly string[], readonly ['GL_TOKEN', 'GITLAB_TOKEN', 'CI_JOB_TOKEN']>;
60
+ source: (In: Default<string | Error, string | Error>) => Out<string | Error>;
61
+ }>;
62
+ //# sourceMappingURL=GitlabNugetRegistryInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GitlabNugetRegistryInfo.d.ts","sourceRoot":"","sources":["../../src/dotnet/GitlabNugetRegistryInfo.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EAGlB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAG1E,qBAAa,uBAAwB,SAAQ,iBAAiB;IAC5D;;;;OAIG;IACH,MAAM,KAAK,aAAa,IAAI,MAAM,CAEjC;IAED;;;;;OAKG;IACH,MAAM,KAAK,SAAS,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED;;;;OAIG;IACH,MAAM,KAAK,OAAO,IAAI,MAAM,GAAG,SAAS,CAEvC;IAED,MAAM,CAAC,QAAQ,CAAC,yBAAyB,EAAE,SAAS,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC,CAIpF;IAEZ;;;OAGG;gBACS,IAAI,EAAE,OAAO,SAAS,CAAC,OAAO;IAO1C;;;;;;OAMG;IACH,MAAM,KAAK,UAAU,IAAI,MAAM,GAAG,KAAK,CAItC;IAED;;;;;OAKG;IACH,MAAM,KAAK,QAAQ,IAAI,MAAM,GAAG,KAAK,CAIpC;CACF;AAGD;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC;IACjC,OAAO,EAAE,cAAc,GAAG;QACxB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACrE,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;QACtD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;QACpC,QAAQ,CAAC,aAAa,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC;KAC9E,CAAC;IACF,YAAY,EAAE,OAAO,CAAC,SAAS,MAAM,EAAE,EAAE,SAAS,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC;IAChG,MAAM,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,MAAM,GAAG,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,KAAK,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;CAC9E,CA0BC,CAAC"}