@cmflow/cli 3.6.1 → 3.7.1

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/bin/cm.mjs CHANGED
@@ -2,10 +2,10 @@
2
2
  import { fileURLToPath as __cliFileURLToPath } from "node:url";
3
3
  const __filename = __cliFileURLToPath(import.meta.url);
4
4
  import { createRequire } from "node:module";
5
+ import fs, { appendFileSync, closeSync, createReadStream, createWriteStream, existsSync, openSync, readFileSync, readSync, statSync, writeFileSync } from "node:fs";
6
+ import path, { dirname, join, resolve } from "node:path";
5
7
  import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
6
8
  import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
7
- import path, { dirname, join, resolve } from "node:path";
8
- import fs, { appendFileSync, closeSync, createReadStream, createWriteStream, existsSync, openSync, readFileSync, readSync, statSync, writeFileSync } from "node:fs";
9
9
  import process$1, { execArgv, execPath, hrtime, platform } from "node:process";
10
10
  import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
11
11
  import { spawnSync as spawnSync$1 } from "child_process";
@@ -44805,7 +44805,8 @@ var start_default = (program) => void program.command("start").description("Crea
44805
44805
  //#endregion
44806
44806
  //#region src/bin/cm.ts
44807
44807
  const program = new Command();
44808
- program.version("3.4.0-alpha.1");
44808
+ const { version } = JSON.parse(readFileSync(resolve(import.meta.dirname, "../../package.json"), "utf-8"));
44809
+ program.version(version);
44809
44810
  checkfeatures_default(program);
44810
44811
  clean_default(program);
44811
44812
  config_default(program);
package/dist/index.d.mts CHANGED
@@ -2873,10 +2873,5 @@ declare const WORKFLOW_CONFIGURATION: ({
2873
2873
  release: boolean;
2874
2874
  })[];
2875
2875
  //#endregion
2876
- //#region src/index.d.ts
2877
- declare global {
2878
- const __VERSION__: string;
2879
- }
2880
- //#endregion
2881
2876
  export { Cli, CliConfig, CliResult, CliSyncResult, CmReleaseConfig, ConditionalPluginOptions, PackageManager, ReleasePluginContext, WORKFLOW_CONFIGURATION, bun, index_d_exports as commands, configureGitWorkspace, defineConfig, docker, getCI, getConfig, getPackageJson, getPackageManager, git, lerna, npm, pnpm, release, releaseRules, runCommand, transformWriter, yarn };
2882
2877
  //# sourceMappingURL=index.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmflow/cli",
3
- "version": "3.6.1",
3
+ "version": "3.7.1",
4
4
  "description": "An awesome Git Flow",
5
5
  "license": "MIT",
6
6
  "author": "camfou",