@rubytech/taskmaster 1.29.0 → 1.29.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/dist/build-info.json
CHANGED
|
@@ -189,7 +189,14 @@ async function runInstall(packFile, opts) {
|
|
|
189
189
|
process.exit(1);
|
|
190
190
|
}
|
|
191
191
|
const { payload } = result;
|
|
192
|
-
const
|
|
192
|
+
const rawWorkspace = opts.workspace ?? path.join(os.homedir(), "taskmaster");
|
|
193
|
+
// Expand leading ~ — tilde is not shell-expanded when the workspace is passed
|
|
194
|
+
// as a CLI arg via SSH (double-quoted args suppress tilde expansion in bash).
|
|
195
|
+
const workspaceDir = rawWorkspace.startsWith("~/")
|
|
196
|
+
? path.join(os.homedir(), rawWorkspace.slice(2))
|
|
197
|
+
: rawWorkspace === "~"
|
|
198
|
+
? os.homedir()
|
|
199
|
+
: rawWorkspace;
|
|
193
200
|
console.log(theme.heading(`Installing white glove pack: ${payload.pack.name}`));
|
|
194
201
|
console.log(theme.muted(` Workspace: ${workspaceDir}`));
|
|
195
202
|
console.log("");
|