@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.
Files changed (290) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/dotnet/.github/workflows/_unit_test.yml +1 -1
  4. package/mjs/CaseInsensitiveMap.d.mts +15 -0
  5. package/mjs/CaseInsensitiveMap.d.mts.map +1 -0
  6. package/mjs/CaseInsensitiveMap.mjs +2 -33
  7. package/mjs/CaseInsensitiveMap.mjs.map +1 -1
  8. package/mjs/commitlintConfig.d.mts +15 -0
  9. package/mjs/commitlintConfig.d.mts.map +1 -0
  10. package/mjs/commitlintConfig.mjs +2 -13
  11. package/mjs/commitlintConfig.mjs.map +1 -1
  12. package/mjs/debug.d.mts +9 -0
  13. package/mjs/debug.d.mts.map +1 -0
  14. package/mjs/debug.mjs +2 -9
  15. package/mjs/debug.mjs.map +1 -1
  16. package/mjs/dotnet/GithubNugetRegistryInfo.d.mts +42 -0
  17. package/mjs/dotnet/GithubNugetRegistryInfo.d.mts.map +1 -0
  18. package/mjs/dotnet/GithubNugetRegistryInfo.mjs +2 -43
  19. package/mjs/dotnet/GithubNugetRegistryInfo.mjs.map +1 -1
  20. package/mjs/dotnet/GitlabNugetRegistryInfo.d.mts +65 -0
  21. package/mjs/dotnet/GitlabNugetRegistryInfo.d.mts.map +1 -0
  22. package/mjs/dotnet/GitlabNugetRegistryInfo.mjs +2 -99
  23. package/mjs/dotnet/GitlabNugetRegistryInfo.mjs.map +1 -1
  24. package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.mts +1 -0
  25. package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs +2 -44
  26. package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs.map +1 -1
  27. package/mjs/dotnet/MSBuildProject.d.mts +267 -0
  28. package/mjs/dotnet/MSBuildProject.d.mts.map +1 -0
  29. package/mjs/dotnet/MSBuildProject.mjs +3 -490
  30. package/mjs/dotnet/MSBuildProject.mjs.map +1 -1
  31. package/mjs/dotnet/MSBuildProjectProperties.d.mts +172 -0
  32. package/mjs/dotnet/MSBuildProjectProperties.d.mts.map +1 -0
  33. package/mjs/dotnet/MSBuildProjectProperties.mjs +2 -260
  34. package/mjs/dotnet/MSBuildProjectProperties.mjs.map +1 -1
  35. package/mjs/dotnet/NugetProjectProperties.d.mts +381 -0
  36. package/mjs/dotnet/NugetProjectProperties.d.mts.map +1 -0
  37. package/mjs/dotnet/NugetProjectProperties.mjs +2 -577
  38. package/mjs/dotnet/NugetProjectProperties.mjs.map +1 -1
  39. package/mjs/dotnet/NugetRegistryInfo.d.mts +387 -0
  40. package/mjs/dotnet/NugetRegistryInfo.d.mts.map +1 -0
  41. package/mjs/dotnet/NugetRegistryInfo.mjs +4 -752
  42. package/mjs/dotnet/NugetRegistryInfo.mjs.map +1 -1
  43. package/mjs/dotnet/helpers.d.mts +66 -0
  44. package/mjs/dotnet/helpers.d.mts.map +1 -0
  45. package/mjs/dotnet/helpers.mjs +2 -354
  46. package/mjs/dotnet/helpers.mjs.map +1 -1
  47. package/mjs/dotnet/index.d.mts +8 -0
  48. package/mjs/dotnet/index.mjs +1 -9
  49. package/mjs/dotnet.d.mts +8 -0
  50. package/mjs/dotnet.mjs +1 -9
  51. package/mjs/eslintConfig.d.mts +7 -0
  52. package/mjs/eslintConfig.d.mts.map +1 -0
  53. package/mjs/eslintConfig.mjs +2 -64
  54. package/mjs/eslintConfig.mjs.map +1 -1
  55. package/mjs/index.d.mts +2 -0
  56. package/mjs/index.mjs +1 -4
  57. package/mjs/insertPlugins.d.mts +22 -0
  58. package/mjs/insertPlugins.d.mts.map +1 -0
  59. package/mjs/insertPlugins.mjs +2 -73
  60. package/mjs/insertPlugins.mjs.map +1 -1
  61. package/mjs/semantic-release__commit-analyzer.d.mts +44 -0
  62. package/mjs/semantic-release__commit-analyzer.d.mts.map +1 -0
  63. package/mjs/semantic-release__exec.d.mts +17 -0
  64. package/mjs/semantic-release__exec.d.mts.map +1 -0
  65. package/mjs/semantic-release__git.d.mts +83 -0
  66. package/mjs/semantic-release__git.d.mts.map +1 -0
  67. package/mjs/semantic-release__github.d.mts +141 -0
  68. package/mjs/semantic-release__github.d.mts.map +1 -0
  69. package/mjs/semanticReleaseConfig.d.mts +94 -0
  70. package/mjs/semanticReleaseConfig.d.mts.map +1 -0
  71. package/mjs/semanticReleaseConfig.mjs +2 -63
  72. package/mjs/semanticReleaseConfig.mjs.map +1 -1
  73. package/mjs/semanticReleaseConfigDotnet.d.mts +96 -0
  74. package/mjs/semanticReleaseConfigDotnet.d.mts.map +1 -0
  75. package/mjs/semanticReleaseConfigDotnet.mjs +7 -274
  76. package/mjs/semanticReleaseConfigDotnet.mjs.map +1 -1
  77. package/mjs/setupGitPluginSpec.d.mts +18 -0
  78. package/mjs/setupGitPluginSpec.d.mts.map +1 -0
  79. package/mjs/setupGitPluginSpec.default.d.mts +13 -0
  80. package/mjs/setupGitPluginSpec.default.d.mts.map +1 -0
  81. package/mjs/setupGitPluginSpec.default.mjs +4 -0
  82. package/mjs/setupGitPluginSpec.default.mjs.map +1 -0
  83. package/mjs/setupGitPluginSpec.mjs +2 -144
  84. package/mjs/setupGitPluginSpec.mjs.map +1 -1
  85. package/mjs/utils/Exact.d.mts +18 -0
  86. package/mjs/utils/Exact.d.mts.map +1 -0
  87. package/mjs/utils/Exact.mjs +2 -75
  88. package/mjs/utils/Exact.mjs.map +1 -1
  89. package/mjs/utils/GracefulRecursion.d.mts +14 -0
  90. package/mjs/utils/GracefulRecursion.d.mts.map +1 -0
  91. package/mjs/utils/env.d.mts +28 -0
  92. package/mjs/utils/env.d.mts.map +1 -0
  93. package/mjs/utils/env.mjs +2 -47
  94. package/mjs/utils/env.mjs.map +1 -1
  95. package/mjs/utils/execAsync.d.mts +40 -0
  96. package/mjs/utils/execAsync.d.mts.map +1 -0
  97. package/mjs/utils/execAsync.mjs +10 -59
  98. package/mjs/utils/execAsync.mjs.map +1 -1
  99. package/mjs/utils/isError.d.mts +14 -0
  100. package/mjs/utils/isError.d.mts.map +1 -0
  101. package/mjs/utils/isError.mjs +2 -19
  102. package/mjs/utils/isError.mjs.map +1 -1
  103. package/mjs/utils/miscTypes.d.mts +16 -0
  104. package/mjs/utils/miscTypes.d.mts.map +1 -0
  105. package/mjs/utils/miscTypes.mjs +2 -10
  106. package/mjs/utils/miscTypes.mjs.map +1 -1
  107. package/mjs/utils/reflection/FunctionLike.d.mts +17 -0
  108. package/mjs/utils/reflection/FunctionLike.d.mts.map +1 -0
  109. package/mjs/utils/reflection/GetterDescriptor.d.mts +11 -0
  110. package/mjs/utils/reflection/GetterDescriptor.d.mts.map +1 -0
  111. package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mts +26 -0
  112. package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mts.map +1 -0
  113. package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mts +17 -0
  114. package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mts.map +1 -0
  115. package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mts +18 -0
  116. package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mts.map +1 -0
  117. package/mjs/utils/reflection/OwnKeyOf.d.mts +15 -0
  118. package/mjs/utils/reflection/OwnKeyOf.d.mts.map +1 -0
  119. package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mts +15 -0
  120. package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mts.map +1 -0
  121. package/mjs/utils/reflection/PropertyDescriptorMap.d.mts +13 -0
  122. package/mjs/utils/reflection/PropertyDescriptorMap.d.mts.map +1 -0
  123. package/mjs/utils/reflection/filterForGetters.d.mts +11 -0
  124. package/mjs/utils/reflection/filterForGetters.d.mts.map +1 -0
  125. package/mjs/utils/reflection/filterForGetters.mjs +2 -27
  126. package/mjs/utils/reflection/filterForGetters.mjs.map +1 -1
  127. package/mjs/utils/reflection/getOwnPropertyDescriptors.d.mts +26 -0
  128. package/mjs/utils/reflection/getOwnPropertyDescriptors.d.mts.map +1 -0
  129. package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs +2 -34
  130. package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs.map +1 -1
  131. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.mts +51 -0
  132. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.mts.map +1 -0
  133. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs +2 -72
  134. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs.map +1 -1
  135. package/mjs/utils/reflection/getPrototypeChainOf.d.mts +19 -0
  136. package/mjs/utils/reflection/getPrototypeChainOf.d.mts.map +1 -0
  137. package/mjs/utils/reflection/getPrototypeChainOf.mjs +2 -55
  138. package/mjs/utils/reflection/getPrototypeChainOf.mjs.map +1 -1
  139. package/mjs/utils/reflection/getPrototypeOf.d.mts +12 -0
  140. package/mjs/utils/reflection/getPrototypeOf.d.mts.map +1 -0
  141. package/mjs/utils/reflection/getPrototypeOf.mjs +2 -10
  142. package/mjs/utils/reflection/getPrototypeOf.mjs.map +1 -1
  143. package/mjs/utils/reflection/inheritance.d.mts +173 -0
  144. package/mjs/utils/reflection/inheritance.d.mts.map +1 -0
  145. package/mjs/utils/reflection/inheritance.mjs +2 -148
  146. package/mjs/utils/reflection/inheritance.mjs.map +1 -1
  147. package/mjs/utils/reflection/isConstructor.d.mts +20 -0
  148. package/mjs/utils/reflection/isConstructor.d.mts.map +1 -0
  149. package/mjs/utils/reflection/isConstructor.mjs +2 -63
  150. package/mjs/utils/reflection/isConstructor.mjs.map +1 -1
  151. package/mjs/utils/reflection/isGetterDescriptor.d.mts +13 -0
  152. package/mjs/utils/reflection/isGetterDescriptor.d.mts.map +1 -0
  153. package/mjs/utils/reflection/isGetterDescriptor.mjs +2 -12
  154. package/mjs/utils/reflection/isGetterDescriptor.mjs.map +1 -1
  155. package/mjs/utils/reflection/listOwnGetters.d.mts +29 -0
  156. package/mjs/utils/reflection/listOwnGetters.d.mts.map +1 -0
  157. package/mjs/utils/reflection/listOwnGetters.mjs +2 -39
  158. package/mjs/utils/reflection/listOwnGetters.mjs.map +1 -1
  159. package/mjs/utils/reflection.d.mts +18 -0
  160. package/mjs/utils/reflection.mjs +1 -10
  161. package/package.json +102 -65
  162. package/src/debug.ts +1 -0
  163. package/src/dotnet/GithubNugetRegistryInfo.ts +4 -4
  164. package/src/dotnet/GitlabNugetRegistryInfo.ts +5 -5
  165. package/src/dotnet/IsNextVersionAlreadyPublished.cli.ts +2 -1
  166. package/src/dotnet/MSBuildProject.ts +8 -7
  167. package/src/dotnet/MSBuildProjectProperties.ts +4 -3
  168. package/src/dotnet/NugetProjectProperties.ts +4 -4
  169. package/src/dotnet/NugetRegistryInfo.ts +9 -8
  170. package/src/dotnet/helpers.ts +5 -4
  171. package/src/dotnet/index.ts +8 -8
  172. package/src/dotnet.ts +1 -1
  173. package/src/index.ts +1 -1
  174. package/src/semanticReleaseConfig.ts +5 -1
  175. package/src/semanticReleaseConfigDotnet.ts +10 -8
  176. package/src/setupGitPluginSpec.default.ts +22 -0
  177. package/src/setupGitPluginSpec.ts +4 -21
  178. package/src/tsconfig.json +1 -2
  179. package/src/utils/execAsync.ts +1 -1
  180. package/src/utils/reflection/InstancePropertyDescriptorMap.d.ts +1 -1
  181. package/src/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.ts +2 -2
  182. package/src/utils/reflection/OwnGetterDescriptorMap.d.ts +2 -2
  183. package/src/utils/reflection/filterForGetters.ts +5 -5
  184. package/src/utils/reflection/getOwnPropertyDescriptors.ts +4 -4
  185. package/src/utils/reflection/getOwnPropertyDescriptorsRecursively.ts +12 -12
  186. package/src/utils/reflection/getPrototypeChainOf.ts +5 -5
  187. package/src/utils/reflection/getPrototypeOf.ts +1 -1
  188. package/src/utils/reflection/inheritance.ts +5 -5
  189. package/src/utils/reflection/isGetterDescriptor.ts +1 -1
  190. package/src/utils/reflection/listOwnGetters.ts +6 -6
  191. package/src/utils/reflection.ts +17 -17
  192. package/tsconfig.base.json +2 -2
  193. package/mjs/CaseInsensitiveMap.d.ts +0 -12
  194. package/mjs/CaseInsensitiveMap.d.ts.map +0 -1
  195. package/mjs/commitlintConfig.d.ts +0 -12
  196. package/mjs/commitlintConfig.d.ts.map +0 -1
  197. package/mjs/debug.d.ts +0 -6
  198. package/mjs/debug.d.ts.map +0 -1
  199. package/mjs/dotnet/GithubNugetRegistryInfo.d.ts +0 -38
  200. package/mjs/dotnet/GithubNugetRegistryInfo.d.ts.map +0 -1
  201. package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts +0 -61
  202. package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts.map +0 -1
  203. package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts +0 -2
  204. package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts.map +0 -1
  205. package/mjs/dotnet/MSBuildProject.d.ts +0 -264
  206. package/mjs/dotnet/MSBuildProject.d.ts.map +0 -1
  207. package/mjs/dotnet/MSBuildProjectProperties.d.ts +0 -170
  208. package/mjs/dotnet/MSBuildProjectProperties.d.ts.map +0 -1
  209. package/mjs/dotnet/NugetProjectProperties.d.ts +0 -379
  210. package/mjs/dotnet/NugetProjectProperties.d.ts.map +0 -1
  211. package/mjs/dotnet/NugetRegistryInfo.d.ts +0 -384
  212. package/mjs/dotnet/NugetRegistryInfo.d.ts.map +0 -1
  213. package/mjs/dotnet/helpers.d.ts +0 -63
  214. package/mjs/dotnet/helpers.d.ts.map +0 -1
  215. package/mjs/dotnet/index.d.ts +0 -9
  216. package/mjs/dotnet/index.d.ts.map +0 -1
  217. package/mjs/dotnet/index.mjs.map +0 -1
  218. package/mjs/dotnet.d.ts +0 -2
  219. package/mjs/dotnet.d.ts.map +0 -1
  220. package/mjs/dotnet.mjs.map +0 -1
  221. package/mjs/eslintConfig.d.ts +0 -4
  222. package/mjs/eslintConfig.d.ts.map +0 -1
  223. package/mjs/index.d.ts +0 -3
  224. package/mjs/index.d.ts.map +0 -1
  225. package/mjs/index.mjs.map +0 -1
  226. package/mjs/insertPlugins.d.ts +0 -18
  227. package/mjs/insertPlugins.d.ts.map +0 -1
  228. package/mjs/semantic-release__commit-analyzer.d.mjs +0 -2
  229. package/mjs/semantic-release__commit-analyzer.d.mjs.map +0 -1
  230. package/mjs/semantic-release__exec.d.mjs +0 -2
  231. package/mjs/semantic-release__exec.d.mjs.map +0 -1
  232. package/mjs/semantic-release__git.d.mjs +0 -2
  233. package/mjs/semantic-release__git.d.mjs.map +0 -1
  234. package/mjs/semantic-release__github.d.mjs +0 -2
  235. package/mjs/semantic-release__github.d.mjs.map +0 -1
  236. package/mjs/semanticReleaseConfig.d.ts +0 -97
  237. package/mjs/semanticReleaseConfig.d.ts.map +0 -1
  238. package/mjs/semanticReleaseConfigDotnet.d.ts +0 -112
  239. package/mjs/semanticReleaseConfigDotnet.d.ts.map +0 -1
  240. package/mjs/setupGitPluginSpec.d.ts +0 -22
  241. package/mjs/setupGitPluginSpec.d.ts.map +0 -1
  242. package/mjs/utils/Exact.d.ts +0 -20
  243. package/mjs/utils/Exact.d.ts.map +0 -1
  244. package/mjs/utils/GracefulRecursion.d.mjs +0 -2
  245. package/mjs/utils/GracefulRecursion.d.mjs.map +0 -1
  246. package/mjs/utils/env.d.ts +0 -24
  247. package/mjs/utils/env.d.ts.map +0 -1
  248. package/mjs/utils/execAsync.d.ts +0 -37
  249. package/mjs/utils/execAsync.d.ts.map +0 -1
  250. package/mjs/utils/isError.d.ts +0 -11
  251. package/mjs/utils/isError.d.ts.map +0 -1
  252. package/mjs/utils/miscTypes.d.ts +0 -12
  253. package/mjs/utils/miscTypes.d.ts.map +0 -1
  254. package/mjs/utils/reflection/FunctionLike.d.mjs +0 -2
  255. package/mjs/utils/reflection/FunctionLike.d.mjs.map +0 -1
  256. package/mjs/utils/reflection/GetterDescriptor.d.mjs +0 -2
  257. package/mjs/utils/reflection/GetterDescriptor.d.mjs.map +0 -1
  258. package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs +0 -2
  259. package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs.map +0 -1
  260. package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs +0 -2
  261. package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs.map +0 -1
  262. package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs +0 -2
  263. package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs.map +0 -1
  264. package/mjs/utils/reflection/OwnKeyOf.d.mjs +0 -2
  265. package/mjs/utils/reflection/OwnKeyOf.d.mjs.map +0 -1
  266. package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs +0 -2
  267. package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs.map +0 -1
  268. package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs +0 -2
  269. package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs.map +0 -1
  270. package/mjs/utils/reflection/filterForGetters.d.ts +0 -7
  271. package/mjs/utils/reflection/filterForGetters.d.ts.map +0 -1
  272. package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts +0 -22
  273. package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts.map +0 -1
  274. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts +0 -56
  275. package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts.map +0 -1
  276. package/mjs/utils/reflection/getPrototypeChainOf.d.ts +0 -16
  277. package/mjs/utils/reflection/getPrototypeChainOf.d.ts.map +0 -1
  278. package/mjs/utils/reflection/getPrototypeOf.d.ts +0 -8
  279. package/mjs/utils/reflection/getPrototypeOf.d.ts.map +0 -1
  280. package/mjs/utils/reflection/inheritance.d.ts +0 -180
  281. package/mjs/utils/reflection/inheritance.d.ts.map +0 -1
  282. package/mjs/utils/reflection/isConstructor.d.ts +0 -17
  283. package/mjs/utils/reflection/isConstructor.d.ts.map +0 -1
  284. package/mjs/utils/reflection/isGetterDescriptor.d.ts +0 -9
  285. package/mjs/utils/reflection/isGetterDescriptor.d.ts.map +0 -1
  286. package/mjs/utils/reflection/listOwnGetters.d.ts +0 -26
  287. package/mjs/utils/reflection/listOwnGetters.d.ts.map +0 -1
  288. package/mjs/utils/reflection.d.ts +0 -18
  289. package/mjs/utils/reflection.d.ts.map +0 -1
  290. package/mjs/utils/reflection.mjs.map +0 -1
