@shopify/create-app 3.60.1 → 3.61.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.
Files changed (52) hide show
  1. package/dist/{chunk-TKY6QESY.js → chunk-5MCGL7UQ.js} +12 -9
  2. package/dist/{chunk-ZBKHJE3N.js → chunk-5ZQGZROG.js} +1 -1
  3. package/dist/{chunk-LDECNC3Y.js → chunk-7DQJXYT6.js} +3 -3
  4. package/dist/{chunk-OXJ5MQHM.js → chunk-7GUERDDS.js} +1 -1
  5. package/dist/{chunk-O6M5TKNA.js → chunk-7SB7WQ6J.js} +5 -5
  6. package/dist/{chunk-GOKYAXOZ.js → chunk-BO6VY6XY.js} +2598 -795
  7. package/dist/{chunk-ZZNPAHP2.js → chunk-CJVWT6IG.js} +3603 -4080
  8. package/dist/{chunk-M64BQPYS.js → chunk-CKKF7TFO.js} +1 -1
  9. package/dist/{chunk-TMGCRPEZ.js → chunk-HTYJDJRZ.js} +685 -215
  10. package/dist/{chunk-ZPB26OWQ.js → chunk-K5EEGEVV.js} +34 -14
  11. package/dist/{chunk-P4TVG45N.js → chunk-LUP5VDI4.js} +10 -3
  12. package/dist/{chunk-JOHH6AAC.js → chunk-MIJHK6ZL.js} +22 -17
  13. package/dist/{chunk-PNYJF4EH.js → chunk-PBU62XMI.js} +23 -6
  14. package/dist/{chunk-UQNUIOTG.js → chunk-Q5FUGUDS.js} +1 -1
  15. package/dist/{chunk-JOQ4LR3M.js → chunk-R5KQZMEG.js} +1 -1
  16. package/dist/{chunk-YLEF4RUH.js → chunk-RAFFEFML.js} +4 -0
  17. package/dist/{chunk-XHBFBPB6.js → chunk-TAJ7LPFK.js} +7 -7
  18. package/dist/{chunk-XUFDGROC.js → chunk-TPUQWQRW.js} +3 -3
  19. package/dist/{chunk-3JNB3A7C.js → chunk-U4YACXEW.js} +567 -357
  20. package/dist/{chunk-QREVPZ7Q.js → chunk-ZNPDLJF7.js} +23 -19
  21. package/dist/commands/init.js +19 -19
  22. package/dist/commands/init.js.map +1 -1
  23. package/dist/commands/init.test.js +20 -20
  24. package/dist/{constants-K3R4N3N3.js → constants-NNLQHFRJ.js} +3 -1
  25. package/dist/{custom-oclif-loader-KRA6A5M7.js → custom-oclif-loader-RLNBRURI.js} +7 -6
  26. package/dist/{del-A5YM6R3Y.js → del-ICEHOC6W.js} +2 -2
  27. package/dist/{devtools-KQM4GF6J.js → devtools-6HZ2IPFU.js} +154 -252
  28. package/dist/{error-handler-B3H5KJQO.js → error-handler-764JJPWK.js} +13 -13
  29. package/dist/hooks/postrun.js +12 -12
  30. package/dist/hooks/prerun.js +8 -8
  31. package/dist/index.js +4 -4
  32. package/dist/{lib-TQDGEQFC.js → lib-76RCE6WZ.js} +3 -3
  33. package/dist/{local-ZW3HRQCH.js → local-GRWHBAAP.js} +5 -5
  34. package/dist/{magic-string.es-6WMSFIAX.js → magic-string.es-6DE547FE.js} +79 -18
  35. package/dist/{multipart-parser-O2BQODS2.js → multipart-parser-ENLY4BKU.js} +1 -1
  36. package/dist/{node-package-manager-4W6NW7NV.js → node-package-manager-VZCY35QS.js} +6 -6
  37. package/dist/{out-JZ52TJE3.js → out-M5MRQZP5.js} +1 -1
  38. package/dist/prompts/init.js +6 -6
  39. package/dist/prompts/init.test.js +7 -7
  40. package/dist/services/init.d.ts +3 -0
  41. package/dist/services/init.js +13 -13
  42. package/dist/services/init.js.map +1 -1
  43. package/dist/services/init.test.js +1 -1
  44. package/dist/{system-RKPPFGSA.js → system-UYKY6OX7.js} +5 -5
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/dist/{ui-MNEY4ULE.js → ui-P6NP425V.js} +5 -5
  47. package/dist/utils/template/cleanup.js +6 -6
  48. package/dist/utils/template/cleanup.test.js +7 -7
  49. package/dist/utils/template/npm.js +8 -8
  50. package/dist/utils/template/npm.test.js +9 -9
  51. package/oclif.manifest.json +1 -1
  52. package/package.json +2 -2
