@shopify/cli 3.67.3 → 3.68.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 (85) hide show
  1. package/dist/{chunk-QK4M5NLW.js → chunk-3M35CLHM.js} +2 -2
  2. package/dist/{chunk-FPTBJGSU.js → chunk-3Q52FLVU.js} +3 -3
  3. package/dist/{chunk-FMTK2DLI.js → chunk-43SYBNY3.js} +4 -4
  4. package/dist/{chunk-ADIIAXPI.js → chunk-6H3CV7RL.js} +3 -3
  5. package/dist/{chunk-NV2K2JNI.js → chunk-6MAEOVS3.js} +15 -3
  6. package/dist/{chunk-SK3QXUXV.js → chunk-6RT7XCLB.js} +4 -4
  7. package/dist/{chunk-67E32Z72.js → chunk-6ZDQFSSJ.js} +5528 -17168
  8. package/dist/{chunk-QQWDDZPJ.js → chunk-72AFLINH.js} +4 -4
  9. package/dist/{chunk-OVBHC7XZ.js → chunk-7MDO7W7X.js} +3 -3
  10. package/dist/{chunk-ESCACI7K.js → chunk-7S76TS4X.js} +5 -5
  11. package/dist/{chunk-IVO3C5LM.js → chunk-BZ2F2UZZ.js} +3 -3
  12. package/dist/chunk-EPBXQ43B.js +15959 -0
  13. package/dist/{chunk-XHO4O3WD.js → chunk-GKSNOFYA.js} +2 -2
  14. package/dist/{chunk-MP5JBUFB.js → chunk-GLV27A4V.js} +2 -2
  15. package/dist/{chunk-J44K26AK.js → chunk-HWFFJANJ.js} +3 -3
  16. package/dist/{chunk-GBZFBWCM.js → chunk-JEUAVIWO.js} +14 -12
  17. package/dist/{chunk-UE5ILNA5.js → chunk-JF3XJON5.js} +4 -4
  18. package/dist/{chunk-Y6XYGV3K.js → chunk-M7RWRKXK.js} +3 -3
  19. package/dist/{chunk-YZHXAE4H.js → chunk-MS2XBA2O.js} +4 -4
  20. package/dist/{chunk-UOH7XDLM.js → chunk-N2B5M33U.js} +3 -3
  21. package/dist/{chunk-F2FF5RRS.js → chunk-NOB736ZC.js} +3 -3
  22. package/dist/{chunk-NBY455BA.js → chunk-NPVFC3AI.js} +4 -4
  23. package/dist/chunk-O2TXYCMU.js +103 -0
  24. package/dist/{chunk-SERYSNVE.js → chunk-QAP5YFY6.js} +2 -2
  25. package/dist/{chunk-UTJGWPED.js → chunk-QNE3KDXA.js} +2 -2
  26. package/dist/{chunk-VVCAHOHL.js → chunk-RUY5HVC5.js} +2 -2
  27. package/dist/{chunk-EMUNMNK7.js → chunk-S3KCQ67R.js} +6 -6
  28. package/dist/{chunk-X2LIPDBQ.js → chunk-SARPUMOJ.js} +4 -4
  29. package/dist/{chunk-SAKJRSNZ.js → chunk-SFSTMK3J.js} +3 -3
  30. package/dist/{chunk-7BK74JM2.js → chunk-V54N7BU5.js} +3 -3
  31. package/dist/{chunk-AYJMV2UJ.js → chunk-X4VIZNM7.js} +2 -2
  32. package/dist/{chunk-UI7DIACQ.js → chunk-XPDRDFSD.js} +2 -2
  33. package/dist/{chunk-5GMBDXCT.js → chunk-YESRKQ2L.js} +2 -2
  34. package/dist/{chunk-CL6KB3RG.js → chunk-YGWIVVUL.js} +7 -3
  35. package/dist/cli/commands/auth/logout.js +11 -12
  36. package/dist/cli/commands/auth/logout.test.js +12 -13
  37. package/dist/cli/commands/debug/command-flags.js +10 -9
  38. package/dist/cli/commands/demo/catalog.js +11 -11
  39. package/dist/cli/commands/demo/generate-file.js +11 -11
  40. package/dist/cli/commands/demo/index.js +11 -11
  41. package/dist/cli/commands/demo/print-ai-prompt.js +11 -11
  42. package/dist/cli/commands/docs/generate.js +10 -9
  43. package/dist/cli/commands/docs/generate.test.js +10 -9
  44. package/dist/cli/commands/help.js +10 -9
  45. package/dist/cli/commands/kitchen-sink/async.js +11 -10
  46. package/dist/cli/commands/kitchen-sink/async.test.js +11 -10
  47. package/dist/cli/commands/kitchen-sink/index.js +13 -12
  48. package/dist/cli/commands/kitchen-sink/index.test.js +13 -12
  49. package/dist/cli/commands/kitchen-sink/prompts.js +11 -10
  50. package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -10
  51. package/dist/cli/commands/kitchen-sink/static.js +11 -10
  52. package/dist/cli/commands/kitchen-sink/static.test.js +11 -10
  53. package/dist/cli/commands/search.js +11 -10
  54. package/dist/cli/commands/upgrade.js +11 -10
  55. package/dist/cli/commands/version.js +11 -10
  56. package/dist/cli/commands/version.test.js +11 -10
  57. package/dist/cli/services/commands/search.js +2 -2
  58. package/dist/cli/services/commands/search.test.js +2 -2
  59. package/dist/cli/services/commands/version.js +3 -3
  60. package/dist/cli/services/commands/version.test.js +4 -4
  61. package/dist/cli/services/demo.js +2 -2
  62. package/dist/cli/services/demo.test.js +3 -3
  63. package/dist/cli/services/kitchen-sink/async.js +2 -2
  64. package/dist/cli/services/kitchen-sink/prompts.js +2 -2
  65. package/dist/cli/services/kitchen-sink/static.js +2 -2
  66. package/dist/cli/services/upgrade.js +3 -3
  67. package/dist/cli/services/upgrade.test.js +5 -5
  68. package/dist/{custom-oclif-loader-ROCHTOS5.js → custom-oclif-loader-KLQXTO4F.js} +2 -2
  69. package/dist/{error-handler-GT7C27BQ.js → error-handler-5FD7IHCB.js} +9 -8
  70. package/dist/hooks/postrun.js +9 -9
  71. package/dist/hooks/prerun.js +8 -6
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +593 -692
  74. package/dist/{local-T3UMODTX.js → local-LNHYBD2A.js} +4 -2
  75. package/dist/{node-V2ZJPWY5.js → node-Y6VIULWD.js} +12 -13
  76. package/dist/{node-package-manager-PYU7QL5O.js → node-package-manager-6CQ6226U.js} +5 -3
  77. package/dist/{system-CEM4NSPG.js → system-LDMV4BPS.js} +2 -2
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/dist/{ui-KGCQLCOJ.js → ui-PA5ER7II.js} +2 -2
  80. package/dist/{workerd-TOCBV52P.js → workerd-APENUASI.js} +12 -13
  81. package/oclif.manifest.json +15 -52
  82. package/package.json +6 -6
  83. package/dist/chunk-3E44DPAU.js +0 -118
  84. package/dist/chunk-EMJI2MUZ.js +0 -4244
  85. package/dist/chunk-LCWH3FW5.js +0 -33
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clearCollectedLogs,
3
3
  collectedLogs
4
- } from "./chunk-CL6KB3RG.js";
4
+ } from "./chunk-YGWIVVUL.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-POZ5MGPT.js";
@@ -33,4 +33,4 @@ function mockAndCaptureOutput() {
33
33
  export {
34
34
  mockAndCaptureOutput
35
35
  };
36
- //# sourceMappingURL=chunk-QK4M5NLW.js.map
36
+ //# sourceMappingURL=chunk-3M35CLHM.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  staticService
3
- } from "./chunk-UTJGWPED.js";
3
+ } from "./chunk-QNE3KDXA.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-YZHXAE4H.js";
6
+ } from "./chunk-MS2XBA2O.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ var KitchenSinkStatic = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkStatic
27
27
  };
28
- //# sourceMappingURL=chunk-FPTBJGSU.js.map
28
+ //# sourceMappingURL=chunk-3Q52FLVU.js.map
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-QSUS3GJF.js";
4
4
  import {
5
5
  demoStepsSchema
6
- } from "./chunk-AYJMV2UJ.js";
6
+ } from "./chunk-X4VIZNM7.js";
7
7
  import {
8
8
  base_command_default
9
- } from "./chunk-YZHXAE4H.js";
9
+ } from "./chunk-MS2XBA2O.js";
10
10
  import {
11
11
  outputInfo,
12
12
  renderInfo
13
- } from "./chunk-CL6KB3RG.js";
13
+ } from "./chunk-YGWIVVUL.js";
14
14
  import {
15
15
  __toESM,
16
16
  init_cjs_shims
@@ -55,4 +55,4 @@ The demo should perform the following steps:
55
55
  export {
56
56
  PrintAIPrompt
57
57
  };
58
- //# sourceMappingURL=chunk-FMTK2DLI.js.map
58
+ //# sourceMappingURL=chunk-43SYBNY3.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  packageManagerFromUserAgent
3
- } from "./chunk-NV2K2JNI.js";
3
+ } from "./chunk-6MAEOVS3.js";
4
4
  import {
5
5
  currentProcessIsGlobal,
6
6
  inferPackageManagerForGlobalCLI,
7
7
  outputContent,
8
8
  outputToken
9
- } from "./chunk-CL6KB3RG.js";
9
+ } from "./chunk-YGWIVVUL.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ export {
25
25
  cliInstallCommand,
