@naturalcycles/dev-lib 20.66.0 → 20.68.0
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/cfg/tsconfig.src.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"rootDir": "${configDir}/src",
|
|
9
9
|
"outDir": "${configDir}/dist",
|
|
10
10
|
// Target/module
|
|
11
|
-
"target": "
|
|
11
|
+
"target": "esnext",
|
|
12
12
|
"lib": ["esnext"], // add "dom" if needed
|
|
13
13
|
// module `nodenext` is a modern mode that auto-detects cjs/esm
|
|
14
14
|
// it also defaults `esModuleInterop` and `allowSyntheticDefaultImports` to true
|
package/dist/check.util.d.ts
CHANGED
|
@@ -52,8 +52,8 @@ export declare function runTypecheck(): Promise<void>;
|
|
|
52
52
|
/**
|
|
53
53
|
* Use 'src' to indicate root.
|
|
54
54
|
*/
|
|
55
|
-
export declare function runTSCInFolders(dirs: string[], args?: string[], parallel?: boolean): Promise<void>;
|
|
56
|
-
export declare function runTSCProd(args?: string[]): void;
|
|
55
|
+
export declare function runTSCInFolders(dirs: readonly string[], args?: readonly string[], parallel?: boolean): Promise<void>;
|
|
56
|
+
export declare function runTSCProd(args?: readonly string[]): void;
|
|
57
57
|
export declare function buildCopy(): void;
|
|
58
58
|
interface RunTestOptions {
|
|
59
59
|
integration?: boolean;
|
|
@@ -6,7 +6,7 @@ import type { ParsedCommit, RawCommit, ReleaseType } from './release.model.js';
|
|
|
6
6
|
* Rules follow the `@semantic-release/commit-analyzer` defaults (conventional commits only):
|
|
7
7
|
* breaking change => major, feat => minor, fix/perf/revert => patch, everything else => no release.
|
|
8
8
|
*/
|
|
9
|
-
export declare function analyzeCommits(commits: ParsedCommit[]): ReleaseType | null;
|
|
9
|
+
export declare function analyzeCommits(commits: readonly ParsedCommit[]): ReleaseType | null;
|
|
10
10
|
/**
|
|
11
11
|
* Parse a raw git commit into a conventional commit.
|
|
12
12
|
* https://www.conventionalcommits.org/
|
|
@@ -15,7 +15,7 @@ export declare class GithubApi {
|
|
|
15
15
|
* Comment on the merged PRs whose commits are part of this release.
|
|
16
16
|
* Failures are logged, not thrown - comments are not worth failing a published release over.
|
|
17
17
|
*/
|
|
18
|
-
commentOnReleasedPrs(commits: ParsedCommit[], input: {
|
|
18
|
+
commentOnReleasedPrs(commits: readonly ParsedCommit[], input: {
|
|
19
19
|
tag: string;
|
|
20
20
|
releaseUrl: string;
|
|
21
21
|
}): Promise<void>;
|
|
@@ -14,4 +14,4 @@ export declare function releaseCommand(): Promise<void>;
|
|
|
14
14
|
* Resolve the release channel from the current branch, or undefined if the branch
|
|
15
15
|
* is not configured for release.
|
|
16
16
|
*/
|
|
17
|
-
export declare function resolveChannel(branch: string, stableBranches: string[], prereleaseBranches: string[]): ReleaseChannel | undefined;
|
|
17
|
+
export declare function resolveChannel(branch: string, stableBranches: readonly string[], prereleaseBranches: readonly string[]): ReleaseChannel | undefined;
|
|
@@ -3,7 +3,7 @@ import type { LastRelease, ReleaseChannel, ReleaseType } from './release.model.j
|
|
|
3
3
|
* Extract versions from git tags matching the package's tag prefix.
|
|
4
4
|
* Non-semver tags (and tags of other packages) are ignored.
|
|
5
5
|
*/
|
|
6
|
-
export declare function getVersionsFromTags(tags: string[], tagPrefix: string): string[];
|
|
6
|
+
export declare function getVersionsFromTags(tags: readonly string[], tagPrefix: string): string[];
|
|
7
7
|
/**
|
|
8
8
|
* Determine the last release relevant to the given channel,
|
|
9
9
|
* replicating semantic-release `getLastRelease` semantics:
|
|
@@ -13,7 +13,7 @@ export declare function getVersionsFromTags(tags: string[], tagPrefix: string):
|
|
|
13
13
|
* (a prerelease belongs to the channel when its prerelease components include the identifier,
|
|
14
14
|
* e.g. `7.660.0-beta-x.4` belongs to channel `beta-x`)
|
|
15
15
|
*/
|
|
16
|
-
export declare function getLastRelease(versions: string[], tagPrefix: string, channel: ReleaseChannel): LastRelease | undefined;
|
|
16
|
+
export declare function getLastRelease(versions: readonly string[], tagPrefix: string, channel: ReleaseChannel): LastRelease | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* Compute the next version, replicating semantic-release `getNextVersion` semantics.
|
|
19
19
|
*
|