@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.
- package/dist/commands/create.js +3 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/commands/create.js
CHANGED
|
@@ -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
|
-
|
|
141
|
-
//
|
|
142
|
-
|
|
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.
|
|
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.
|
|
2
|
+
export const CLI_VERSION = "1.0.1";
|