@by-association-only/cli 3.3.0 → 3.5.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.js CHANGED
@@ -115,11 +115,6 @@ var config = {
115
115
  }
116
116
  };
117
117
 
118
- // src/commands/create/local.ts
119
- var process2 = __toESM(require("process"));
120
- var fs2 = __toESM(require("fs"));
121
- var import_kleur2 = __toESM(require("kleur"));
122
-
123
118
  // src/commands/utils.ts
124
119
  var import_node_child_process = require("child_process");
125
120
  var import_kleur = __toESM(require("kleur"));
@@ -154,6 +149,9 @@ function spawnPromise(command, ...args) {
154
149
  }
155
150
 
156
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"));
157
155
  async function checkLocalDependencies() {
158
156
  renderStepTitle("Checking dependencies");
159
157
  const hasGithubToken = process2.env.GITHUB_AUTH_TOKEN !== void 0;
@@ -334,7 +332,7 @@ async function changeShopifyStoreName(config2, answers) {
334
332
  if (!packageJson.scripts) {
335
333
  return renderStepError("package.json has no scripts key");
336
334
  }
337
- 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`;
338
336
  try {
339
337
  await (0, import_promises.writeFile)(
340
338
  `${config2.localProjectLocation}/package.json`,
@@ -449,6 +447,21 @@ async function finish(config2, answers) {
449
447
  )}`)}`));
450
448
  console.info();
451
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
+ }
452
465
  }
453
466
 
454
467
  // src/index.ts
package/dist/index.mjs CHANGED
@@ -98,11 +98,6 @@ var config = {
98
98
  }
99
99
  };
100
100
 
101
- // src/commands/create/local.ts
102
- import * as process2 from "process";
103
- import * as fs2 from "fs";
104
- import kleur2 from "kleur";
105
-
106
101
  // src/commands/utils.ts
107
102
  import { execSync, spawn } from "child_process";
108
103
  import kleur from "kleur";
@@ -137,6 +132,9 @@ function spawnPromise(command, ...args) {
137
132
  }
138
133
 
139
134
  // src/commands/create/local.ts
135
+ import * as process2 from "process";
136
+ import * as fs2 from "fs";
137
+ import kleur2 from "kleur";
140
138
  async function checkLocalDependencies() {
141
139
  renderStepTitle("Checking dependencies");
142
140
  const hasGithubToken = process2.env.GITHUB_AUTH_TOKEN !== void 0;
@@ -317,7 +315,7 @@ async function changeShopifyStoreName(config2, answers) {
317
315
  if (!packageJson.scripts) {
318
316
  return renderStepError("package.json has no scripts key");
319
317
  }
320
- 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`;
321
319
  try {
322
320
  await writeFile(
323
321
  `${config2.localProjectLocation}/package.json`,
@@ -432,6 +430,21 @@ async function finish(config2, answers) {
432
430
  )}`)}`));
433
431
  console.info();
434
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
+ }
435
448
  }
436
449
 
437
450
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@by-association-only/cli",
3
- "version": "3.3.0",
3
+ "version": "3.5.0",
4
4
  "description": "By Association Only CLI",
5
5
  "private": false,
6
6
  "author": "BAO Agency",