@naturalcycles/dev-lib 20.67.0 → 20.69.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.
@@ -173,5 +173,5 @@ async function cleanBuild() {
173
173
  buildProd();
174
174
  }
175
175
  function cleanDist() {
176
- fs2.emptyDir('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
176
+ fs2.ensureEmptyDir('./dist'); // it doesn't delete the dir itself, to prevent IDE jumping
177
177
  }
@@ -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;
@@ -310,7 +310,7 @@ export function getActionLintVersion() {
310
310
  return exec2.exec('actionlint --version').split('\n')[0];
311
311
  }
312
312
  export function buildProd() {
313
- // fs2.emptyDir('./dist') // it doesn't delete the dir itself, to prevent IDE jumping
313
+ // fs2.ensureEmptyDir('./dist') // it doesn't delete the dir itself, to prevent IDE jumping
314
314
  buildCopy();
315
315
  runTSCProd();
316
316
  }
@@ -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
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.67.0",
4
+ "version": "20.69.0",
5
5
  "dependencies": {
6
6
  "prompts": "^2",
7
7
  "@naturalcycles/js-lib": "^15",