@sylphx/cli 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ var import_commander16 = require("commander");
30
30
  // package.json
31
31
  var package_default = {
32
32
  name: "@sylphx/cli",
33
- version: "0.1.7",
33
+ version: "0.1.8",
34
34
  description: "Sylphx Platform CLI \u2014 deploy, manage logs, env vars, and more",
35
35
  type: "commonjs",
36
36
  bin: {
@@ -1170,7 +1170,9 @@ var linkCommand = new import_commander6.Command("link").description("Link curren
1170
1170
  if (envs.length > 1) {
1171
1171
  console.log(import_chalk7.default.bold("\n Available environments:\n"));
1172
1172
  envs.forEach((env, i) => {
1173
- console.log(` ${import_chalk7.default.cyan(String(i + 1))}. ${env.slug} ${import_chalk7.default.dim(`(${env.name})`)}`);
1173
+ console.log(
1174
+ ` ${import_chalk7.default.cyan(String(i + 1))}. ${env.envType ?? env.slug ?? env.name} ${import_chalk7.default.dim(`(${env.name})`)}`
1175
+ );
1174
1176
  });
1175
1177
  console.log("");
1176
1178
  const envChoice = await prompt3(
@@ -1179,7 +1181,7 @@ var linkCommand = new import_commander6.Command("link").description("Link curren
1179
1181
  if (envChoice) {
1180
1182
  const envIdx = Number.parseInt(envChoice, 10) - 1;
1181
1183
  if (!Number.isNaN(envIdx) && envIdx >= 0 && envIdx < envs.length && envs[envIdx]) {
1182
- defaultEnv = envs[envIdx]?.slug;
1184
+ defaultEnv = envs[envIdx]?.envType ?? envs[envIdx]?.slug ?? "production";
1183
1185
  }
1184
1186
  }
1185
1187
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Sylphx Platform CLI — deploy, manage logs, env vars, and more",
5
5
  "type": "commonjs",
6
6
  "bin": {