@glash/cli 0.2.16 → 0.2.17
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/commands/deploy.mjs +3 -2
- package/lib/version.mjs +1 -1
- package/package.json +1 -1
package/commands/deploy.mjs
CHANGED
|
@@ -123,7 +123,8 @@ export async function deploy({ flags }) {
|
|
|
123
123
|
let projectId;
|
|
124
124
|
try { projectId = await resolveProjectId(flags); } catch (e) { return fail(e.message); }
|
|
125
125
|
|
|
126
|
-
const
|
|
126
|
+
const remoteDeploy = Boolean(flags.git || flags.repo || flags.remote);
|
|
127
|
+
const commitHash = flags.commit || (remoteDeploy ? undefined : currentCommit());
|
|
127
128
|
const gitBranch = flags.branch || currentBranch();
|
|
128
129
|
const target = flags.prod || flags.production ? 'production' : (flags.target || 'production');
|
|
129
130
|
|
|
@@ -137,7 +138,7 @@ export async function deploy({ flags }) {
|
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
|
|
140
|
-
if (!
|
|
141
|
+
if (!remoteDeploy) {
|
|
141
142
|
info(color.dim(`→ uploading local source for project ${projectId} (${target})`));
|
|
142
143
|
const zipPath = join(tmpdir(), `glash-deploy-${Date.now()}.zip`);
|
|
143
144
|
try {
|
package/lib/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.17';
|
package/package.json
CHANGED