@halospv3/hce.shared-config 3.0.0-develop.2 → 3.0.0-develop.21
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 +164 -0
- package/dotnet/.github/workflows/_unit_test.yml +0 -3
- package/dotnet/.github/workflows/dotnet-release.yml +0 -3
- package/dotnet/.github/workflows/sample-dotnet-build.yml +0 -3
- package/dotnet/PublishAll.targets +3 -2
- package/dotnet/ZipPublishDir.targets +24 -29
- package/mjs/CaseInsensitiveMap.d.ts +12 -0
- package/mjs/CaseInsensitiveMap.d.ts.map +1 -0
- package/mjs/CaseInsensitiveMap.mjs +33 -0
- package/mjs/CaseInsensitiveMap.mjs.map +1 -0
- package/mjs/commitlintConfig.d.ts +12 -0
- package/mjs/commitlintConfig.d.ts.map +1 -0
- package/mjs/commitlintConfig.mjs +13 -0
- package/mjs/commitlintConfig.mjs.map +1 -0
- package/mjs/debug.d.ts +6 -0
- package/mjs/debug.d.ts.map +1 -0
- package/mjs/debug.mjs +9 -0
- package/mjs/debug.mjs.map +1 -0
- package/mjs/dotnet/GithubNugetRegistryInfo.d.ts +38 -0
- package/mjs/dotnet/GithubNugetRegistryInfo.d.ts.map +1 -0
- package/mjs/dotnet/GithubNugetRegistryInfo.mjs +43 -0
- package/mjs/dotnet/GithubNugetRegistryInfo.mjs.map +1 -0
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts +62 -0
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts.map +1 -0
- package/mjs/dotnet/GitlabNugetRegistryInfo.mjs +99 -0
- package/mjs/dotnet/GitlabNugetRegistryInfo.mjs.map +1 -0
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts +2 -0
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.d.ts.map +1 -0
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs +41 -0
- package/mjs/dotnet/IsNextVersionAlreadyPublished.cli.mjs.map +1 -0
- package/mjs/dotnet/MSBuildProject.d.ts +256 -0
- package/mjs/dotnet/MSBuildProject.d.ts.map +1 -0
- package/mjs/dotnet/MSBuildProject.mjs +447 -0
- package/mjs/dotnet/MSBuildProject.mjs.map +1 -0
- package/mjs/dotnet/MSBuildProjectProperties.d.ts +170 -0
- package/mjs/dotnet/MSBuildProjectProperties.d.ts.map +1 -0
- package/mjs/dotnet/MSBuildProjectProperties.mjs +260 -0
- package/mjs/dotnet/MSBuildProjectProperties.mjs.map +1 -0
- package/mjs/dotnet/NugetProjectProperties.d.ts +379 -0
- package/mjs/dotnet/NugetProjectProperties.d.ts.map +1 -0
- package/mjs/dotnet/NugetProjectProperties.mjs +577 -0
- package/mjs/dotnet/NugetProjectProperties.mjs.map +1 -0
- package/mjs/dotnet/NugetRegistryInfo.d.ts +384 -0
- package/mjs/dotnet/NugetRegistryInfo.d.ts.map +1 -0
- package/mjs/dotnet/NugetRegistryInfo.mjs +752 -0
- package/mjs/dotnet/NugetRegistryInfo.mjs.map +1 -0
- package/mjs/dotnet/helpers.d.ts +63 -0
- package/mjs/dotnet/helpers.d.ts.map +1 -0
- package/mjs/dotnet/helpers.mjs +354 -0
- package/mjs/dotnet/helpers.mjs.map +1 -0
- package/mjs/dotnet/index.d.ts +9 -0
- package/mjs/dotnet/index.d.ts.map +1 -0
- package/mjs/dotnet/index.mjs +9 -0
- package/mjs/dotnet/index.mjs.map +1 -0
- package/mjs/dotnet.d.ts +2 -0
- package/mjs/dotnet.d.ts.map +1 -0
- package/mjs/dotnet.mjs +9 -0
- package/mjs/dotnet.mjs.map +1 -0
- package/mjs/eslintConfig.d.ts +4 -0
- package/mjs/eslintConfig.d.ts.map +1 -0
- package/mjs/eslintConfig.mjs +98 -0
- package/mjs/eslintConfig.mjs.map +1 -0
- package/mjs/index.d.ts +3 -0
- package/mjs/index.d.ts.map +1 -0
- package/mjs/index.mjs +4 -0
- package/mjs/index.mjs.map +1 -0
- package/mjs/insertPlugins.d.ts +18 -0
- package/mjs/insertPlugins.d.ts.map +1 -0
- package/mjs/insertPlugins.mjs +73 -0
- package/mjs/insertPlugins.mjs.map +1 -0
- package/mjs/semantic-release__commit-analyzer.d.mjs +2 -0
- package/mjs/semantic-release__commit-analyzer.d.mjs.map +1 -0
- package/mjs/semantic-release__exec.d.mjs +2 -0
- package/mjs/semantic-release__exec.d.mjs.map +1 -0
- package/mjs/semantic-release__git.d.mjs +2 -0
- package/mjs/semantic-release__git.d.mjs.map +1 -0
- package/mjs/semantic-release__github.d.mjs +2 -0
- package/mjs/semantic-release__github.d.mjs.map +1 -0
- package/mjs/semanticReleaseConfig.d.ts +97 -0
- package/mjs/semanticReleaseConfig.d.ts.map +1 -0
- package/mjs/semanticReleaseConfig.mjs +63 -0
- package/mjs/semanticReleaseConfig.mjs.map +1 -0
- package/mjs/semanticReleaseConfigDotnet.d.ts +109 -0
- package/mjs/semanticReleaseConfigDotnet.d.ts.map +1 -0
- package/mjs/semanticReleaseConfigDotnet.mjs +268 -0
- package/mjs/semanticReleaseConfigDotnet.mjs.map +1 -0
- package/mjs/setupGitPluginSpec.d.ts +22 -0
- package/mjs/setupGitPluginSpec.d.ts.map +1 -0
- package/mjs/setupGitPluginSpec.mjs +144 -0
- package/mjs/setupGitPluginSpec.mjs.map +1 -0
- package/mjs/utils/Exact.d.ts +20 -0
- package/mjs/utils/Exact.d.ts.map +1 -0
- package/mjs/utils/Exact.mjs +75 -0
- package/mjs/utils/Exact.mjs.map +1 -0
- package/mjs/utils/GracefulRecursion.d.mjs +2 -0
- package/mjs/utils/GracefulRecursion.d.mjs.map +1 -0
- package/mjs/utils/env.d.ts +24 -0
- package/mjs/utils/env.d.ts.map +1 -0
- package/mjs/utils/env.mjs +39 -0
- package/mjs/utils/env.mjs.map +1 -0
- package/mjs/utils/execAsync.d.ts +37 -0
- package/mjs/utils/execAsync.d.ts.map +1 -0
- package/mjs/utils/execAsync.mjs +59 -0
- package/mjs/utils/execAsync.mjs.map +1 -0
- package/mjs/utils/miscTypes.d.ts +13 -0
- package/mjs/utils/miscTypes.d.ts.map +1 -0
- package/mjs/utils/miscTypes.mjs +10 -0
- package/mjs/utils/miscTypes.mjs.map +1 -0
- package/mjs/utils/reflection/FunctionLike.d.mjs +2 -0
- package/mjs/utils/reflection/FunctionLike.d.mjs.map +1 -0
- package/mjs/utils/reflection/GetterDescriptor.d.mjs +2 -0
- package/mjs/utils/reflection/GetterDescriptor.d.mjs.map +1 -0
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs +2 -0
- package/mjs/utils/reflection/InstancePropertyDescriptorMap.d.mjs.map +1 -0
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs +2 -0
- package/mjs/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.mjs.map +1 -0
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs +2 -0
- package/mjs/utils/reflection/OwnGetterDescriptorMap.d.mjs.map +1 -0
- package/mjs/utils/reflection/OwnKeyOf.d.mjs +2 -0
- package/mjs/utils/reflection/OwnKeyOf.d.mjs.map +1 -0
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs +2 -0
- package/mjs/utils/reflection/OwnPropertyDescriptorMap.d.mjs.map +1 -0
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs +2 -0
- package/mjs/utils/reflection/PropertyDescriptorMap.d.mjs.map +1 -0
- package/mjs/utils/reflection/filterForGetters.d.ts +7 -0
- package/mjs/utils/reflection/filterForGetters.d.ts.map +1 -0
- package/mjs/utils/reflection/filterForGetters.mjs +27 -0
- package/mjs/utils/reflection/filterForGetters.mjs.map +1 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts +22 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptors.d.ts.map +1 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs +34 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptors.mjs.map +1 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts +56 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.d.ts.map +1 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs +72 -0
- package/mjs/utils/reflection/getOwnPropertyDescriptorsRecursively.mjs.map +1 -0
- package/mjs/utils/reflection/getPrototypeChainOf.d.ts +16 -0
- package/mjs/utils/reflection/getPrototypeChainOf.d.ts.map +1 -0
- package/mjs/utils/reflection/getPrototypeChainOf.mjs +55 -0
- package/mjs/utils/reflection/getPrototypeChainOf.mjs.map +1 -0
- package/mjs/utils/reflection/getPrototypeOf.d.ts +8 -0
- package/mjs/utils/reflection/getPrototypeOf.d.ts.map +1 -0
- package/mjs/utils/reflection/getPrototypeOf.mjs +10 -0
- package/mjs/utils/reflection/getPrototypeOf.mjs.map +1 -0
- package/mjs/utils/reflection/inheritance.d.ts +180 -0
- package/mjs/utils/reflection/inheritance.d.ts.map +1 -0
- package/mjs/utils/reflection/inheritance.mjs +148 -0
- package/mjs/utils/reflection/inheritance.mjs.map +1 -0
- package/mjs/utils/reflection/isConstructor.d.ts +17 -0
- package/mjs/utils/reflection/isConstructor.d.ts.map +1 -0
- package/mjs/utils/reflection/isConstructor.mjs +63 -0
- package/mjs/utils/reflection/isConstructor.mjs.map +1 -0
- package/mjs/utils/reflection/isGetterDescriptor.d.ts +9 -0
- package/mjs/utils/reflection/isGetterDescriptor.d.ts.map +1 -0
- package/mjs/utils/reflection/isGetterDescriptor.mjs +12 -0
- package/mjs/utils/reflection/isGetterDescriptor.mjs.map +1 -0
- package/mjs/utils/reflection/listOwnGetters.d.ts +26 -0
- package/mjs/utils/reflection/listOwnGetters.d.ts.map +1 -0
- package/mjs/utils/reflection/listOwnGetters.mjs +39 -0
- package/mjs/utils/reflection/listOwnGetters.mjs.map +1 -0
- package/mjs/utils/reflection.d.ts +18 -0
- package/mjs/utils/reflection.d.ts.map +1 -0
- package/mjs/utils/reflection.mjs +10 -0
- package/mjs/utils/reflection.mjs.map +1 -0
- package/package.json +17 -17
- package/src/debug.ts +5 -4
- package/src/dotnet/GithubNugetRegistryInfo.ts +17 -9
- package/src/dotnet/GitlabNugetRegistryInfo.ts +19 -5
- package/src/dotnet/IsNextVersionAlreadyPublished.cli.ts +53 -36
- package/src/dotnet/MSBuildProject.ts +150 -5
- package/src/dotnet/MSBuildProjectProperties.ts +2 -1
- package/src/dotnet/NugetProjectProperties.ts +3 -2
- package/src/dotnet/NugetRegistryInfo.ts +94 -8
- package/src/dotnet/helpers.ts +87 -53
- package/src/dotnet/index.ts +8 -0
- package/src/dotnet.ts +1 -0
- package/src/insertPlugins.ts +116 -0
- package/src/semantic-release__exec.d.ts +1 -1
- package/src/semanticReleaseConfig.ts +8 -3
- package/src/semanticReleaseConfigDotnet.ts +90 -88
- package/src/setupGitPluginSpec.ts +4 -1
- package/src/tsconfig.json +1 -1
- package/src/utils/execAsync.ts +13 -1
- package/src/utils/miscTypes.ts +4 -3
- package/src/utils/reflection/inheritance.ts +1 -1
- package/tsconfig.base.json +54 -0
- package/tsconfig.json +22 -0
- package/tsconfig.mjs.json +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,167 @@
|
|
|
1
|
+
## [3.0.0-develop.21](https://github.com/HaloSPV3/HCE.Shared/compare/v3.0.0-develop.20...v3.0.0-develop.21) (2025-08-14)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **dotnet, dotnet.PublishAll:** append `-p:Configuration=Release` to PublishAll commands ([3ebe7be](https://github.com/HaloSPV3/HCE.Shared/commit/3ebe7be14568f60005a894b465352b7c65cea00e))
|
|
6
|
+
|
|
7
|
+
## [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)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
* **dotnet.ZPD:** fix placeholders PropertyGroup condition almost always evaluating to `true` ([44f2fc4](https://github.com/HaloSPV3/HCE.Shared/commit/44f2fc4af1caf3d14c4fe27ba27154d79094a7a3))
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **dotnet:** fix `-t:Publish` commands starting with `dotnet publish` instead of `dotnet msbuild` ([5d6bbca](https://github.com/HaloSPV3/HCE.Shared/commit/5d6bbca822131eeb2c76e184e6b4c036e161cc15))
|
|
19
|
+
* **dotnet:** fix PublishAll never running `_PublishProjectForAllFrameworksAndRuntimes` ([1717ea6](https://github.com/HaloSPV3/HCE.Shared/commit/1717ea6ac6256dcba00a61a62f0d270f0267a54d))
|
|
20
|
+
|
|
21
|
+
## [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)
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **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)
|
|
26
|
+
|
|
27
|
+
## [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)
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **dotnet:** do not mix `export *` and `export type *`! ([1184896](https://github.com/HaloSPV3/HCE.Shared/commit/118489616924fdb3d62670a67b1a0ab8123ba299))
|
|
32
|
+
|
|
33
|
+
## [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)
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* **dotnet:** do not mix `export *` and `export type *`! ([859dfb4](https://github.com/HaloSPV3/HCE.Shared/commit/859dfb440b32258ddd34f36cb9f42f033b8b287a))
|
|
38
|
+
|
|
39
|
+
## [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)
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
* **dotnet.SemanticRelease:** swap out `console.debug` with colorful `debug` logging ([54029e1](https://github.com/HaloSPV3/HCE.Shared/commit/54029e1089e802ed6dcc02338b67118a67f7ecb4))
|
|
44
|
+
|
|
45
|
+
## [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)
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* replace `debug.log` calls with `debug` call ([1b94603](https://github.com/HaloSPV3/HCE.Shared/commit/1b946035b5732deb69ff8a446843f1c5947ca49e))
|
|
50
|
+
|
|
51
|
+
## [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)
|
|
52
|
+
|
|
53
|
+
### Bug Fixes
|
|
54
|
+
|
|
55
|
+
* remove second gitlab-sync ([b09f6c9](https://github.com/HaloSPV3/HCE.Shared/commit/b09f6c937a295d5bedcff85e8e32a4770b369ff2))
|
|
56
|
+
|
|
57
|
+
## [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)
|
|
58
|
+
|
|
59
|
+
### Bug Fixes
|
|
60
|
+
|
|
61
|
+
* **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)
|
|
62
|
+
|
|
63
|
+
## [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)
|
|
64
|
+
|
|
65
|
+
### Bug Fixes
|
|
66
|
+
|
|
67
|
+
* move gitlab `git push --tags` to `publish` step ([5faf150](https://github.com/HaloSPV3/HCE.Shared/commit/5faf1509f8176fd530c1041ee3384b3554ca1369))
|
|
68
|
+
|
|
69
|
+
## [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)
|
|
70
|
+
|
|
71
|
+
### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* avoid using implicitly fixed-length arrays ([02a2c2b](https://github.com/HaloSPV3/HCE.Shared/commit/02a2c2b880025fbd5e309d330f5546c6101ce3c0))
|
|
74
|
+
|
|
75
|
+
## [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)
|
|
76
|
+
|
|
77
|
+
### Bug Fixes
|
|
78
|
+
|
|
79
|
+
* use argument splatting ([6861778](https://github.com/HaloSPV3/HCE.Shared/commit/68617788184e3b9c56afaddd8c69461b2286312c))
|
|
80
|
+
|
|
81
|
+
## [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)
|
|
82
|
+
|
|
83
|
+
### Bug Fixes
|
|
84
|
+
|
|
85
|
+
* fix typo in $ghRegistry string ([8f8de0d](https://github.com/HaloSPV3/HCE.Shared/commit/8f8de0d5a23403f11824c839dc80a98025f06b04))
|
|
86
|
+
|
|
87
|
+
## [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)
|
|
88
|
+
|
|
89
|
+
### ⚠ BREAKING CHANGES
|
|
90
|
+
|
|
91
|
+
* **insertPlugins, semanticRelease:** allow only tuple `PluginSpec`
|
|
92
|
+
|
|
93
|
+
### Features
|
|
94
|
+
|
|
95
|
+
* export `@semantic-release/exec` `Options` interface ([331456e](https://github.com/HaloSPV3/HCE.Shared/commit/331456ed9ffe220f0270a1aefc3b34973c5ce64b))
|
|
96
|
+
|
|
97
|
+
### Bug Fixes
|
|
98
|
+
|
|
99
|
+
* disable `@semantic-release/npm` tarballDir config ([b4d2fb5](https://github.com/HaloSPV3/HCE.Shared/commit/b4d2fb50b368e5c66c323781fb094adee7f8fb01))
|
|
100
|
+
* try increasing GitLab Release retry limit ([ff1e758](https://github.com/HaloSPV3/HCE.Shared/commit/ff1e758499602cbe02bee31fc217be4e91d2b423))
|
|
101
|
+
|
|
102
|
+
### Code Refactoring
|
|
103
|
+
|
|
104
|
+
* **insertPlugins, semanticRelease:** allow only tuple `PluginSpec` ([e44ef67](https://github.com/HaloSPV3/HCE.Shared/commit/e44ef67fb824ddf2a74f13bd4e08a4acc27a002f))
|
|
105
|
+
|
|
106
|
+
## [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)
|
|
107
|
+
|
|
108
|
+
### ⚠ BREAKING CHANGES
|
|
109
|
+
|
|
110
|
+
* **insertPlugins, semanticRelease:** allow only tuple `PluginSpec`
|
|
111
|
+
|
|
112
|
+
### Features
|
|
113
|
+
|
|
114
|
+
* export `@semantic-release/exec` `Options` interface ([331456e](https://github.com/HaloSPV3/HCE.Shared/commit/331456ed9ffe220f0270a1aefc3b34973c5ce64b))
|
|
115
|
+
|
|
116
|
+
### Bug Fixes
|
|
117
|
+
|
|
118
|
+
* try increasing GitLab Release retry limit ([ff1e758](https://github.com/HaloSPV3/HCE.Shared/commit/ff1e758499602cbe02bee31fc217be4e91d2b423))
|
|
119
|
+
|
|
120
|
+
### Code Refactoring
|
|
121
|
+
|
|
122
|
+
* **insertPlugins, semanticRelease:** allow only tuple `PluginSpec` ([e44ef67](https://github.com/HaloSPV3/HCE.Shared/commit/e44ef67fb824ddf2a74f13bd4e08a4acc27a002f))
|
|
123
|
+
|
|
124
|
+
## [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)
|
|
125
|
+
|
|
126
|
+
### Bug Fixes
|
|
127
|
+
|
|
128
|
+
* try fixing GitLab asset label, path ([75463a0](https://github.com/HaloSPV3/HCE.Shared/commit/75463a02ce247b33c25435d1e4afa78d6748f8db))
|
|
129
|
+
* try fixing GitLab assets path AGAIN ([0bee0ae](https://github.com/HaloSPV3/HCE.Shared/commit/0bee0aee71e2da6707228820cec41c4a2248c44a))
|
|
130
|
+
|
|
131
|
+
## [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)
|
|
132
|
+
|
|
133
|
+
### Features
|
|
134
|
+
|
|
135
|
+
* **insertPlugins:** add, export `insertPlugin`; declare internal `insertAndSortPlugins`; fix false-positive error caused by `!0` ([8971599](https://github.com/HaloSPV3/HCE.Shared/commit/8971599585dc962d5be6e7c3cc084f8c1a65d71c))
|
|
136
|
+
|
|
137
|
+
### Bug Fixes
|
|
138
|
+
|
|
139
|
+
* **dotnet.SemanticRelease:** append `@semantic-release/exec` plugin to plugins array if not found ([7eeafb2](https://github.com/HaloSPV3/HCE.Shared/commit/7eeafb2caab31358ecb91f8b3f1b885a11bc43b8))
|
|
140
|
+
* **dotnet.SemanticRelease:** set/append dummy pack, dummy push, and INVAP commands ([88a523e](https://github.com/HaloSPV3/HCE.Shared/commit/88a523e231a821b59b72af0dee785affa9889499))
|
|
141
|
+
|
|
142
|
+
## [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)
|
|
143
|
+
|
|
144
|
+
### Features
|
|
145
|
+
|
|
146
|
+
* **insertPlugins:** add, export `insertPlugin`; declare internal `insertAndSortPlugins`; fix false-positive error caused by `!0` ([8971599](https://github.com/HaloSPV3/HCE.Shared/commit/8971599585dc962d5be6e7c3cc084f8c1a65d71c))
|
|
147
|
+
|
|
148
|
+
### Bug Fixes
|
|
149
|
+
|
|
150
|
+
* **dotnet.SemanticRelease:** append `@semantic-release/exec` plugin to plugins array if not found ([7eeafb2](https://github.com/HaloSPV3/HCE.Shared/commit/7eeafb2caab31358ecb91f8b3f1b885a11bc43b8))
|
|
151
|
+
* **dotnet.SemanticRelease:** set/append dummy pack, dummy push, and INVAP commands ([88a523e](https://github.com/HaloSPV3/HCE.Shared/commit/88a523e231a821b59b72af0dee785affa9889499))
|
|
152
|
+
|
|
153
|
+
## [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)
|
|
154
|
+
|
|
155
|
+
### Bug Fixes
|
|
156
|
+
|
|
157
|
+
* **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))
|
|
158
|
+
|
|
159
|
+
## [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)
|
|
160
|
+
|
|
161
|
+
### Bug Fixes
|
|
162
|
+
|
|
163
|
+
* 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))
|
|
164
|
+
|
|
1
165
|
## [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
166
|
|
|
3
167
|
### ⚠ BREAKING CHANGES
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- `dotnet -t:PublishAll` will publish all permutations derived from TargetFrameworks and RuntimeIdentifiers
|
|
1
|
+
<!-- `dotnet -t:PublishAll -p:Configuration=Release` will publish all permutations derived from TargetFrameworks and RuntimeIdentifiers
|
|
2
2
|
!Beware: No compatibility checks are performed!
|
|
3
3
|
netstandard2.0 + PublishSingleFile may cause errors! Weirdly, net480 + linux-x64 builds AND runs on both WSL and Windows...
|
|
4
4
|
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
<MSBuild Projects="$(MSBuildProjectFile)" Targets="Publish" Properties="TargetFramework=%(_PublishFramework.Identity)" />
|
|
41
41
|
</Target>
|
|
42
42
|
|
|
43
|
+
<!-- TODO: PublishProfileNames, PublishProfileName -->
|
|
43
44
|
<Target Name="PublishAll"
|
|
44
|
-
DependsOnTargets="_PublishProjectIfFrameworkSetAndNotMultiRuntime;
|
|
45
|
+
DependsOnTargets="_PublishProjectIfFrameworkSetAndNotMultiRuntime;_PublishProjectForAllFrameworksAndRuntimes;_PublishProjectForAllFrameworksIfFrameworkUnset" />
|
|
45
46
|
</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
|
|
5
|
-
<RepoRootPublishDir>$(RepoRoot)
|
|
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
|
-
<
|
|
31
|
+
<_dbgCfg Condition="'$(Configuration)' == 'Debug'">$(Configuration)</_dbgCfg>
|
|
35
32
|
<!-- "net6.0 win7-x86"
|
|
36
33
|
"Debug net6.0 win7-x86" -->
|
|
37
|
-
<
|
|
38
|
-
<
|
|
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
|
-
<
|
|
39
|
+
<_enclosedVArgs Condition="$(_appendVarArgs) And '$(_spaceArgs)' != ''"> ($(_spaceArgs))</_enclosedVArgs>
|
|
43
40
|
<!-- " 1.2.3-preview.4"
|
|
44
41
|
"" -->
|
|
45
|
-
<
|
|
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)
|
|
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
|
-
|
|
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($(
|
|
62
|
-
<Configuration>Release</Configuration>
|
|
63
|
-
<TargetFramework>net6.0</TargetFramework>
|
|
64
|
-
<RuntimeIdentifier>win7-x86</RuntimeIdentifier>
|
|
65
|
-
<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
|
-
<
|
|
72
|
-
<
|
|
68
|
+
<_appendVarArgs>$(ZipPublishDir_AppendVariantArgs)</_appendVarArgs>
|
|
69
|
+
<_dbgCfg Condition="'$(Configuration)' == 'Debug'">$(Configuration)</_dbgCfg>
|
|
73
70
|
<!-- "net6.0 win7-x86" -->
|
|
74
|
-
<
|
|
75
|
-
<
|
|
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
|
-
<
|
|
74
|
+
<_enclosedVArgs Condition="'$(_appendVarArgs)' == 'true' And '$(_spaceArgs)' != ''"> ($(_spaceArgs))</_enclosedVArgs>
|
|
78
75
|
<!-- "win7-x86 win7-x64" -->
|
|
79
|
-
<
|
|
76
|
+
<_spaceSeparatedRIDs Condition="$(RuntimeIdentifiers) != ''">$(RuntimeIdentifiers.ToString().Replace(";"," ").Trim())</_spaceSeparatedRIDs>
|
|
80
77
|
<!-- " (win7-x86 win7-x64)" -->
|
|
81
|
-
<enclosedRIDs Condition="$(
|
|
82
|
-
<Version>1.0.0</
|
|
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 @@
|
|
|
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"}
|