@cmflow/cli 3.4.0-beta.24 → 3.4.0-beta.26
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/index.d.mts
CHANGED
|
@@ -1796,10 +1796,11 @@ interface CliResult extends Promise<unknown> {
|
|
|
1796
1796
|
getRaw(opt?: RunOptions): string;
|
|
1797
1797
|
get(opt?: RunOptions): string;
|
|
1798
1798
|
}
|
|
1799
|
+
type CliSyncResult = execa.ExecaSyncReturnValue<string>;
|
|
1799
1800
|
declare class Cli {
|
|
1800
1801
|
cmd: string;
|
|
1801
1802
|
constructor(cmd: string);
|
|
1802
|
-
sync(...args: string[]):
|
|
1803
|
+
sync(...args: string[]): CliSyncResult;
|
|
1803
1804
|
run(...args: string[]): CliResult;
|
|
1804
1805
|
get(...args: string[]): string;
|
|
1805
1806
|
static run(cmd: string, args?: string[], options?: RunOptions): CliResult;
|
|
@@ -1809,8 +1810,8 @@ declare class Cli {
|
|
|
1809
1810
|
//#region src/common/cli/bun.d.ts
|
|
1810
1811
|
declare class BunCli extends Cli {
|
|
1811
1812
|
constructor();
|
|
1812
|
-
newVersion(version: string):
|
|
1813
|
-
pm(...args: string[]):
|
|
1813
|
+
newVersion(version: string): CliSyncResult;
|
|
1814
|
+
pm(...args: string[]): CliSyncResult;
|
|
1814
1815
|
run(...args: string[]): CliResult;
|
|
1815
1816
|
install(...args: string[]): CliResult;
|
|
1816
1817
|
/**
|
|
@@ -1825,7 +1826,7 @@ declare const bun: BunCli;
|
|
|
1825
1826
|
declare class DockerCli extends Cli {
|
|
1826
1827
|
constructor();
|
|
1827
1828
|
tag(...args: string[]): string;
|
|
1828
|
-
login(...args: string[]):
|
|
1829
|
+
login(...args: string[]): CliSyncResult;
|
|
1829
1830
|
push(...args: string[]): CliResult;
|
|
1830
1831
|
getToken(username: string, password: string): Promise<any>;
|
|
1831
1832
|
getTags({ token, repository }: {
|
|
@@ -1844,7 +1845,7 @@ declare class GitCli extends Cli {
|
|
|
1844
1845
|
constructor();
|
|
1845
1846
|
init(...args: string[]): CliResult;
|
|
1846
1847
|
add(...args: string[]): CliResult;
|
|
1847
|
-
status(...args: string[]):
|
|
1848
|
+
status(...args: string[]): CliSyncResult;
|
|
1848
1849
|
branch(...args: string[]): CliResult;
|
|
1849
1850
|
clean(...args: string[]): CliResult;
|
|
1850
1851
|
config(...args: string[]): string;
|
|
@@ -1852,8 +1853,8 @@ declare class GitCli extends Cli {
|
|
|
1852
1853
|
commit(...args: string[]): CliResult;
|
|
1853
1854
|
fetch(...args: string[]): CliResult;
|
|
1854
1855
|
prune(...args: string[]): CliResult;
|
|
1855
|
-
merge(...args: string[]):
|
|
1856
|
-
reset(...args: string[]):
|
|
1856
|
+
merge(...args: string[]): CliSyncResult;
|
|
1857
|
+
reset(...args: string[]): CliSyncResult;
|
|
1857
1858
|
remote(...args: string[]): CliResult;
|
|
1858
1859
|
rebase(...args: string[]): CliResult;
|
|
1859
1860
|
getCommitTag(ref?: string): string;
|
|
@@ -1876,8 +1877,8 @@ declare const git: GitCli;
|
|
|
1876
1877
|
//#region src/common/cli/lerna.d.ts
|
|
1877
1878
|
declare class LernaCli extends Cli {
|
|
1878
1879
|
constructor();
|
|
1879
|
-
newVersion(version: string):
|
|
1880
|
-
version(...args: string[]):
|
|
1880
|
+
newVersion(version: string): CliSyncResult;
|
|
1881
|
+
version(...args: string[]): CliSyncResult;
|
|
1881
1882
|
run(...args: string[]): CliResult;
|
|
1882
1883
|
install(...args: string[]): CliResult;
|
|
1883
1884
|
}
|
|
@@ -1886,8 +1887,8 @@ declare const lerna: LernaCli;
|
|
|
1886
1887
|
//#region src/common/cli/npm.d.ts
|
|
1887
1888
|
declare class NpmCli extends Cli {
|
|
1888
1889
|
constructor();
|
|
1889
|
-
newVersion(version: string):
|
|
1890
|
-
version(...args: string[]):
|
|
1890
|
+
newVersion(version: string): CliSyncResult;
|
|
1891
|
+
version(...args: string[]): CliSyncResult;
|
|
1891
1892
|
run(...args: string[]): CliResult;
|
|
1892
1893
|
install(...args: string[]): CliResult;
|
|
1893
1894
|
publish(...args: string[]): CliResult;
|
|
@@ -1903,8 +1904,8 @@ declare const npm: NpmCli;
|
|
|
1903
1904
|
//#region src/common/cli/pnpm.d.ts
|
|
1904
1905
|
declare class PnpmCli extends Cli {
|
|
1905
1906
|
constructor();
|
|
1906
|
-
newVersion(version: string):
|
|
1907
|
-
version(...args: string[]):
|
|
1907
|
+
newVersion(version: string): CliSyncResult;
|
|
1908
|
+
version(...args: string[]): CliSyncResult;
|
|
1908
1909
|
run(...args: string[]): CliResult;
|
|
1909
1910
|
install(...args: string[]): CliResult;
|
|
1910
1911
|
/**
|
|
@@ -1918,8 +1919,8 @@ declare const pnpm: PnpmCli;
|
|
|
1918
1919
|
//#region src/common/cli/yarn.d.ts
|
|
1919
1920
|
declare class YarnCli extends Cli {
|
|
1920
1921
|
constructor();
|
|
1921
|
-
newVersion(version: string):
|
|
1922
|
-
version(...args: string[]):
|
|
1922
|
+
newVersion(version: string): CliSyncResult;
|
|
1923
|
+
version(...args: string[]): CliSyncResult;
|
|
1923
1924
|
run(...args: string[]): CliResult;
|
|
1924
1925
|
install(...args: string[]): CliResult;
|
|
1925
1926
|
/**
|
|
@@ -1937,45 +1938,13 @@ declare function configureGitWorkspace(context: CmContext): void;
|
|
|
1937
1938
|
declare function getPackageJson(): PackageJson;
|
|
1938
1939
|
//#endregion
|
|
1939
1940
|
//#region src/common/get-package-manager.d.ts
|
|
1940
|
-
|
|
1941
|
-
newVersion(version: string):
|
|
1942
|
-
pm(...args: string[]): undefined<string>;
|
|
1941
|
+
interface PackageManager extends Cli {
|
|
1942
|
+
newVersion(version: string): CliSyncResult;
|
|
1943
1943
|
run(...args: string[]): CliResult;
|
|
1944
1944
|
install(...args: string[]): CliResult;
|
|
1945
1945
|
restore(): CliResult;
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
get(...args: string[]): string;
|
|
1949
|
-
} | {
|
|
1950
|
-
cmd: string;
|
|
1951
|
-
newVersion(version: string): undefined<string>;
|
|
1952
|
-
version(...args: string[]): undefined<string>;
|
|
1953
|
-
run(...args: string[]): CliResult;
|
|
1954
|
-
install(...args: string[]): CliResult;
|
|
1955
|
-
publish(...args: string[]): CliResult;
|
|
1956
|
-
pack(...args: string[]): CliResult;
|
|
1957
|
-
restore(): CliResult;
|
|
1958
|
-
sync(...args: string[]): undefined<string>;
|
|
1959
|
-
get(...args: string[]): string;
|
|
1960
|
-
} | {
|
|
1961
|
-
newVersion(version: string): undefined<string>;
|
|
1962
|
-
version(...args: string[]): undefined<string>;
|
|
1963
|
-
run(...args: string[]): CliResult;
|
|
1964
|
-
install(...args: string[]): CliResult;
|
|
1965
|
-
restore(): CliResult;
|
|
1966
|
-
cmd: string;
|
|
1967
|
-
sync(...args: string[]): undefined<string>;
|
|
1968
|
-
get(...args: string[]): string;
|
|
1969
|
-
} | {
|
|
1970
|
-
newVersion(version: string): undefined<string>;
|
|
1971
|
-
version(...args: string[]): undefined<string>;
|
|
1972
|
-
run(...args: string[]): CliResult;
|
|
1973
|
-
install(...args: string[]): CliResult;
|
|
1974
|
-
restore(): CliResult;
|
|
1975
|
-
cmd: string;
|
|
1976
|
-
sync(...args: string[]): undefined<string>;
|
|
1977
|
-
get(...args: string[]): string;
|
|
1978
|
-
};
|
|
1946
|
+
}
|
|
1947
|
+
declare function getPackageManager(pkgManager: string): PackageManager;
|
|
1979
1948
|
//#endregion
|
|
1980
1949
|
//#region src/common/run-command.d.ts
|
|
1981
1950
|
declare function runCommand(klass: CommandConstructor, opts: Record<string, any>): Promise<void>;
|
|
@@ -2063,5 +2032,5 @@ declare global {
|
|
|
2063
2032
|
const __VERSION__: string;
|
|
2064
2033
|
}
|
|
2065
2034
|
//#endregion
|
|
2066
|
-
export { Cli, CliConfig, CliResult, CmReleaseConfig, ConditionalPluginOptions, 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 };
|
|
2035
|
+
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 };
|
|
2067
2036
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npm-Ckg6sg0g.mjs","names":[],"sources":["../src/common/cli/npm.ts"],"sourcesContent":["import { Cli } from \"./cli.js\";\n\nclass NpmCli extends Cli {\n constructor() {\n super(\"npm\");\n }\n\n newVersion(version: string) {\n return this.version(\"--no-git-tag-version\", version);\n }\n\n version(...args: string[]) {\n return this.sync(\"version\", ...args);\n }\n\n run(...args: string[]) {\n return super.run(\"run\", ...args);\n }\n\n install(...args: string[]) {\n return super.run(\"install\", ...args);\n }\n\n publish(...args: string[]) {\n return super.run(\"publish\", ...args);\n }\n\n pack(...args: string[]) {\n return super.run(\"pack\", ...args);\n }\n\n /**\n * Reinstall dependencies without package-lock mutation\n * @returns {Promise<unknown>}\n */\n restore() {\n return super.run(\"ci\");\n }\n}\n\nexport const npm = new NpmCli();\n"],"mappings":";;8CAwCA,MAAa,EAAM,IAAI,cAtCF,CAAI,CACvB,aAAc,CACZ,MAAM,KAAK,CACb,CAEA,WAAW,
|
|
1
|
+
{"version":3,"file":"npm-Ckg6sg0g.mjs","names":[],"sources":["../src/common/cli/npm.ts"],"sourcesContent":["import { type CliResult, type CliSyncResult, Cli } from \"./cli.js\";\n\nclass NpmCli extends Cli {\n constructor() {\n super(\"npm\");\n }\n\n newVersion(version: string): CliSyncResult {\n return this.version(\"--no-git-tag-version\", version);\n }\n\n version(...args: string[]): CliSyncResult {\n return this.sync(\"version\", ...args);\n }\n\n run(...args: string[]): CliResult {\n return super.run(\"run\", ...args);\n }\n\n install(...args: string[]): CliResult {\n return super.run(\"install\", ...args);\n }\n\n publish(...args: string[]): CliResult {\n return super.run(\"publish\", ...args);\n }\n\n pack(...args: string[]): CliResult {\n return super.run(\"pack\", ...args);\n }\n\n /**\n * Reinstall dependencies without package-lock mutation\n * @returns {Promise<unknown>}\n */\n restore(): CliResult {\n return super.run(\"ci\");\n }\n}\n\nexport const npm = new NpmCli();\n"],"mappings":";;8CAwCA,MAAa,EAAM,IAAI,cAtCF,CAAI,CACvB,aAAc,CACZ,MAAM,KAAK,CACb,CAEA,WAAW,EAAgC,CACzC,OAAO,KAAK,QAAQ,uBAAwB,CAAO,CACrD,CAEA,QAAQ,GAAG,EAA+B,CACxC,OAAO,KAAK,KAAK,UAAW,GAAG,CAAI,CACrC,CAEA,IAAI,GAAG,EAA2B,CAChC,OAAO,MAAM,IAAI,MAAO,GAAG,CAAI,CACjC,CAEA,QAAQ,GAAG,EAA2B,CACpC,OAAO,MAAM,IAAI,UAAW,GAAG,CAAI,CACrC,CAEA,QAAQ,GAAG,EAA2B,CACpC,OAAO,MAAM,IAAI,UAAW,GAAG,CAAI,CACrC,CAEA,KAAK,GAAG,EAA2B,CACjC,OAAO,MAAM,IAAI,OAAQ,GAAG,CAAI,CAClC,CAMA,SAAqB,CACnB,OAAO,MAAM,IAAI,IAAI,CACvB,CACF"}
|