26
26
  getOutputUpdateCLIReminder
27
27
  };
28
- //# sourceMappingURL=chunk-ADIIAXPI.js.map
28
+ //# sourceMappingURL=chunk-6H3CV7RL.js.map
@@ -10,6 +10,7 @@ import {
10
10
  fileExists,
11
11
  findPathUp,
12
12
  glob,
13
+ inferPackageManagerForGlobalCLI,
13
14
  isUnitTest,
14
15
  mimicFunction,
15
16
  outputContent,
@@ -19,7 +20,7 @@ import {
19
20
  require_get_stream,
20
21
  runWithTimer,
21
22
  writeFile
22
- } from "./chunk-CL6KB3RG.js";
23
+ } from "./chunk-YGWIVVUL.js";
23
24
  import {
24
25
  envPaths
25
26
  } from "./chunk-NZDBLGNM.js";
@@ -9046,6 +9047,7 @@ __export(node_package_manager_exports, {
9046
9047
  getPackageManager: () => getPackageManager,
9047
9048
  getPackageName: () => getPackageName,
9048
9049
  getPackageVersion: () => getPackageVersion,
9050
+ inferPackageManager: () => inferPackageManager,
9049
9051
  installNPMDependenciesRecursively: () => installNPMDependenciesRecursively,
9050
9052
  installNodeModules: () => installNodeModules,
9051
9053
  lockfiles: () => lockfiles,
@@ -13668,7 +13670,7 @@ async function latestVersion(packageName, options) {
13668
13670
  }
13669
13671
 
13670
13672
  // ../cli-kit/dist/public/node/node-package-manager.js
13671
- var import_semver3 = __toESM(require_semver(), 1), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], packageManager = ["yarn", "npm", "pnpm", "bun", "unknown"], UnknownPackageManagerError = class extends AbortError {
13673
+ var import_semver3 = __toESM(require_semver()), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], packageManager = ["yarn", "npm", "pnpm", "bun", "unknown"], UnknownPackageManagerError = class extends AbortError {
13672
13674
  constructor() {
13673
13675
  super("Unknown package manager");
13674
13676
  }
@@ -13887,6 +13889,15 @@ async function writePackageJSON(directory, packageJSON) {
13887
13889
  let packagePath = joinPath(directory, "package.json");
13888
13890
  await writeFile(packagePath, JSON.stringify(packageJSON, null, 2));
13889
13891
  }
13892
+ function inferPackageManager(optionsPackageManager, env = process.env) {
13893
+ if (optionsPackageManager && packageManager.includes(optionsPackageManager))
13894
+ return optionsPackageManager;
13895
+ let usedPackageManager = packageManagerFromUserAgent(env);
13896
+ if (usedPackageManager !== "unknown")
13897
+ return usedPackageManager;
13898
+ let globalPackageManager = inferPackageManagerForGlobalCLI();
13899
+ return globalPackageManager !== "unknown" ? globalPackageManager : "npm";
13900
+ }
13890
13901
 
13891
13902
  export {
13892
13903
  require_ajv,
@@ -13927,6 +13938,7 @@ export {
13927
13938
  findUpAndReadPackageJson,
13928
13939
  addResolutionOrOverride,
13929
13940
  writePackageJSON,
13941
+ inferPackageManager,
13930
13942
  node_package_manager_exports
13931
13943
  };
13932
13944
  /*! Bundled license information:
@@ -13962,4 +13974,4 @@ deep-extend/lib/deep-extend.js:
13962
13974
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13963
13975
  *)
13964
13976
  */
13965
- //# sourceMappingURL=chunk-NV2K2JNI.js.map
13977
+ //# sourceMappingURL=chunk-6MAEOVS3.js.map
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-QSUS3GJF.js";
4
4
  import {
5
5
  demoStepsSchema
6
- } from "./chunk-AYJMV2UJ.js";
6
+ } from "./chunk-X4VIZNM7.js";
7
7
  import {
8
8
  base_command_default
9
- } from "./chunk-YZHXAE4H.js";
9
+ } from "./chunk-MS2XBA2O.js";
10
10
  import {
11
11
  AbortError,
12
12
  fileExists,
@@ -17,7 +17,7 @@ import {
17
17
  readFile,
18
18
  renderAutocompletePrompt,
19
19
  writeFile
20
- } from "./chunk-CL6KB3RG.js";
20
+ } from "./chunk-YGWIVVUL.js";
21
21
  import {
22
22
  require_lib
23
23
  } from "./chunk-BFQFJ7IZ.js";
@@ -113,4 +113,4 @@ async function selectSteps() {
113
113
  export {
114
114
  GenerateFile
115
115
  };
116
- //# sourceMappingURL=chunk-SK3QXUXV.js.map
116
+ //# sourceMappingURL=chunk-6RT7XCLB.js.map