silgi 0.8.5 → 0.8.6

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.
@@ -1,4 +1,4 @@
1
- const version = "0.8.5";
1
+ const version = "0.8.6";
2
2
  const packageJson = {
3
3
  version: version};
4
4
 
package/dist/cli/run.mjs CHANGED
@@ -118,7 +118,7 @@ const run = defineCommand({
118
118
  const customEnvironments = silgiConfig.environments;
119
119
  const environment = await p.select({
120
120
  message: "Select an environment",
121
- options: customEnvironments.length > 0 ? customEnvironments.map((env) => ({
121
+ options: customEnvironments?.length > 0 ? customEnvironments.map((env) => ({
122
122
  label: env.fileName,
123
123
  value: env.fileName
124
124
  })) : [
@@ -127,7 +127,7 @@ const run = defineCommand({
127
127
  { label: "Docker (.env.docker)", value: "docker" }
128
128
  ]
129
129
  });
130
- const findEnv = customEnvironments.find((env) => env.fileName === environment);
130
+ const findEnv = customEnvironments?.find((env) => env.fileName === environment);
131
131
  if (findEnv) {
132
132
  await setupDotenv({
133
133
  cwd: findEnv.cwd || silgiConfig.rootDir,
@@ -1,3 +1,3 @@
1
- const version = "0.8.5";
1
+ const version = "0.8.6";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "0.8.5";
1
+ const version = "0.8.6";
2
2
 
3
3
  export { version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.8.5",
4
+ "version": "0.8.6",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {