@halospv3/hce.shared-config 3.0.0-develop.5 → 3.0.0-develop.7

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 (66) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/mjs/debug.d.ts +1 -1
  3. package/mjs/debug.d.ts.map +1 -1
  4. package/mjs/dotnet/GithubNugetRegistryInfo.d.ts +13 -9
  5. package/mjs/dotnet/GithubNugetRegistryInfo.d.ts.map +1 -1
  6. package/mjs/dotnet/GithubNugetRegistryInfo.mjs +1 -3
  7. package/mjs/dotnet/GithubNugetRegistryInfo.mjs.map +1 -1
  8. package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts +14 -9
  9. package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts.map +1 -1
  10. package/mjs/dotnet/GitlabNugetRegistryInfo.mjs.map +1 -1
  11. package/mjs/dotnet/MSBuildProject.d.ts +79 -86
  12. package/mjs/dotnet/MSBuildProject.d.ts.map +1 -1
  13. package/mjs/dotnet/MSBuildProject.mjs +4 -1
  14. package/mjs/dotnet/MSBuildProject.mjs.map +1 -1
  15. package/mjs/dotnet/MSBuildProjectProperties.d.ts +1 -0
  16. package/mjs/dotnet/MSBuildProjectProperties.d.ts.map +1 -1
  17. package/mjs/dotnet/MSBuildProjectProperties.mjs +1 -0
  18. package/mjs/dotnet/MSBuildProjectProperties.mjs.map +1 -1
  19. package/mjs/dotnet/NugetProjectProperties.d.ts +3 -2
  20. package/mjs/dotnet/NugetProjectProperties.d.ts.map +1 -1
  21. package/mjs/dotnet/NugetRegistryInfo.d.ts +28 -26
  22. package/mjs/dotnet/NugetRegistryInfo.d.ts.map +1 -1
  23. package/mjs/dotnet/helpers.d.ts +7 -39
  24. package/mjs/dotnet/helpers.d.ts.map +1 -1
  25. package/mjs/dotnet/helpers.mjs +4 -1
  26. package/mjs/dotnet/helpers.mjs.map +1 -1
  27. package/mjs/dotnet/index.d.ts +17 -0
  28. package/mjs/dotnet/index.d.ts.map +1 -0
  29. package/mjs/dotnet/index.mjs +9 -0
  30. package/mjs/dotnet/index.mjs.map +1 -0
  31. package/mjs/dotnet.d.ts +3 -0
  32. package/mjs/dotnet.d.ts.map +1 -0
  33. package/mjs/dotnet.mjs +9 -0
  34. package/mjs/dotnet.mjs.map +1 -0
  35. package/mjs/insertPlugins.d.ts +2 -2
  36. package/mjs/insertPlugins.d.ts.map +1 -1
  37. package/mjs/semanticReleaseConfig.d.ts +7 -2
  38. package/mjs/semanticReleaseConfig.d.ts.map +1 -1
  39. package/mjs/semanticReleaseConfigDotnet.d.ts.map +1 -1
  40. package/mjs/setupGitPluginSpec.d.ts +2 -2
  41. package/mjs/setupGitPluginSpec.d.ts.map +1 -1
  42. package/mjs/utils/execAsync.d.ts +4 -3
  43. package/mjs/utils/execAsync.d.ts.map +1 -1
  44. package/mjs/utils/miscTypes.d.ts +4 -2
  45. package/mjs/utils/miscTypes.d.ts.map +1 -1
  46. package/mjs/utils/reflection/inheritance.d.ts.map +1 -1
  47. package/package.json +4 -7
  48. package/src/debug.ts +1 -1
  49. package/src/dotnet/GithubNugetRegistryInfo.ts +17 -9
  50. package/src/dotnet/GitlabNugetRegistryInfo.ts +19 -5
  51. package/src/dotnet/MSBuildProject.ts +150 -5
  52. package/src/dotnet/MSBuildProjectProperties.ts +2 -1
  53. package/src/dotnet/NugetProjectProperties.ts +3 -2
  54. package/src/dotnet/NugetRegistryInfo.ts +93 -7
  55. package/src/dotnet/helpers.ts +78 -47
  56. package/src/dotnet/index.ts +17 -0
  57. package/src/dotnet.ts +2 -0
  58. package/src/insertPlugins.ts +2 -2
  59. package/src/semantic-release__exec.d.ts +1 -1
  60. package/src/semanticReleaseConfig.ts +7 -2
  61. package/src/semanticReleaseConfigDotnet.ts +1 -1
  62. package/src/setupGitPluginSpec.ts +4 -1
  63. package/src/tsconfig.json +1 -1
  64. package/src/utils/execAsync.ts +13 -1
  65. package/src/utils/miscTypes.ts +4 -3
  66. package/src/utils/reflection/inheritance.ts +1 -1
