@mirta/cli 0.3.3 → 0.3.5

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/dist/github.mjs CHANGED
@@ -101,7 +101,7 @@ async function getBranchAsync() {
101
101
  return (await runCommandAsync('git', ['rev-parse', '--abbrev-ref', 'HEAD'])).stdout;
102
102
  }
103
103
  /** Проверяет, синхронизирован ли текущий HEAD с удаленным. */
104
- async function ensureIsSyncedWithRemoteAsync(repository) {
104
+ async function assertIsSyncedWithRemoteAsync(repository) {
105
105
  let isSynced = false;
106
106
  try {
107
107
  const branch = await getBranchAsync();
@@ -116,7 +116,7 @@ async function ensureIsSyncedWithRemoteAsync(repository) {
116
116
  throw new GithubError('Local HEAD is not up-to-date with remote');
117
117
  }
118
118
  /** Проверяет успешность CI-построения последнего коммита. */
119
- async function ensureWorkflowResultAsync(repository, name) {
119
+ async function assertWorkflowResultAsync(repository, name) {
120
120
  let isBuildPassed = false;
121
121
  try {
122
122
  const sha = await getShaAsync();
@@ -132,4 +132,4 @@ async function ensureWorkflowResultAsync(repository, name) {
132
132
  throw new WorkflowStatusError('CI build of the latest commit has not passed yet');
133
133
  }
134
134
 
135
- export { GitError as G, PromptCanceledError as P, WorkflowStatusError as W, GithubError as a, ensureWorkflowResultAsync as b, checkIsInWorkTreeAsync as c, ensureIsSyncedWithRemoteAsync as e, getRepositoryDetails as g, prompts as p };
135
+ export { GitError as G, PromptCanceledError as P, WorkflowStatusError as W, GithubError as a, assertIsSyncedWithRemoteAsync as b, checkIsInWorkTreeAsync as c, assertWorkflowResultAsync as d, getRepositoryDetails as g, prompts as p };
package/dist/release.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { parseArgs } from 'node:util';
2
2
  import { prerelease, inc, valid } from 'semver';
3
3
  import { h as helpMessage, g as getCurrentVersion, u as updateVersion, a as hasScript } from './package.mjs';
4
- import { c as checkIsInWorkTreeAsync, g as getRepositoryDetails, e as ensureIsSyncedWithRemoteAsync, p as prompts, b as ensureWorkflowResultAsync } from './github.mjs';
4
+ import { c as checkIsInWorkTreeAsync, g as getRepositoryDetails, b as assertIsSyncedWithRemoteAsync, p as prompts, d as assertWorkflowResultAsync } from './github.mjs';
5
5
  import { g as getLocalized, u as useLogger, r as runCommandAsync } from './shell.mjs';
6
6
  import chalk from 'chalk';
7
7
  import cliPackage from '../package.json' with { type: 'json' };
@@ -90,7 +90,7 @@ if (inWorkTree) {
90
90
  connectionType = connType;
91
91
  if (repository)
92
92
  logger.info(`Repository: ${repository}`);
93
- await ensureIsSyncedWithRemoteAsync(repository);
93
+ await assertIsSyncedWithRemoteAsync(repository);
94
94
  }
95
95
  else {
96
96
  logger.info('Repository: not in git work tree');
@@ -149,7 +149,7 @@ async function runAsync() {
149
149
  }
150
150
  if (inWorkTree) {
151
151
  logger.log('Ensuring CI status for HEAD...');
152
- await ensureWorkflowResultAsync(repository, 'build');
152
+ await assertWorkflowResultAsync(repository, 'build');
153
153
  }
154
154
  updateVersion(targetVersion);
155
155
  isVersionUpdated = true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirta/cli",
3
3
  "description": "🛠️ Mirta Framework - the CLI",
4
- "version": "0.3.3",
4
+ "version": "0.3.5",
5
5
  "license": "Unlicense",
6
6
  "keywords": [
7
7
  "cli",
@@ -51,6 +51,6 @@
51
51
  },
52
52
  "scripts": {
53
53
  "clean": "rimraf dist",
54
- "build:mono": "pnpm clean && rollup -c ../../rollup.config.mjs"
54
+ "build:mono": "pnpm clean && rollup -c node:@mirta/rollup/config --config-package --config-skip-exports"
55
55
  }
56
56
  }