@by-association-only/cli 3.2.0 → 3.4.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/index.d.ts CHANGED
@@ -1 +1 @@
1
-
1
+ #!/usr/bin/env node
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -41,7 +42,7 @@ var import_commander = require("commander");
41
42
  // package.json
42
43
  var package_default = {
43
44
  name: "@by-association-only/cli",
44
- version: "3.2.0",
45
+ version: "3.3.0",
45
46
  description: "By Association Only CLI",
46
47
  private: false,
47
48
  author: "BAO Agency",
@@ -114,11 +115,6 @@ var config = {
114
115
  }
115
116
  };
116
117
 
117
- // src/commands/create/local.ts
118
- var process2 = __toESM(require("process"));
119
- var fs2 = __toESM(require("fs"));
120
- var import_kleur2 = __toESM(require("kleur"));
121
-
122
118
  // src/commands/utils.ts
123
119
  var import_node_child_process = require("child_process");
124
120
  var import_kleur = __toESM(require("kleur"));
@@ -153,6 +149,9 @@ function spawnPromise(command, ...args) {
153
149
  }
154
150
 
155
151
  // src/commands/create/local.ts
152
+ var process2 = __toESM(require("process"));
153
+ var fs2 = __toESM(require("fs"));
154
+ var import_kleur2 = __toESM(require("kleur"));
156
155
  async function checkLocalDependencies() {
157
156
  renderStepTitle("Checking dependencies");
158
157
  const hasGithubToken = process2.env.GITHUB_AUTH_TOKEN !== void 0;
@@ -333,7 +332,7 @@ async function changeShopifyStoreName(config2, answers) {
333
332
  if (!packageJson.scripts) {
334
333
  return renderStepError("package.json has no scripts key");
335
334
  }
336
- packageJson.scripts["shopify:serve"] = `shopify theme dev -s ${answers.shopName}`;
335
+ packageJson.scripts["shopify:serve"] = `shopify theme dev -s ${answers.shopName} --live-reload full-page`;
337
336
  try {
338
337
  await (0, import_promises.writeFile)(
339
338
  `${config2.localProjectLocation}/package.json`,
@@ -448,6 +447,21 @@ async function finish(config2, answers) {
448
447
  )}`)}`));
449
448
  console.info();
450
449
  console.info(import_kleur4.default.yellow("Not bad for running just 1 command! Happy dev'ing \u270C\uFE0F\n"));
450
+ const otherAnswers = await import_inquirer.default.prompt([{
451
+ type: "confirm",
452
+ name: "runDev",
453
+ message: 'Would you like me to run "pnpm run dev" for you?'
454
+ }]);
455
+ if (otherAnswers.runDev) {
456
+ await spawnPromise(
457
+ "pnpm",
458
+ [
459
+ "run",
460
+ "dev"
461
+ ],
462
+ { stdio: "inherit" }
463
+ );
464
+ }
451
465
  }
452
466
 
453
467
  // src/index.ts
package/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  var __defProp = Object.defineProperty;
2
3
  var __defProps = Object.defineProperties;
3
4
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -24,7 +25,7 @@ import { program } from "commander";
24
25
  // package.json
25
26
  var package_default = {
26
27
  name: "@by-association-only/cli",
27
- version: "3.2.0",
28
+ version: "3.3.0",
28
29
  description: "By Association Only CLI",
29
30
  private: false,
30
31
  author: "BAO Agency",
@@ -97,11 +98,6 @@ var config = {
97
98
  }
98
99
  };
99
100
 
100
- // src/commands/create/local.ts
101
- import * as process2 from "process";
102
- import * as fs2 from "fs";
103
- import kleur2 from "kleur";
104
-
105
101
  // src/commands/utils.ts
106
102
  import { execSync, spawn } from "child_process";
107
103
  import kleur from "kleur";
@@ -136,6 +132,9 @@ function spawnPromise(command, ...args) {
136
132
  }
137
133
 
138
134
  // src/commands/create/local.ts
135
+ import * as process2 from "process";
136
+ import * as fs2 from "fs";
137
+ import kleur2 from "kleur";
139
138
  async function checkLocalDependencies() {
140
139
  renderStepTitle("Checking dependencies");
141
140
  const hasGithubToken = process2.env.GITHUB_AUTH_TOKEN !== void 0;
@@ -316,7 +315,7 @@ async function changeShopifyStoreName(config2, answers) {
316
315
  if (!packageJson.scripts) {
317
316
  return renderStepError("package.json has no scripts key");
318
317
  }
319
- packageJson.scripts["shopify:serve"] = `shopify theme dev -s ${answers.shopName}`;
318
+ packageJson.scripts["shopify:serve"] = `shopify theme dev -s ${answers.shopName} --live-reload full-page`;
320
319
  try {
321
320
  await writeFile(
322
321
  `${config2.localProjectLocation}/package.json`,
@@ -431,6 +430,21 @@ async function finish(config2, answers) {
431
430
  )}`)}`));
432
431
  console.info();
433
432
  console.info(kleur4.yellow("Not bad for running just 1 command! Happy dev'ing \u270C\uFE0F\n"));
433
+ const otherAnswers = await inquirer.prompt([{
434
+ type: "confirm",
435
+ name: "runDev",
436
+ message: 'Would you like me to run "pnpm run dev" for you?'
437
+ }]);
438
+ if (otherAnswers.runDev) {
439
+ await spawnPromise(
440
+ "pnpm",
441
+ [
442
+ "run",
443
+ "dev"
444
+ ],
445
+ { stdio: "inherit" }
446
+ );
447
+ }
434
448
  }
435
449
 
436
450
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@by-association-only/cli",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "By Association Only CLI",
5
5
  "private": false,
6
6
  "author": "BAO Agency",