@@ -59,11 +59,11 @@ declare function insertAndSortPlugins(
59
59
  * @throws {AggregateError} One or more error occurred when inserting plugins: `insertPlugin was instructed to insert one or more plugins after [${afterPluginsIDs.map(v => '"' + v + '"').join(', ')}] and before [${beforePluginsIDs.map(v => `"${v}"`).join(', ')}], but ${JSON.stringify(pluginIDs[indexOfLastAfter])} comes after ${JSON.stringify(pluginIDs[index])}!`
60
60
  */
61
61
  export function insertPlugin(
62
- plugins: Exclude<SemanticReleaseOptions['plugins'], undefined>,
62
+ plugins: Exclude<PluginSpec, string>[],
63
63
  afterPluginsIDs: string[],
64
64
  insertPluginIDs: string[],
65
65
  beforePluginsIDs: string[],
66
- ): PluginSpec[] {
66
+ ): Exclude<PluginSpec, string>[] {
67
67
  const pluginIDs = plugins.map(v =>
68
68
  typeof v === 'string' ? v : v[0],
69
69
  );
@@ -1,5 +1,5 @@
1
1
  declare module '@semantic-release/exec' {
2
- interface Options {
2
+ export interface Options {
3
3
  verifyConditionsCmd?: string;
4
4
  analyzeCommitsCmd?: string;
5
5
  verifyReleaseCmd?: string;
@@ -42,7 +42,12 @@ export type PluginSpecSRGithub<V extends SRGithubOptions = SRGithubOptions> = Pl
42
42
  /**
43
43
  * @satisfies { Readonly<PluginSpec[]> }
44
44
  */
45
- export const defaultPlugins = Object.freeze([
45
+ export const defaultPlugins: readonly [
46
+ '@semantic-release/commit-analyzer',
47
+ '@semantic-release/release-notes-generator',
48
+ '@semantic-release/npm',
49
+ '@semantic-release/github',
50
+ ] = Object.freeze([
46
51
  '@semantic-release/commit-analyzer',
47
52
  '@semantic-release/release-notes-generator',
48
53
  '@semantic-release/npm',
@@ -76,7 +81,7 @@ const _baseConfig = {
76
81
  PluginSpecSRGit<typeof DefaultOptions>,
77
82
  PluginSpecSRExec,
78
83
  PluginSpecSRGithub<{ addReleases: 'bottom'; assets: [{ path: './publish/*' }] }>,
79
- ] | PluginSpec[],
84
+ ] | Exclude<PluginSpec, string>[],
80
85
  };
81
86
 
82
87
  /**
@@ -120,7 +120,7 @@ export class SemanticReleaseConfigDotnet {
120
120
  afterPluginsIDs: string[],
121
121
  insertPluginIDs: string[],
122
122
  beforePluginsIDs: string[],
123
- ) {
123
+ ): void {
124
124
  this.options.plugins = insertPlugin(this.options.plugins, afterPluginsIDs, insertPluginIDs, beforePluginsIDs);
125
125
  }
126
126
 
@@ -8,7 +8,10 @@ export const GitPluginId = '@semantic-release/git';
8
8
  * To use, assign or create an object with the same (but mutable) properties and deeply-copy to the object
9
9
  * @satisfies { GitOptions }
10
10
  */
11
- export const DefaultOptions = {
11
+ export const DefaultOptions: {
12
+ readonly assets: ['README.md', 'CHANGELOG.md', 'package.json', 'package-lock.json', 'npm-shrinkwrap.json'];
13
+ readonly message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}';
14
+ } = {
12
15
  assets: [
13
16
  'README.md',
14
17
  'CHANGELOG.md',
package/src/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "extends": "../tsconfig.base.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "../_tsout/src",
5
- "isolatedDeclarations": false
5
+ "isolatedDeclarations": true
6
6
  },
7
7
  "include": [
8
8
  "./**/*"
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable jsdoc/no-defaults */
2
2
  import { type } from 'arktype';
3
+ import type { ObjectType } from 'arktype/internal/methods/object.ts';
3
4
  import { exec } from 'node:child_process';
4
5
  import { constants } from 'node:os';
5
6
  import { promisify } from 'node:util';
@@ -39,7 +40,18 @@ export async function execAsync(command: string, setStderrAsCause = false): Prom
39
40
  });
40
41
  }
41
42
 
42
- const T_ExecException = type('Error').and({
43
+ const T_ExecException: ObjectType<{
44
+ name: string;
45
+ message: string;
46
+ stack?: string | undefined;
47
+ cause?: unknown;
48
+ cmd?: string | null | undefined;
49
+ killed?: boolean | null | undefined;
50
+ code?: number | null | undefined;
51
+ signal?: 'SIGABRT' | 'SIGALRM' | 'SIGBUS' | 'SIGCHLD' | 'SIGCONT' | 'SIGFPE' | 'SIGHUP' | 'SIGILL' | 'SIGINT' | 'SIGIO' | 'SIGIOT' | 'SIGKILL' | 'SIGPIPE' | 'SIGPOLL' | 'SIGPROF' | 'SIGPWR' | 'SIGQUIT' | 'SIGSEGV' | 'SIGSTKFLT' | 'SIGSTOP' | 'SIGSYS' | 'SIGTERM' | 'SIGTRAP' | 'SIGTSTP' | 'SIGTTIN' | 'SIGTTOU' | 'SIGUNUSED' | 'SIGURG' | 'SIGUSR1' | 'SIGUSR2' | 'SIGVTALRM' | 'SIGWINCH' | 'SIGXCPU' | 'SIGXFSZ' | 'SIGBREAK' | 'SIGLOST' | 'SIGINFO' | null | undefined;
52
+ stdout?: string | undefined;
53
+ stderr?: string | undefined;
54
+ }> = type('Error').and({
43
55
  'cmd?': 'string | null',
44
56
  'killed?': 'boolean | null',
45
57
  'code?': 'number | null',
@@ -1,9 +1,10 @@
1
- import { type } from 'arktype';
1
+ import { type, type Type } from 'arktype';
2
+ import type { StringType } from 'arktype/internal/methods/string.ts';
2
3
 
3
- export const tBooleanString = type('"true" | "false"');
4
+ export const tBooleanString: StringType<'false' | 'true'> = type('"true" | "false"');
4
5
  export type BooleanString = typeof tBooleanString.infer;
5
6
 
6
- export const tEmptyOrBooleanString = type(tBooleanString.or('""'));
7
+ export const tEmptyOrBooleanString: Type<'' | 'false' | 'true'> = type(tBooleanString.or('""'));
7
8
  export type EmptyOrBooleanString = typeof tEmptyOrBooleanString.infer;
8
9
 
9
10
  export type Integer<N extends number> = `${N}` extends `${number}.${number}` ? never : N;
@@ -23,7 +23,7 @@ export type BaseClassProto = (() => object) & {
23
23
  * The `[[Prototype]]` of all base classes.
24
24
  * @since 3.0.0
25
25
  */
26
- export const baseClassProto = getPrototypeOf(Object as BaseClass<ObjectConstructor>);
26
+ export const baseClassProto: BaseClassProto = getPrototypeOf(Object as BaseClass<ObjectConstructor>);
27
27
 
28
28
  /**
29
29
  * [INTERNAL]