@galacean/cli 2.0.0-alpha.8 → 2.0.0-alpha.9
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/cli.bundle.cjs +4 -2
- package/package.json +1 -1
package/dist/cli.bundle.cjs
CHANGED
|
@@ -340709,7 +340709,9 @@ async function maybeAutoPush(opts, cmd, saved) {
|
|
|
340709
340709
|
if (!saved || opts.dryRun)
|
|
340710
340710
|
return;
|
|
340711
340711
|
const globals = cmd.optsWithGlobals();
|
|
340712
|
-
const
|
|
340712
|
+
const env = process.env.GALACEAN_AUTOPUSH;
|
|
340713
|
+
const envAutoPush = env === "false" || env === "0" ? false : env === "true" || env === "1" ? true : void 0;
|
|
340714
|
+
const shouldPush = opts.push ?? envAutoPush ?? globals._config?.autoPush === "true";
|
|
340713
340715
|
if (!shouldPush)
|
|
340714
340716
|
return;
|
|
340715
340717
|
await autoPushProject(import_node_path15.default.resolve(opts.project), globals);
|
|
@@ -352777,7 +352779,7 @@ function readCliVersionFromPackageJson() {
|
|
|
352777
352779
|
const parsed = JSON.parse(raw);
|
|
352778
352780
|
return typeof parsed.version === "string" && parsed.version.length > 0 ? parsed.version : "0.0.0";
|
|
352779
352781
|
}
|
|
352780
|
-
var CLI_VERSION = "2.0.0-alpha.
|
|
352782
|
+
var CLI_VERSION = "2.0.0-alpha.9".length > 0 ? "2.0.0-alpha.9" : readCliVersionFromPackageJson();
|
|
352781
352783
|
|
|
352782
352784
|
// src/cli.ts
|
|
352783
352785
|
init_config();
|