@halospv3/hce.shared-config 3.0.0-develop.6 → 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.
- package/CHANGELOG.md +37 -0
- package/mjs/debug.d.ts +1 -1
- package/mjs/debug.d.ts.map +1 -1
- package/mjs/dotnet/GithubNugetRegistryInfo.d.ts +13 -9
- package/mjs/dotnet/GithubNugetRegistryInfo.d.ts.map +1 -1
- package/mjs/dotnet/GithubNugetRegistryInfo.mjs +1 -3
- package/mjs/dotnet/GithubNugetRegistryInfo.mjs.map +1 -1
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts +14 -9
- package/mjs/dotnet/GitlabNugetRegistryInfo.d.ts.map +1 -1
- package/mjs/dotnet/GitlabNugetRegistryInfo.mjs.map +1 -1
- package/mjs/dotnet/MSBuildProject.d.ts +79 -86
- package/mjs/dotnet/MSBuildProject.d.ts.map +1 -1
- package/mjs/dotnet/MSBuildProject.mjs +4 -1
- package/mjs/dotnet/MSBuildProject.mjs.map +1 -1
- package/mjs/dotnet/MSBuildProjectProperties.d.ts +1 -0
- package/mjs/dotnet/MSBuildProjectProperties.d.ts.map +1 -1
- package/mjs/dotnet/MSBuildProjectProperties.mjs +1 -0
- package/mjs/dotnet/MSBuildProjectProperties.mjs.map +1 -1
- package/mjs/dotnet/NugetProjectProperties.d.ts +3 -2
- package/mjs/dotnet/NugetProjectProperties.d.ts.map +1 -1
- package/mjs/dotnet/NugetRegistryInfo.d.ts +28 -26
- package/mjs/dotnet/NugetRegistryInfo.d.ts.map +1 -1
- package/mjs/dotnet/helpers.d.ts +7 -39
- package/mjs/dotnet/helpers.d.ts.map +1 -1
- package/mjs/dotnet/helpers.mjs +4 -1
- package/mjs/dotnet/helpers.mjs.map +1 -1
- package/mjs/dotnet/index.d.ts +17 -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 +3 -0
- package/mjs/dotnet.d.ts.map +1 -0
- package/mjs/dotnet.mjs +9 -0
- package/mjs/dotnet.mjs.map +1 -0
- package/mjs/insertPlugins.d.ts +2 -2
- package/mjs/insertPlugins.d.ts.map +1 -1
- package/mjs/semanticReleaseConfig.d.ts +7 -2
- package/mjs/semanticReleaseConfig.d.ts.map +1 -1
- package/mjs/semanticReleaseConfigDotnet.d.ts.map +1 -1
- package/mjs/setupGitPluginSpec.d.ts +2 -2
- package/mjs/setupGitPluginSpec.d.ts.map +1 -1
- package/mjs/utils/execAsync.d.ts +4 -3
- package/mjs/utils/execAsync.d.ts.map +1 -1
- package/mjs/utils/miscTypes.d.ts +4 -2
- package/mjs/utils/miscTypes.d.ts.map +1 -1
- package/mjs/utils/reflection/inheritance.d.ts.map +1 -1
- package/package.json +4 -7
- package/src/debug.ts +1 -1
- package/src/dotnet/GithubNugetRegistryInfo.ts +17 -9
- package/src/dotnet/GitlabNugetRegistryInfo.ts +19 -5
- 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 +93 -7
- package/src/dotnet/helpers.ts +78 -47
- package/src/dotnet/index.ts +17 -0
- package/src/dotnet.ts +2 -0
- package/src/insertPlugins.ts +2 -2
- package/src/semantic-release__exec.d.ts +1 -1
- package/src/semanticReleaseConfig.ts +7 -2
- package/src/semanticReleaseConfigDotnet.ts +1 -1
- 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/src/insertPlugins.ts
CHANGED
|
@@ -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<
|
|
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
|
);
|
|
@@ -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
|
|
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
package/src/utils/execAsync.ts
CHANGED
|
@@ -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
|
|
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',
|
package/src/utils/miscTypes.ts
CHANGED
|
@@ -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]
|