@@ -1,264 +0,0 @@
1
- import { type Scope, type Type } from 'arktype';
2
- import { NugetProjectProperties } from './NugetProjectProperties.js';
3
- declare const msbuildEvaluationOutput: Type<{
4
- Properties?: Record<string, string> | undefined;
5
- Items?: Record<string, {
6
- [x: string]: string | undefined;
7
- Identity: string;
8
- FullPath: string;
9
- RootDir: string;
10
- Filename: string;
11
- Extension: string;
12
- RelativeDir: string;
13
- Directory: string;
14
- RecursiveDir: string;
15
- ModifiedTime: string;
16
- CreatedTime: string;
17
- AccessedTime: string;
18
- DefiningProjectFullPath: string;
19
- DefiningProjectDirectory: string;
20
- DefiningProjectName: string;
21
- DefiningProjectExtension: string;
22
- SubType?: string;
23
- TargetFrameworkIdentifier?: string | undefined;
24
- TargetPlatformMoniker?: string | undefined;
25
- CopyUpToDateMarker?: string | undefined;
26
- TargetPlatformIdentifier?: string | undefined;
27
- TargetFrameworkVersion?: string | undefined;
28
- ReferenceAssembly?: string | undefined;
29
- }[]> | undefined;
30
- TargetResults?: Record<string, {
31
- Result: 'Success';
32
- Items: {
33
- [x: string]: string | undefined;
34
- Identity: string;
35
- FullPath: string;
36
- RootDir: string;
37
- Filename: string;
38
- Extension: string;
39
- RelativeDir: string;
40
- Directory: string;
41
- RecursiveDir: string;
42
- ModifiedTime: string;
43
- CreatedTime: string;
44
- AccessedTime: string;
45
- DefiningProjectFullPath: string;
46
- DefiningProjectDirectory: string;
47
- DefiningProjectName: string;
48
- DefiningProjectExtension: string;
49
- SubType?: string | undefined;
50
- TargetFrameworkIdentifier?: string | undefined;
51
- TargetPlatformMoniker?: string | undefined;
52
- CopyUpToDateMarker?: string | undefined;
53
- TargetPlatformIdentifier?: string | undefined;
54
- TargetFrameworkVersion?: string | undefined;
55
- ReferenceAssembly?: string | undefined;
56
- }[];
57
- } | {
58
- Result: 'Failure';
59
- Items: never[];
60
- }> | undefined;
61
- }>;
62
- export declare class MSBuildEvaluationOutput {
63
- /**
64
- * @param rawMSBuildEvaluation The output of a CLI MSBuild project evaluation.
65
- * May be the UTF-8 string-encoded JSON or the object decoded from that JSON.
66
- */
67
- constructor(rawMSBuildEvaluation: Parameters<typeof JSON.parse>[0] | Parameters<typeof msbuildEvaluationOutput.from>[0]);
68
- /**
69
- * The specified properties and their values as evaluated by MSBuild Core.
70
- * `-getProperty:{propertyName,...}`
71
- */
72
- Properties?: typeof msbuildEvaluationOutput.infer.Properties;
73
- /**
74
- * The specified items and their values and associated metadata as evaluated
75
- * by MSBuild Core.
76
- * `-getItem:{itemName,...}`
77
- */
78
- Items?: typeof msbuildEvaluationOutput.infer.Items;
79
- /**
80
- * The specified Targets and their output values as evaluated by MSBuild
81
- * Core.
82
- * `-getTargetResult:{targetName,...}`
83
- */
84
- TargetResults?: typeof msbuildEvaluationOutput.infer.TargetResults;
85
- }
86
- export declare const EvaluationOptions: Type<{
87
- FullName: string;
88
- Property: {
89
- MSBuildProjectFullPath?: string | undefined;
90
- AssemblyName?: string | undefined;
91
- BaseIntermediateOutputPath?: string | undefined;
92
- BaseOutputPath?: string | undefined;
93
- Description?: string | undefined;
94
- IntermediateOutput?: string | undefined;
95
- OutDir?: string | undefined;
96
- OutputPath?: string | undefined;
97
- Version?: string | undefined;
98
- VersionPrefix?: string | undefined;
99
- VersionSuffix?: string | undefined;
100
- TargetFramework?: string | undefined;
101
- TargetFrameworks?: string | undefined;
102
- RuntimeIdentifier?: string | undefined;
103
- RuntimeIdentifiers?: string | undefined;
104
- };
105
- Targets: readonly string[] | string[];
106
- GetItem: readonly string[] | string[];
107
- GetProperty: readonly string[] | string[];
108
- GetTargetResult: readonly string[] | string[];
109
- }>;
110
- export declare class MSBuildProject {
111
- /**
112
- * Properties for multi-targeting `dotnet publish` outputs.
113
- * These are included in {@link NPPGetterNames.InstanceGettersRecursive}.
114
- */
115
- static readonly MatrixProperties: readonly string[];
116
- /**
117
- * Creates an instance of MSBuildProject.
118
- * @param opts The order-independent arguments for this constructor.
119
- * Properties may be added or moved around in this definition without
120
- * breaking compatibility.
121
- * @param opts.fullPath The full path of the MSBuild project's file. This
122
- * should have a '.csproj', '.fsproj', or '.vbproj' file extension.
123
- * @param opts.projTargets A list of MSBuild Targets supported by the project.
124
- * @param opts.evaluation The output of an MSBuild project evaluation. This
125
- * comprises MSBuild Properties, Items, and Target results.
126
- */
127
- constructor(opts: {
128
- fullPath: string;
129
- projTargets: string[];
130
- evaluation: MSBuildEvaluationOutput;
131
- });
132
- readonly Items: Readonly<Required<MSBuildEvaluationOutput>['Items']>;
133
- readonly Properties: Readonly<NugetProjectProperties>;
134
- readonly Targets: readonly string[];
135
- /**
136
- * Allows appending subsequent target results.
137
- */
138
- readonly TargetResults: Required<MSBuildEvaluationOutput>['TargetResults'][];
139
- /**
140
- * @param projectPath The full path of the project file or its directory. A
141
- * relative path may be passed, but will resolve relative to the current
142
- * working directory.
143
- * @param includeNonPublic Include conventionally internal/private MSBuild
144
- * targets in the result.
145
- * @returns A string array of the project's MSBuild targets.
146
- * @todo consider 'file' of -targets[:file]
147
- * Prints a list of available targets without executing the
148
- * actual build process. By default the output is written to
149
- * the console window. If the path to an output file
150
- * is provided that will be used instead.
151
- * (Short form: -ts)
152
- * Example:
153
- * -ts:out.txt
154
- */
155
- static GetTargets(projectPath: string, includeNonPublic?: boolean): Promise<string[]>;
156
- /**
157
- * Evaluate {@link Items}, {@link Properties}, and {@link TargetResults},
158
- * returning them as an instance of {@link MSBuildProject}.\
159
- * Note: MSBuild will probably fail if Restore is skipped and another
160
- * target is specified. If you choose Pack, you must do ['Restore', 'Pack'].
161
- * @param options The result of {@link EvaluationOptions.from}.
162
- * @returns A promised {@link MSBuildProject} instance.
163
- * @throws {Error} if the exec command fails -OR- the JSON parse fails -OR-
164
- * MSBuildProject's constructor fails.
165
- * @see {@link PackableProjectsToMSBuildProjects} for most use-cases.
166
- */
167
- static Evaluate(options: typeof EvaluationOptions.inferOut): Promise<MSBuildProject>;
168
- /**
169
- * Evaluate multiple project paths with some default Evaluate options.
170
- * @async
171
- * @param projectsToPackAndPush An array of MSBuild projects' full file
172
- * paths. If a path is a directory, files in that directory are filtered for
173
- * `.csproj`, `.fsproj`, and `.vbproj` project files.
174
- * See https://github.com/dotnet/sdk/blob/497f334b2862bdf98b30c00ede2fd259ea5f624d/src/Cli/dotnet/Commands/New/MSBuildEvaluation/MSBuildEvaluationResult.cs#L19-L32.\
175
- * @returns A promised array of {@link MSBuildProject} instances.
176
- * All known MSBuild and NuGet properties are evaluated.
177
- * If applicable, a project's "Pack" target is evaluated.
178
- */
179
- static PackableProjectsToMSBuildProjects(projectsToPackAndPush: string[]): Promise<Promise<MSBuildProject>[]>;
180
- static fromJSON(json: string): MSBuildProject;
181
- }
182
- /**
183
- * ArkType type definitions for internal usage, but may be re-used elsewhere
184
- * @internal
185
- */
186
- export declare const _InternalMSBuildEvaluationTypes: Scope<{
187
- msbuildEvaluationOutput: {
188
- Properties?: Record<string, string> | undefined;
189
- Items?: Record<string, {
190
- [x: string]: string | undefined;
191
- Identity: string;
192
- FullPath: string;
193
- RootDir: string;
194
- Filename: string;
195
- Extension: string;
196
- RelativeDir: string;
197
- Directory: string;
198
- RecursiveDir: string;
199
- ModifiedTime: string;
200
- CreatedTime: string;
201
- AccessedTime: string;
202
- DefiningProjectFullPath: string;
203
- DefiningProjectDirectory: string;
204
- DefiningProjectName: string;
205
- DefiningProjectExtension: string;
206
- SubType?: string | undefined;
207
- TargetFrameworkIdentifier?: string | undefined;
208
- TargetPlatformMoniker?: string | undefined;
209
- CopyUpToDateMarker?: string | undefined;
210
- TargetPlatformIdentifier?: string | undefined;
211
- TargetFrameworkVersion?: string | undefined;
212
- ReferenceAssembly?: string | undefined;
213
- }[]> | undefined;
214
- TargetResults?: Record<string, {
215
- Result: 'Success';
216
- Items: {
217
- [x: string]: string | undefined;
218
- Identity: string;
219
- FullPath: string;
220
- RootDir: string;
221
- Filename: string;
222
- Extension: string;
223
- RelativeDir: string;
224
- Directory: string;
225
- RecursiveDir: string;
226
- ModifiedTime: string;
227
- CreatedTime: string;
228
- AccessedTime: string;
229
- DefiningProjectFullPath: string;
230
- DefiningProjectDirectory: string;
231
- DefiningProjectName: string;
232
- DefiningProjectExtension: string;
233
- SubType?: string | undefined;
234
- TargetFrameworkIdentifier?: string | undefined;
235
- TargetPlatformMoniker?: string | undefined;
236
- CopyUpToDateMarker?: string | undefined;
237
- TargetPlatformIdentifier?: string | undefined;
238
- TargetFrameworkVersion?: string | undefined;
239
- ReferenceAssembly?: string | undefined;
240
- }[];
241
- } | {
242
- Result: 'Failure';
243
- Items: never[];
244
- }> | undefined;
245
- };
246
- }>;
247
- /**
248
- * Use this in your catch statement or .catch call to return `undefined` when
249
- * a "file in use by another process" (i.e. EBUSY/ERROR_SHARING_VIOLATION) error is reported.
250
- * @param error Probably an Error object
251
- * @returns `undefined` if file in use by another process
252
- */
253
- export declare function catchEBUSY(error: unknown): undefined;
254
- /**
255
- *
256
- * Use this in your catch statement or .catch call to return `undefined` when
257
- * MSBuild error CSC2012 (e.g. "file in use by another process") is reported.
258
- * @param error Probably an Error object
259
- * @returns `undefined` if CSC2012 (file in use by another process) occurs
260
- * @deprecated Use {@link catchEBUSY}.
261
- */
262
- export declare function catchCsc2012(error: unknown): undefined;
263
- export {};
264
- //# sourceMappingURL=MSBuildProject.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MSBuildProject.d.ts","sourceRoot":"","sources":["../../src/dotnet/MSBuildProject.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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/**
4
- * Known properties. Additional properties may be added upon request.
5
- *
6
- * todo: add Reserved properties, Well-Known properties, Common properties, and more. Maybe as sub classes.
7
- * See:
8
- * - {@link https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-reserved-and-well-known-properties?view=vs-2022 MSBuild Reserved and Well-known Properties}
9
- * - {@link https://learn.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-properties?view=vs-2022 Common MSBuild project properties}
10
- * - {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props Microsoft.NET.Sdk}
11
- * - {@link https://learn.microsoft.com/en-us/aspnet/core/razor-pages/web-sdk?view=aspnetcore-8.0&toc=%2Fdotnet%2Fnavigate%2Ftools-diagnostics%2Ftoc.json&bc=%2Fdotnet%2Fbreadcrumb%2Ftoc.json#properties Microsoft.NET.Sdk.Web}
12
- * - {@link https://learn.microsoft.com/en-us/aspnet/core/razor-pages/sdk?view=aspnetcore-8.0&toc=%2Fdotnet%2Fnavigate%2Ftools-diagnostics%2Ftoc.json&bc=%2Fdotnet%2Fbreadcrumb%2Ftoc.json Microsoft.NET.Sdk.Razor}
13
- * - {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props-desktop Microsoft.NET.Sdk.Desktop}
14
- */
15
- export declare class MSBuildProjectProperties {
16
- /**
17
- * Resolve the given path if it is not absolute. If the path exists, it is returned. Else, an Error is thrown.
18
- * @param path The full file path of an MSBuild project.
19
- * @returns The absolute path to the MSBuild project file.
20
- * @throws {Error} if the path cannot be resolved to an existing file.
21
- */
22
- static GetFullPath(path: string): string;
23
- /**
24
- * Note: This method may remove elements from {@link properties}.\
25
- * Try to get an element from {@link properties} by its {@link key}.
26
- * If an element is found, it is removed and the value of the element is returned.
27
- * Otherwise, `undefined` is returned.
28
- * @param properties The CaseInsensitiveMap of properties passed to the constructor.
29
- * @param key The key of the property to get from {@link properties}
30
- * @returns If found, the value of the `[string, string]` tuple found in {@link properties}. Else, `undefined`.
31
- */
32
- protected static getAndForget(properties: CaseInsensitiveMap<string, string>, key: string): string | undefined;
33
- private _msbuildProjectFullPath;
34
- private _assemblyName;
35
- private _baseIntermediateOutputPath;
36
- private _baseOutputPath;
37
- private _description;
38
- private _intermediateOutputPath;
39
- private _outDir;
40
- private _outputPath;
41
- private _runtimeIdentifier;
42
- private _runtimeIdentifiers;
43
- private _targetFramework;
44
- private _targetFrameworks;
45
- private _version;
46
- private _versionPrefix;
47
- private _versionSuffix;
48
- constructor(msbuildProjectFullPath: string, properties: CaseInsensitiveMap<string, string>);
49
- get MSBuildProjectFullPath(): string;
50
- /**
51
- * @returns The name of the assembly.
52
- *
53
- * Default: {@link https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-reserved-and-well-known-properties#:~:text=MSBuildProjectDirectory,-Reserved MSBuildProjectDirectory}
54
- */
55
- get AssemblyName(): string;
56
- /**
57
- * @returns The top-level folder where all configuration-specific intermediate output
58
- * folders are created. The default value is `obj\`.
59
- * @example
60
- * ```xml
61
- * <BaseIntermediateOutputPath>c:\xyz\obj\</BaseIntermediateOutputPath>
62
- * ```
63
- */
64
- get BaseIntermediateOutputPath(): string;
65
- /**
66
- * @returns The base path for the output file.
67
- * If it's set, MSBuild uses `OutputPath = $(BaseOutputPath)\$(Configuration)\`.
68
- * @example ```xml
69
- * <BaseOutputPath>c:\xyz\bin\</BaseOutputPath>
70
- * ```
71
- */
72
- get BaseOutputPath(): string;
73
- /**
74
- * A long description for the assembly.
75
- * If {@link NugetProperties.PackageDescription} is not specified, then this property is also used as the description of the package.
76
- * @returns The value of the `Description` property.
77
- */
78
- get Description(): string;
79
- /**
80
- * @returns The full intermediate output path as derived from
81
- * {@link BaseIntermediateOutputPath}, if no path is specified.
82
- * @example "obj\\debug\\"
83
- */
84
- get IntermediateOutput(): string;
85
- /**
86
- * @returns The final output location for the project or solution.
87
- * When you build a solution, OutDir can be used to gather multiple project outputs in one location.
88
- * In addition, OutDir is included in AssemblySearchPaths used for resolving references.
89
- * @example
90
- * `bin/Debug`
91
- */
92
- get OutDir(): string;
93
- /**
94
- * @returns The path to the output directory, relative to the project
95
- * directory.
96
- * @example
97
- * `bin/Debug`
98
- * /// non-AnyCPU builds
99
- * `bin/Debug/${Platform}`
100
- */
101
- get OutputPath(): string;
102
- /**
103
- * Set Version -OR- VersionPrefix.
104
- * @returns The value of the `Version` property.
105
- *
106
- * Default: `"1.0.0"`
107
- */
108
- get Version(): string;
109
- /**
110
- * Set Version -OR- VersionPrefix.\
111
- * Setting {@link NugetProperties.PackageVersion} overwrites {@link VersionPrefix}
112
- * @returns The MAJOR.MINOR.PATCH string of the version.
113
- * @see {@link VersionSuffix}
114
- */
115
- get VersionPrefix(): string;
116
- /**
117
- * The effect of this property on the package version depends on the values of the Version and VersionPrefix properties, as shown in the following table:
118
- * | Properties with values | Package version |
119
- * | ---------------------- | --------------- |
120
- * | None | 1.0.0 |
121
- * | Version | $(Version) |
122
- * | VersionPrefix only | $(VersionPrefix) |
123
- * | VersionSuffix only | 1.0.0-$(VersionSuffix) |
124
- * | VersionPrefix and VersionSuffix | $(VersionPrefix)-$(VersionSuffix) |
125
- * \
126
- * Setting {@link PackageVersion} overwrites {@link VersionSuffix}
127
- * @returns The string appended to the end of the MAJOR.MINOR.PATCH semver string (i.e. {@link VersionPrefix})
128
- */
129
- get VersionSuffix(): string;
130
- /**
131
- * @returns The {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#targetframework Target Framework}
132
- * @see
133
- * https://learn.microsoft.com/en-us/nuget/reference/target-frameworks#supported-frameworks
134
- * https://learn.microsoft.com/en-us/dotnet/standard/frameworks
135
- */
136
- get TargetFramework(): string;
137
- /**
138
- * @returns The {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#targetframeworks Target Frameworks} (plural)
139
- * @see
140
- * https://learn.microsoft.com/en-us/nuget/reference/target-frameworks#supported-frameworks
141
- * https://learn.microsoft.com/en-us/dotnet/standard/frameworks
142
- */
143
- get TargetFrameworks(): string;
144
- /**
145
- * @returns
146
- * > The {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#runtimeidentifier `Runtime Identifier`} property lets you specify a single runtime
147
- * > identifier (RID) for the project. The RID enables publishing a
148
- * > self-contained deployment.
149
- * @see
150
- * https://learn.microsoft.com/en-us/dotnet/core/rid-catalog
151
- */
152
- get RuntimeIdentifier(): string;
153
- /**
154
- * @returns
155
- * > The {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#runtimeidentifiers `RuntimeIdentifiers`} property lets you specify a
156
- * > semicolon-delimited list of runtime identifiers (RIDs) for the project.
157
- * > Use this property if you need to publish for multiple runtimes.
158
- * > `RuntimeIdentifiers` is used at restore time to ensure the right assets
159
- * > are in the graph.
160
- * @see
161
- * https://learn.microsoft.com/en-us/dotnet/core/rid-catalog
162
- */
163
- get RuntimeIdentifiers(): string;
164
- }
165
- export type Class_MSBPP = ClassLike<BaseClass<typeof MSBuildProjectProperties & {
166
- getAndForget: ProtectedMember<typeof MSBuildProjectProperties.getAndForget>;
167
- }>>;
168
- type ProtectedMember<T> = T;
169
- export {};
170
- //# sourceMappingURL=MSBuildProjectProperties.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MSBuildProjectProperties.d.ts","sourceRoot":"","sources":["../../src/dotnet/MSBuildProjectProperties.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;;;;;;;;;;GAWG;AACH,qBAAa,wBAAwB;IAGnC;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAQxC;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,CAAC,YAAY,CAC3B,UAAU,EAAE,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9C,GAAG,EAAE,MAAM,GACV,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