@zalify/cli 0.15.0 → 0.16.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.
- package/dist/cli.js +3 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12584,11 +12584,13 @@ async function shopCreate(dir2, opts) {
|
|
|
12584
12584
|
git: opts.git
|
|
12585
12585
|
});
|
|
12586
12586
|
writeFileSync6(join5(resolve4(dir2), ".zalify", "site.json"), JSON.stringify({ id: siteId, slug: view.slug, domain: view.domain, repo: view.githubRepo }, null, 2) + `
|
|
12587
|
+
`);
|
|
12588
|
+
writeFileSync6(join5(resolve4(dir2), "theme", "pixel.json"), JSON.stringify({ workspaceId: auth.workspaceId }, null, 2) + `
|
|
12587
12589
|
`);
|
|
12588
12590
|
if (opts.git !== false && view.githubRepo) {
|
|
12589
12591
|
const { token, repo } = await request(auth, "POST", `/api/sites/${siteId}/push-token`, {});
|
|
12590
12592
|
const run = (args) => spawnSync3("git", args, { cwd: resolve4(dir2), stdio: "ignore" });
|
|
12591
|
-
run(["add", ".zalify/site.json"]);
|
|
12593
|
+
run(["add", ".zalify/site.json", "theme/pixel.json"]);
|
|
12592
12594
|
run(["commit", "-m", "Link site record", "--no-verify"]);
|
|
12593
12595
|
run(["remote", "add", "origin", `https://github.com/${repo}.git`]);
|
|
12594
12596
|
const push = spawnSync3("git", ["push", `https://x-access-token:${token}@github.com/${repo}.git`, "main"], { cwd: resolve4(dir2), stdio: "inherit" });
|