@wujiland/cli 1.0.0 → 1.0.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.
@@ -137,10 +137,9 @@ export async function create(ctx) {
137
137
  if (reg.status === "failed") {
138
138
  throw new CliError(EXIT.OUTSIDE, "PROVISION_FAILED", `Provisioning ${slug} stopped: ${JSON.stringify(reg.failure)}.`, `inca create ${slug} again resumes from the failed step.`, { failure: reg.failure });
139
139
  }
140
- const main = await gitOk(deps, dir, ["ls-remote", "--heads", "origin", "refs/heads/main"]);
141
- // Only the first run pushes main, and only main's own commit; a resumed run never ships local dev.
142
- if (main.stdout.trim() === "")
143
- await gitOk(deps, dir, ["push", "origin", "refs/heads/main:refs/heads/main"]);
140
+ // Local main (the template plus the config commit), never HEAD: a resumed run cannot ship local dev.
141
+ // Not forced, so it only ever fast-forwards.
142
+ await gitOk(deps, dir, ["push", "origin", "refs/heads/main:refs/heads/main"]);
144
143
  const dev = await gitOk(deps, dir, ["ls-remote", "--heads", "origin", "refs/heads/dev"]);
145
144
  if (dev.stdout.trim() === "") {
146
145
  await gitOk(deps, dir, ["push", "origin", "HEAD:refs/heads/dev"]);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const CLI_VERSION = "1.0.0";
1
+ export declare const CLI_VERSION = "1.0.1";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Equals cli/package.json "version"; a test keeps them in step.
2
- export const CLI_VERSION = "1.0.0";
2
+ export const CLI_VERSION = "1.0.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wujiland/cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "inca: the command line for the whole life of an Inca app.",
5
5
  "license": "MIT",
6
6
  "type": "module",