@gluhar/cli 2.5.0 → 2.5.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gluhar/cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Gluhar cli commands and scripts",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./src/index.ts",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"tsconfig-paths": "^4.2.0",
|
|
45
45
|
"typescript": "^5.5.4"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "6aeb0ebe6cec454e140af6adacd4c77bb7d5913d"
|
|
48
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/commands/deploy/deploy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/commands/deploy/deploy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMhD,eAAO,MAAM,MAAM,YAAmB,aAAa,kBA+BlD,CAAC"}
|
|
@@ -5,7 +5,7 @@ const git_1 = require("../../scripts/git");
|
|
|
5
5
|
const log_1 = require("./log");
|
|
6
6
|
const deployIos_1 = require("./deployIos");
|
|
7
7
|
const setSsr_1 = require("./setSsr");
|
|
8
|
-
const deploy = (options) => {
|
|
8
|
+
const deploy = async (options) => {
|
|
9
9
|
log_1.log.info("Deploying app...", options);
|
|
10
10
|
// Deploy app to iOS
|
|
11
11
|
if (options.ios) {
|
|
@@ -20,12 +20,8 @@ const deploy = (options) => {
|
|
|
20
20
|
}
|
|
21
21
|
// Default Deploy app to web
|
|
22
22
|
const fromBranch = options.from || "dev";
|
|
23
|
-
const {
|
|
24
|
-
|
|
25
|
-
log_1.log.error("Branch 'deploy' does not exists or has not been pushed to or pulled from remote yet.");
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
git_1.git.branch.checkout("deploy");
|
|
23
|
+
const { remote } = git_1.git.branch.exists("deploy");
|
|
24
|
+
git_1.git.branch.checkout("deploy", { newBranch: !remote });
|
|
29
25
|
log_1.log.info("Checked out to deploy branch");
|
|
30
26
|
git_1.git.merge(fromBranch, true);
|
|
31
27
|
log_1.log.info(`Merged with ${fromBranch}`);
|