@@ -13,7 +13,7 @@ import {
13
13
  require_get_stream,
14
14
  runWithTimer,
15
15
  writeFile
16
- } from "./chunk-ZZNPAHP2.js";
16
+ } from "./chunk-CJVWT6IG.js";
17
17
  import {
18
18
  dirname,
19
19
  joinPath
@@ -4767,9 +4767,9 @@ var require_config_chain = __commonJS({
4767
4767
  }
4768
4768
  });
4769
4769
 
4770
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
4770
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
4771
4771
  var require_envKeyToSetting = __commonJS({
4772
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js"(exports, module) {
4772
+ "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js"(exports, module) {
4773
4773
  init_cjs_shims();
4774
4774
  module.exports = function(x) {
4775
4775
  const colonIndex = x.indexOf(":");
@@ -4843,9 +4843,9 @@ var require_dist2 = __commonJS({
4843
4843
  }
4844
4844
  });
4845
4845
 
4846
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/util.js
4846
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/util.js
4847
4847
  var require_util = __commonJS({
4848
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/util.js"(exports) {
4848
+ "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/util.js"(exports) {
4849
4849
  "use strict";
4850
4850
  init_cjs_shims();
4851
4851
  var fs = __require("fs");
@@ -4941,9 +4941,9 @@ var require_util = __commonJS({
4941
4941
  }
4942
4942
  });
4943
4943
 
4944
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/types.js
4944
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/types.js
4945
4945
  var require_types = __commonJS({
4946
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/types.js"(exports) {
4946
+ "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/types.js"(exports) {
4947
4947
  "use strict";
4948
4948
  init_cjs_shims();
4949
4949
  var path = __require("path");
@@ -5081,9 +5081,9 @@ var require_types = __commonJS({
5081
5081
  }
5082
5082
  });
5083
5083
 
5084
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/conf.js
5084
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/conf.js
5085
5085
  var require_conf = __commonJS({
5086
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/conf.js"(exports, module) {
5086
+ "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/conf.js"(exports, module) {
5087
5087
  "use strict";
5088
5088
  init_cjs_shims();
5089
5089
  var { readCAFileSync } = require_dist();
@@ -5221,9 +5221,9 @@ var require_conf = __commonJS({
5221
5221
  }
5222
5222
  });
5223
5223
 
5224
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/defaults.js
5224
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/defaults.js
5225
5225
  var require_defaults = __commonJS({
5226
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports) {
5226
+ "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports) {
5227
5227
  "use strict";
5228
5228
  init_cjs_shims();
5229
5229
  var os2 = __require("os");
@@ -5246,7 +5246,7 @@ var require_defaults = __commonJS({
5246
5246
  home = path.resolve(temp, "npm-" + uidOrPid);
5247
5247
  }
5248
5248
  var cacheExtra = process.platform === "win32" ? "npm-cache" : ".npm";
5249
- var cacheRoot = process.platform === "win32" ? process.env.APPDATA : home;
5249
+ var cacheRoot = process.platform === "win32" && process.env.APPDATA || home;
5250
5250
  var cache = path.resolve(cacheRoot, cacheExtra);
5251
5251
  var defaults2;
5252
5252
  var globalPrefix;
@@ -5391,9 +5391,9 @@ var require_defaults = __commonJS({
5391
5391
  }
5392
5392
  });
5393
5393
 
5394
- // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/index.js
5394
+ // ../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/index.js
5395
5395
  var require_npm_conf = __commonJS({
5396
- "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/index.js"(exports, module) {
5396
+ "../../node_modules/.pnpm/@pnpm+npm-conf@2.2.2/node_modules/@pnpm/npm-conf/index.js"(exports, module) {
5397
5397
  "use strict";
5398
5398
  init_cjs_shims();
5399
5399
  var path = __require("path");
@@ -8051,7 +8051,7 @@ init_cjs_shims();
8051
8051
  // ../../node_modules/.pnpm/latest-version@7.0.0/node_modules/latest-version/index.js
8052
8052
  init_cjs_shims();
8053
8053
 
8054
- // ../../node_modules/.pnpm/package-json@8.1.0/node_modules/package-json/index.js
8054
+ // ../../node_modules/.pnpm/package-json@8.1.1/node_modules/package-json/index.js
8055
8055
  init_cjs_shims();
8056
8056
  import { Agent as HttpAgent } from "node:http";
8057
8057
  import { Agent as HttpsAgent } from "node:https";
@@ -8838,7 +8838,7 @@ import urlLib from "node:url";
8838
8838
  import crypto from "node:crypto";
8839
8839
  import stream, { PassThrough as PassThroughStream } from "node:stream";
8840
8840
 
8841
- // ../../node_modules/.pnpm/normalize-url@8.0.0/node_modules/normalize-url/index.js
8841
+ // ../../node_modules/.pnpm/normalize-url@8.0.1/node_modules/normalize-url/index.js
8842
8842
  init_cjs_shims();
8843
8843
  var DATA_URL_DEFAULT_MIME_TYPE = "text/plain";
8844
8844
  var DATA_URL_DEFAULT_CHARSET = "us-ascii";
@@ -8851,7 +8851,7 @@ var supportedProtocols = /* @__PURE__ */ new Set([
8851
8851
  var hasCustomProtocol = (urlString) => {
8852
8852
  try {
8853
8853
  const { protocol } = new URL(urlString);
8854
- return protocol.endsWith(":") && !supportedProtocols.has(protocol);
8854
+ return protocol.endsWith(":") && !protocol.includes(".") && !supportedProtocols.has(protocol);
8855
8855
  } catch {
8856
8856
  return false;
8857
8857
  }
@@ -13305,7 +13305,7 @@ function registryUrl(scope) {
13305
13305
  return url.slice(-1) === "/" ? url : `${url}/`;
13306
13306
  }
13307
13307
 
13308
- // ../../node_modules/.pnpm/package-json@8.1.0/node_modules/package-json/index.js
13308
+ // ../../node_modules/.pnpm/package-json@8.1.1/node_modules/package-json/index.js
13309
13309
  var import_registry_auth_token = __toESM(require_registry_auth_token(), 1);
13310
13310
  var import_semver = __toESM(require_semver2(), 1);
13311
13311
  var agentOptions = {
@@ -13358,7 +13358,7 @@ async function packageJson(packageName, options) {
13358
13358
  try {
13359
13359
  data = await source_default2(packageUrl, gotOptions).json();
13360
13360
  } catch (error) {
13361
- if (error.response.statusCode === 404) {
13361
+ if (error?.response?.statusCode === 404) {
13362
13362
  throw new PackageNotFoundError(packageName);
13363
13363
  }
13364
13364
  throw error;
@@ -13369,7 +13369,9 @@ async function packageJson(packageName, options) {
13369
13369
  let { version } = options;
13370
13370
  const versionError = new VersionNotFoundError(packageName, version);
13371
13371
  if (data["dist-tags"][version]) {
13372
+ const time = data.time;
13372
13373
  data = data.versions[data["dist-tags"][version]];
13374
+ data.time = time;
13373
13375
  } else if (version) {
13374
13376
  if (!data.versions[version]) {
13375
13377
  const versions = Object.keys(data.versions);
@@ -13378,7 +13380,9 @@ async function packageJson(packageName, options) {
13378
13380
  throw versionError;
13379
13381
  }
13380
13382
  }
13383
+ const time = data.time;
13381
13384
  data = data.versions[version];
13385
+ data.time = time;
13382
13386
  if (!data) {
13383
13387
  throw versionError;
13384
13388
  }
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  Init
3
- } from "../chunk-TKY6QESY.js";
4
- import "../chunk-JOHH6AAC.js";
3
+ } from "../chunk-5MCGL7UQ.js";
4
+ import "../chunk-MIJHK6ZL.js";
5
5
  import "../chunk-LKGDG6WW.js";
6
- import "../chunk-PNYJF4EH.js";
7
- import "../chunk-M64BQPYS.js";
8
- import "../chunk-XUFDGROC.js";
9
- import "../chunk-O6M5TKNA.js";
10
- import "../chunk-GOKYAXOZ.js";
11
- import "../chunk-UQNUIOTG.js";
12
- import "../chunk-TMGCRPEZ.js";
13
- import "../chunk-LDECNC3Y.js";
14
- import "../chunk-OXJ5MQHM.js";
15
- import "../chunk-QREVPZ7Q.js";
16
- import "../chunk-XHBFBPB6.js";
17
- import "../chunk-ZBKHJE3N.js";
18
- import "../chunk-ZZNPAHP2.js";
6
+ import "../chunk-PBU62XMI.js";
7
+ import "../chunk-CKKF7TFO.js";
8
+ import "../chunk-TPUQWQRW.js";
9
+ import "../chunk-7SB7WQ6J.js";
10
+ import "../chunk-BO6VY6XY.js";
11
+ import "../chunk-Q5FUGUDS.js";
12
+ import "../chunk-HTYJDJRZ.js";
13
+ import "../chunk-7DQJXYT6.js";
14
+ import "../chunk-7GUERDDS.js";
15
+ import "../chunk-ZNPDLJF7.js";
16
+ import "../chunk-TAJ7LPFK.js";
17
+ import "../chunk-5ZQGZROG.js";
18
+ import "../chunk-CJVWT6IG.js";
19
19
  import "../chunk-FBB6KUZG.js";
20
- import "../chunk-YLEF4RUH.js";
20
+ import "../chunk-RAFFEFML.js";
21
21
  import "../chunk-G6FN5VUE.js";
22
22
  import "../chunk-UVY6LL5H.js";
23
- import "../chunk-JOQ4LR3M.js";
24
- import "../chunk-P4TVG45N.js";
25
- import "../chunk-ZPB26OWQ.js";
23
+ import "../chunk-R5KQZMEG.js";
24
+ import "../chunk-LUP5VDI4.js";
25
+ import "../chunk-K5EEGEVV.js";
26
26
  import "../chunk-WCNR75S2.js";
27
27
  import "../chunk-3JLUTHGR.js";
28
28
  import "../chunk-GXPKATXW.js";
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";AAAA,OAAO,UAAU,EAAE,EAAC,oBAAoB,EAAE,SAAS,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAChG,OAAO,WAAW,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AACjC,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAA;AACrD,OAAO,OAAO,MAAM,oCAAoC,CAAA;AACxD,OAAO,EAAC,WAAW,EAAE,GAAG,EAAC,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAC,aAAa,EAAE,WAAW,EAAC,MAAM,8BAA8B,CAAA;AACvE,OAAO,EAAC,iBAAiB,EAAC,MAAM,gCAAgC,CAAA;AAEhE,OAAO,EAAiB,cAAc,EAAE,2BAA2B,EAAC,MAAM,4CAA4C,CAAA;AACtH,OAAO,EAAC,+BAA+B,EAAE,uBAAuB,EAAC,MAAM,iCAAiC,CAAA;AAExG,MAAqB,IAAK,SAAQ,OAAO;IAyCvC,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,EAAI,CAAC,CAAA;QAEtC,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;QAC1C,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;QAEtD,MAAM,sBAAsB,GA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EAAE;YACP,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC;4HACsF;QACtH,GAAG,EAAE,uBAAuB;KAC7B,CAAC;IACF,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,4CAA4C;QACzD,GAAG,EAAE,8BAA8B;KACpC,CAAC;IACF,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC;QAC9B,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,8BAA8B;QACnC,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;KACxC,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,oBAAoB;QACzB,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,IAAI;KACb,CAAC;CACH,AApCW,CAoCX;eAvCkB,IAAI","sourcesContent":["import initPrompt, {isPredefinedTemplate, templates, visibleTemplates} from '../prompts/init.js'\nimport initService from '../services/init.js'\nimport {Flags} from '@oclif/core'\nimport {globalFlags} from '@shopify/cli-kit/node/cli'\nimport Command from '@shopify/cli-kit/node/base-command'\nimport {resolvePath, cwd} from '@shopify/cli-kit/node/path'\nimport {AbortError} from '@shopify/cli-kit/node/error'\nimport {outputContent, outputToken} from '@shopify/cli-kit/node/output'\nimport {addPublicMetadata} from '@shopify/cli-kit/node/metadata'\n\nimport {PackageManager, packageManager, packageManagerFromUserAgent} from '@shopify/cli-kit/node/node-package-manager'\nimport {inferPackageManagerForGlobalCLI, installGlobalShopifyCLI} from '@shopify/cli-kit/node/is-global'\n\nexport default class Init extends Command {\n static summary?: string | undefined = 'Create a new app project'\n\n static flags = {\n ...globalFlags,\n name: Flags.string({\n char: 'n',\n env: 'SHOPIFY_FLAG_NAME',\n hidden: false,\n }),\n path: Flags.string({\n char: 'p',\n env: 'SHOPIFY_FLAG_PATH',\n parse: async (input) => resolvePath(input),\n default: async () => cwd(),\n hidden: false,\n }),\n template: Flags.string({\n description: `The app template. Accepts one of the following:\n - <${visibleTemplates.join('|')}>\n - Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]`,\n env: 'SHOPIFY_FLAG_TEMPLATE',\n }),\n flavor: Flags.string({\n description: 'Which flavor of the given template to use.',\n env: 'SHOPIFY_FLAG_TEMPLATE_FLAVOR',\n }),\n 'package-manager': Flags.string({\n char: 'd',\n env: 'SHOPIFY_FLAG_PACKAGE_MANAGER',\n hidden: false,\n options: ['npm', 'yarn', 'pnpm', 'bun'],\n }),\n local: Flags.boolean({\n char: 'l',\n env: 'SHOPIFY_FLAG_LOCAL',\n default: false,\n hidden: true,\n }),\n }\n\n async run(): Promise<void> {\n const {flags} = await this.parse(Init)\n\n this.validateTemplateValue(flags.template)\n this.validateFlavorValue(flags.template, flags.flavor)\n\n const inferredPackageManager = this.inferPackageManager(flags['package-manager'])\n\n const promptAnswers = await initPrompt({\n name: flags.name,\n template: flags.template,\n flavor: flags.flavor,\n directory: flags.path,\n })\n\n if (promptAnswers.globalCLIResult.install) {\n await installGlobalShopifyCLI(inferredPackageManager)\n }\n\n await addPublicMetadata(() => ({\n cmd_create_app_template: promptAnswers.templateType,\n cmd_create_app_template_url: promptAnswers.template,\n }))\n\n await initService({\n name: promptAnswers.name,\n packageManager: inferredPackageManager,\n template: promptAnswers.template,\n local: flags.local,\n directory: flags.path,\n useGlobalCLI: promptAnswers.globalCLIResult.alreadyInstalled || promptAnswers.globalCLIResult.install,\n })\n }\n\n validateTemplateValue(template: string | undefined) {\n if (!template) {\n return\n }\n\n const url = this.parseURL(template)\n if (url && url.origin !== 'https://github.com')\n throw new AbortError(\n 'Only GitHub repository references are supported, ' +\n 'e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]',\n )\n if (!url && !isPredefinedTemplate(template))\n throw new AbortError(\n outputContent`Only ${visibleTemplates\n .map((alias) => outputContent`${outputToken.yellow(alias)}`.value)\n .join(', ')} template aliases are supported`,\n )\n }\n\n validateFlavorValue(template: string | undefined, flavor: string | undefined) {\n if (!template) {\n if (flavor) {\n throw new AbortError(\n outputContent`The ${outputToken.yellow('--flavor')} flag requires the ${outputToken.yellow(\n '--template',\n )} flag to be set`,\n )\n } else {\n return\n }\n }\n\n if (!flavor) {\n return\n }\n\n if (!isPredefinedTemplate(template)) {\n throw new AbortError(\n outputContent`The ${outputToken.yellow('--flavor')} flag is not supported for custom templates`,\n )\n }\n\n const templateConfig = templates[template]\n\n if (!templateConfig.branches) {\n throw new AbortError(outputContent`The ${outputToken.yellow(template)} template does not support flavors`)\n }\n\n if (!templateConfig.branches.options[flavor]) {\n throw new AbortError(\n outputContent`Invalid option for ${outputToken.yellow('--flavor')}\\nThe ${outputToken.yellow(\n '--flavor',\n )} flag for ${outputToken.yellow(template)} accepts only ${Object.keys(templateConfig.branches.options)\n .map((alias) => outputContent`${outputToken.yellow(alias)}`.value)\n .join(', ')}`,\n )\n }\n }\n\n parseURL(url: string): URL | undefined {\n try {\n return new URL(url)\n // eslint-disable-next-line no-catch-all/no-catch-all\n } catch (error) {\n return undefined\n }\n }\n\n inferPackageManager(optionsPackageManager: string | undefined): PackageManager {\n if (optionsPackageManager && packageManager.includes(optionsPackageManager as PackageManager)) {\n return optionsPackageManager as PackageManager\n }\n const usedPackageManager = packageManagerFromUserAgent()\n if (usedPackageManager !== 'unknown') return usedPackageManager\n\n const globalPackageManager = inferPackageManagerForGlobalCLI()\n if (globalPackageManager !== 'unknown') return globalPackageManager\n\n return 'npm'\n }\n}\n"]}
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";AAAA,OAAO,UAAU,EAAE,EAAC,oBAAoB,EAAE,SAAS,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAChG,OAAO,WAAW,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AACjC,OAAO,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ACxC,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,oBAAoB;QACzB,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,IAAI;KACb,CAAC;CACH,AApCW,CAoCX;eAvCkB,IAAI","sourcesContent":["import initPrompt, {isPredefinedTemplate, templates, visibleTemplates} from '../prompts/init.js'\nimport initService from '../services/init.js'\nimport {Flags} from '@oclif/core'\nimport {globalFlags} from '@shopify/cli-kit/node/cli'\nimport Command from '@shopify/cli-kit/node/base-command'\nimport {resolvePath, cwd} from '@shopify/cli-kit/node/path'\nimport {AbortError} from '@shopify/cli-kit/node/error'\nimport {outputContent, outputToken} from '@shopify/cli-kit/node/output'\nimport {addPublicMetadata} from '@shopify/cli-kit/node/metadata'\n\nimport {PackageManager, packageManager, packageManagerFromUserAgent} from '@shopify/cli-kit/node/node-package-manager'\nimport {inferPackageManagerForGlobalCLI, installGlobalShopifyCLI} from '@shopify/cli-kit/node/is-global'\n\nexport default class Init extends Command {\n static summary?: string | undefined = 'Create a new app project'\n\n static flags = {\n ...globalFlags,\n name: Flags.string({\n char: 'n',\n env: 'SHOPIFY_FLAG_NAME',\n hidden: false,\n }),\n path: Flags.string({\n char: 'p',\n env: 'SHOPIFY_FLAG_PATH',\n parse: async (input) => resolvePath(input),\n default: async () => cwd(),\n hidden: false,\n }),\n template: Flags.string({\n description: `The app template. Accepts one of the following:\n - <${visibleTemplates.join('|')}>\n - Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]`,\n env: 'SHOPIFY_FLAG_TEMPLATE',\n }),\n flavor: Flags.string({\n description: 'Which flavor of the given template to use.',\n env: 'SHOPIFY_FLAG_TEMPLATE_FLAVOR',\n }),\n 'package-manager': Flags.string({\n char: 'd',\n env: 'SHOPIFY_FLAG_PACKAGE_MANAGER',\n hidden: false,\n options: ['npm', 'yarn', 'pnpm', 'bun'],\n }),\n local: Flags.boolean({\n char: 'l',\n env: 'SHOPIFY_FLAG_LOCAL',\n default: false,\n hidden: true,\n }),\n }\n\n async run(): Promise<void> {\n const {flags} = await this.parse(Init)\n\n this.validateTemplateValue(flags.template)\n this.validateFlavorValue(flags.template, flags.flavor)\n\n const inferredPackageManager = this.inferPackageManager(flags['package-manager'])\n\n const promptAnswers = await initPrompt({\n name: flags.name,\n template: flags.template,\n flavor: flags.flavor,\n directory: flags.path,\n })\n\n if (promptAnswers.globalCLIResult.install) {\n await installGlobalShopifyCLI(inferredPackageManager)\n }\n\n await addPublicMetadata(() => ({\n cmd_create_app_template: promptAnswers.templateType,\n cmd_create_app_template_url: promptAnswers.template,\n }))\n\n await initService({\n name: promptAnswers.name,\n packageManager: inferredPackageManager,\n template: promptAnswers.template,\n local: flags.local,\n directory: flags.path,\n useGlobalCLI: promptAnswers.globalCLIResult.alreadyInstalled || promptAnswers.globalCLIResult.install,\n postCloneActions: {\n removeLockfilesFromGitignore: promptAnswers.templateType !== 'custom',\n },\n })\n }\n\n validateTemplateValue(template: string | undefined) {\n if (!template) {\n return\n }\n\n const url = this.parseURL(template)\n if (url && url.origin !== 'https://github.com')\n throw new AbortError(\n 'Only GitHub repository references are supported, ' +\n 'e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]',\n )\n if (!url && !isPredefinedTemplate(template))\n throw new AbortError(\n outputContent`Only ${visibleTemplates\n .map((alias) => outputContent`${outputToken.yellow(alias)}`.value)\n .join(', ')} template aliases are supported`,\n )\n }\n\n validateFlavorValue(template: string | undefined, flavor: string | undefined) {\n if (!template) {\n if (flavor) {\n throw new AbortError(\n outputContent`The ${outputToken.yellow('--flavor')} flag requires the ${outputToken.yellow(\n '--template',\n )} flag to be set`,\n )\n } else {\n return\n }\n }\n\n if (!flavor) {\n return\n }\n\n if (!isPredefinedTemplate(template)) {\n throw new AbortError(\n outputContent`The ${outputToken.yellow('--flavor')} flag is not supported for custom templates`,\n )\n }\n\n const templateConfig = templates[template]\n\n if (!templateConfig.branches) {\n throw new AbortError(outputContent`The ${outputToken.yellow(template)} template does not support flavors`)\n }\n\n if (!templateConfig.branches.options[flavor]) {\n throw new AbortError(\n outputContent`Invalid option for ${outputToken.yellow('--flavor')}\\nThe ${outputToken.yellow(\n '--flavor',\n )} flag for ${outputToken.yellow(template)} accepts only ${Object.keys(templateConfig.branches.options)\n .map((alias) => outputContent`${outputToken.yellow(alias)}`.value)\n .join(', ')}`,\n )\n }\n }\n\n parseURL(url: string): URL | undefined {\n try {\n return new URL(url)\n // eslint-disable-next-line no-catch-all/no-catch-all\n } catch (error) {\n return undefined\n }\n }\n\n inferPackageManager(optionsPackageManager: string | undefined): PackageManager {\n if (optionsPackageManager && packageManager.includes(optionsPackageManager as PackageManager)) {\n return optionsPackageManager as PackageManager\n }\n const usedPackageManager = packageManagerFromUserAgent()\n if (usedPackageManager !== 'unknown') return usedPackageManager\n\n const globalPackageManager = inferPackageManagerForGlobalCLI()\n if (globalPackageManager !== 'unknown') return globalPackageManager\n\n return 'npm'\n }\n}\n"]}
@@ -1,41 +1,41 @@
1
1
  import {
2
2
  Init
3
- } from "../chunk-TKY6QESY.js";
3
+ } from "../chunk-5MCGL7UQ.js";
4
4
  import {
5
5
  errorHandler
6
- } from "../chunk-JOHH6AAC.js";
6
+ } from "../chunk-MIJHK6ZL.js";
7
7
  import "../chunk-LKGDG6WW.js";
8
8
  import {
9
9
  init_default
10
- } from "../chunk-PNYJF4EH.js";
11
- import "../chunk-M64BQPYS.js";
12
- import "../chunk-XUFDGROC.js";
13
- import "../chunk-O6M5TKNA.js";
14
- import "../chunk-GOKYAXOZ.js";
15
- import "../chunk-UQNUIOTG.js";
16
- import "../chunk-TMGCRPEZ.js";
17
- import "../chunk-LDECNC3Y.js";
18
- import "../chunk-OXJ5MQHM.js";
19
- import "../chunk-QREVPZ7Q.js";
20
- import "../chunk-XHBFBPB6.js";
10
+ } from "../chunk-PBU62XMI.js";
11
+ import "../chunk-CKKF7TFO.js";
12
+ import "../chunk-TPUQWQRW.js";
13
+ import "../chunk-7SB7WQ6J.js";
14
+ import "../chunk-BO6VY6XY.js";
15
+ import "../chunk-Q5FUGUDS.js";
16
+ import "../chunk-HTYJDJRZ.js";
17
+ import "../chunk-7DQJXYT6.js";
18
+ import "../chunk-7GUERDDS.js";
19
+ import "../chunk-ZNPDLJF7.js";
20
+ import "../chunk-TAJ7LPFK.js";
21
21
  import {
22
22
  init_exports,
23
23
  visibleTemplates
24
- } from "../chunk-ZBKHJE3N.js";
24
+ } from "../chunk-5ZQGZROG.js";
25
25
  import {
26
26
  AbortError,
27
27
  outputContent,
28
28
  outputToken
29
- } from "../chunk-ZZNPAHP2.js";
29
+ } from "../chunk-CJVWT6IG.js";
30
30
  import "../chunk-FBB6KUZG.js";
31
- import "../chunk-YLEF4RUH.js";
31
+ import "../chunk-RAFFEFML.js";
32
32
  import "../chunk-G6FN5VUE.js";
33
33
  import "../chunk-UVY6LL5H.js";
34
34
  import {
35
35
  require_lib
36
- } from "../chunk-JOQ4LR3M.js";
37
- import "../chunk-P4TVG45N.js";
38
- import "../chunk-ZPB26OWQ.js";
36
+ } from "../chunk-R5KQZMEG.js";
37
+ import "../chunk-LUP5VDI4.js";
38
+ import "../chunk-K5EEGEVV.js";
39
39
  import "../chunk-WCNR75S2.js";
40
40
  import {
41
41
  beforeEach,
@@ -43,7 +43,7 @@ import {
43
43
  globalExpect,
44
44
  test,
45
45
  vi
46
- } from "../chunk-3JNB3A7C.js";
46
+ } from "../chunk-U4YACXEW.js";
47
47
  import "../chunk-3JLUTHGR.js";
48
48
  import "../chunk-GXPKATXW.js";
49
49
  import {
@@ -2,10 +2,11 @@ import {
2
2
  bugsnagApiKey,
3
3
  defaultThemeKitAccessDomain,
4
4
  environmentVariables,
5
+ logsFolder,
5
6
  pathConstants,
6
7
  sessionConstants,
7
8
  systemEnvironmentVariables
8
- } from "./chunk-YLEF4RUH.js";
9
+ } from "./chunk-RAFFEFML.js";
9
10
  import "./chunk-G6FN5VUE.js";
10
11
  import "./chunk-GXPKATXW.js";
11
12
  import "./chunk-M63RTPGR.js";
@@ -13,6 +14,7 @@ export {
13
14
  bugsnagApiKey,
14
15
  defaultThemeKitAccessDomain,
15
16
  environmentVariables,
17
+ logsFolder,
16
18
  pathConstants,
17
19
  sessionConstants,
18
20
  systemEnvironmentVariables
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  fileExistsSync
3
- } from "./chunk-ZZNPAHP2.js";
3
+ } from "./chunk-CJVWT6IG.js";
4
4
  import "./chunk-FBB6KUZG.js";
5
- import "./chunk-YLEF4RUH.js";
5
+ import "./chunk-RAFFEFML.js";
6
6
  import {
7
7
  cwd,
8
8
  joinPath
@@ -10,9 +10,9 @@ import {
10
10
  import "./chunk-UVY6LL5H.js";
11
11
  import {
12
12
  require_lib
13
- } from "./chunk-JOQ4LR3M.js";
14
- import "./chunk-P4TVG45N.js";
15
- import "./chunk-ZPB26OWQ.js";
13
+ } from "./chunk-R5KQZMEG.js";
14
+ import "./chunk-LUP5VDI4.js";
15
+ import "./chunk-K5EEGEVV.js";
16
16
  import "./chunk-WCNR75S2.js";
17
17
  import "./chunk-3JLUTHGR.js";
18
18
  import "./chunk-GXPKATXW.js";
@@ -79,5 +79,6 @@ function sniffForPath() {
79
79
  return pathFlag;
80
80
  }
81
81
  export {
82
- ShopifyConfig
82
+ ShopifyConfig,
83
+ sniffForPath
83
84
  };
@@ -10,10 +10,10 @@ import {
10
10
  require_globby,
11
11
  require_indent_string,
12
12
  require_slash
13
- } from "./chunk-P4TVG45N.js";
13
+ } from "./chunk-LUP5VDI4.js";
14
14
  import {
15
15
  require_is_glob
16
- } from "./chunk-ZPB26OWQ.js";
16
+ } from "./chunk-K5EEGEVV.js";
17
17
  import {
18
18
  __commonJS,
19
19
  __require,