@pitcher/cli-scripts 2.0.1 → 2.0.2

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/README.md CHANGED
@@ -44,4 +44,4 @@ p publish-app --increment-version --install-to-env-name "Production"
44
44
  - `--dry-run`: Perform a dry run without publishing
45
45
  - `--publish-url <url>`: Explicit publish URL
46
46
  - `--install-to <instanceIds>`: Comma-separated list of instance IDs to install the app to after publishing
47
- - `--install-to-env-name <envName>`: Environment name to filter instances and install the app to after publishing
47
+ - `--install-to-env-name <envName>`: Environment name to filter instances and install the app to after publishing (case-insensitive)
@@ -61,7 +61,9 @@ async function fetchAllInstances(baseUrl, apiKey) {
61
61
  }
62
62
  }
63
63
  function filterInstancesByEnvName(instances, envName) {
64
- const filtered = instances.filter((instance) => instance.env_name === envName);
64
+ const normalizedEnvName = envName.toLowerCase();
65
+ const filtered = instances.filter((instance) => instance.env_name &&
66
+ instance.env_name.toLowerCase() === normalizedEnvName);
65
67
  if (filtered.length === 0) {
66
68
  console.warn(`No instances found with environment name "${envName}"`);
67
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pitcher/cli-scripts",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "The Pitcher CLI for various tasks in its ecosystem.",
5
5
  "author": "Pitcher AG",
6
6
  "license": "MIT",