@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.
@@ -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 commitHash = flags.commit || currentCommit();
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 (!flags.git && !flags.repo && !flags.remote) {
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.16';
1
+ export const VERSION = '0.2.17';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glash/cli",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "glashDB command-line interface — deploy projects, pull source + env, manage env vars.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://glashdb.com",