@solidactions/cli 1.19.0 → 1.20.0

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.
@@ -135,9 +135,10 @@ async function deploy(projectName, sourcePath, options = {}) {
135
135
  process.exit(1);
136
136
  }
137
137
  // -------------------------------------------------------------------------
138
- // Production-existence check — must happen BEFORE we apply any env default
139
- // so that first-time deploys without -e get a helpful error instead of
140
- // silently creating a dev-only project with no production root.
138
+ // First-deploy check — must happen BEFORE we apply any env default so that
139
+ // first-time deploys without -e get a helpful error prompting a deliberate
140
+ // environment choice, instead of silently defaulting. (Any environment can
141
+ // stand alone — production is not required to exist first.)
141
142
  // -------------------------------------------------------------------------
142
143
  let productionExists = null; // null = unknown (error path)
143
144
  let productionSlug = null;
@@ -164,14 +165,15 @@ async function deploy(projectName, sourcePath, options = {}) {
164
165
  process.exit(1);
165
166
  }
166
167
  }
167
- // Decision: if production does not exist and no -e flag was given, the user
168
- // must pick an environment explicitly to avoid creating a broken dev-only project.
168
+ // Decision: if this is the first deploy (project doesn't exist yet) and no -e
169
+ // flag was given, prompt the user to choose an environment explicitly so the
170
+ // first deploy is deliberate. Any environment can be the first one.
169
171
  if (productionExists === false && explicitEnv === undefined) {
170
172
  console.error(chalk_1.default.red(`\nThis is the first deploy of "${projectName}" — please pick an environment explicitly:\n`));
171
173
  console.error(` solidactions project deploy ${projectName} <path> -e production # most projects start here`);
172
- console.error(` solidactions project deploy ${projectName} <path> -e dev # dev-only (uncommon; no production root will exist)`);
173
- console.error(` solidactions project deploy ${projectName} <path> -e staging # staging-only (uncommon)`);
174
- console.error(chalk_1.default.gray('\nTip: most projects should start with `-e production`. A project needs a production root before dev/staging children can attach to it.'));
174
+ console.error(` solidactions project deploy ${projectName} <path> -e dev # start in dev (no production required first)`);
175
+ console.error(` solidactions project deploy ${projectName} <path> -e staging # start in staging`);
176
+ console.error(chalk_1.default.gray('\nTip: production is the usual default, but any environment can stand alone pick whichever you want this project to start with.'));
175
177
  process.exit(1);
176
178
  }
177
179
  // Apply default: if production already exists and the user didn't pass -e,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidactions/cli",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "SolidActions CLI - Deploy and manage workflow automation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {