@shopify/cli 3.61.2 → 3.62.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.
Files changed (197) hide show
  1. package/dist/assets/dev-console/extensions/dev-console/assets/index-dfaab2a5.css +1 -0
  2. package/dist/assets/dev-console/extensions/dev-console/assets/{index-f3e60690.js → index-e3682a83.js} +1 -1
  3. package/dist/assets/dev-console/index.html +2 -2
  4. package/dist/{chokidar-RFZXZKRQ.js → chokidar-5MKSECYV.js} +4 -3
  5. package/dist/{chunk-QDZF6IG4.js → chunk-22PYIFA2.js} +112 -17
  6. package/dist/{chunk-3MBQVTEX.js → chunk-2QVJZ5TG.js} +2 -1
  7. package/dist/{chunk-KBXWK6XB.js → chunk-2ZSNH7CD.js} +4 -5
  8. package/dist/{chunk-BYFLATOA.js → chunk-5FNE3T7E.js} +5 -4
  9. package/dist/{chunk-G4EQLT5B.js → chunk-5X4QXYEZ.js} +9 -7
  10. package/dist/chunk-66NABVCG.js +73 -0
  11. package/dist/{chunk-LAY4AEXX.js → chunk-6UDFXWNE.js} +2 -1
  12. package/dist/{chunk-QQP6JS5H.js → chunk-7MXLRMOY.js} +3 -2
  13. package/dist/{chunk-EHF6FVWH.js → chunk-A5STII7T.js} +3 -2
  14. package/dist/{chunk-UPM6XNBH.js → chunk-ADESJ2KG.js} +6 -5
  15. package/dist/{chunk-BZJX2NV6.js → chunk-AMAYT2P2.js} +3 -2
  16. package/dist/{chunk-QTBH3GO6.js → chunk-B62HZLMM.js} +3 -2
  17. package/dist/{chunk-3RM5SOXY.js → chunk-BMTG2VHL.js} +4 -3
  18. package/dist/{chunk-FWGRGI4R.js → chunk-BYC3NA2Y.js} +2 -1
  19. package/dist/{chunk-NJTSDTDU.js → chunk-BZFXXFUC.js} +6 -5
  20. package/dist/{chunk-7IZTLXJ5.js → chunk-CKFE55FX.js} +4 -3
  21. package/dist/{chunk-YP5UVIUW.js → chunk-CYQRKZVM.js} +6 -5
  22. package/dist/{chunk-HTYJDJRZ.js → chunk-DL3MKXVR.js} +2 -1
  23. package/dist/{chunk-IUHH3PST.js → chunk-DLK3F3DC.js} +2 -1
  24. package/dist/{chunk-4XNS74OG.js → chunk-EARPFFS7.js} +2 -1
  25. package/dist/chunk-EQPYUHNM.js +3642 -0
  26. package/dist/{chunk-LKGDG6WW.js → chunk-FMKVOTQK.js} +2 -1
  27. package/dist/{chunk-I434ZJQI.js → chunk-GEN4RXTD.js} +7 -6
  28. package/dist/{chunk-QSO3GQEK.js → chunk-HJ4AUFE7.js} +94 -160
  29. package/dist/{chunk-FQIRJADJ.js → chunk-JIJ65JT6.js} +2 -1
  30. package/dist/{chunk-JQPQJN44.js → chunk-JKYNFUD3.js} +11 -12
  31. package/dist/{chunk-4L37JOS5.js → chunk-JL3ESOD2.js} +3 -2
  32. package/dist/{chunk-4TTAP7NN.js → chunk-JOOYCYFU.js} +6 -5
  33. package/dist/{chunk-XMJDBJPP.js → chunk-K3GG6Y3J.js} +12 -12
  34. package/dist/{chunk-VQZ2SHRY.js → chunk-K6257PKA.js} +3 -2
  35. package/dist/{chunk-5KRK4DLX.js → chunk-LC6MEJT3.js} +4 -3
  36. package/dist/{chunk-KDOLMUJB.js → chunk-LH533WG4.js} +2 -1
  37. package/dist/{chunk-FBB6KUZG.js → chunk-LSCXQWNO.js} +2 -1
  38. package/dist/{chunk-VC6CC75R.js → chunk-MG6QFKFM.js} +5 -4
  39. package/dist/{chunk-ETSILRIY.js → chunk-MQ2RGCDU.js} +5 -4
  40. package/dist/{chunk-QOHDW3X5.js → chunk-MQGV3PCJ.js} +4 -3
  41. package/dist/{chunk-PBFWVFAQ.js → chunk-NABCTJNW.js} +3 -2
  42. package/dist/{chunk-YZGLFVKK.js → chunk-NNASIYCT.js} +3 -2
  43. package/dist/chunk-PIB2FEJJ.js +4385 -0
  44. package/dist/{chunk-TXXQWILO.js → chunk-PIVNWN2P.js} +4 -3
  45. package/dist/{chunk-Q3KADKQA.js → chunk-PO6SEYU4.js} +4 -3
  46. package/dist/{chunk-FAFQQMD4.js → chunk-PRJ3U7MR.js} +2 -1
  47. package/dist/{chunk-5B2D56W6.js → chunk-Q4XGXPUG.js} +2 -1
  48. package/dist/{chunk-ZE2ZPLYI.js → chunk-QGJLRFY4.js} +19 -89
  49. package/dist/{chunk-RP2ISWQN.js → chunk-QOUOFEGO.js} +3 -2
  50. package/dist/{chunk-CWYZA7C7.js → chunk-RUSG4O2Z.js} +13464 -5175
  51. package/dist/{chunk-CKKROMZF.js → chunk-S4VBXFXP.js} +3 -2
  52. package/dist/{chunk-BE73NZXB.js → chunk-SAR5HGRG.js} +2 -1
  53. package/dist/{chunk-GXPKATXW.js → chunk-T5LLJYYS.js} +2 -1
  54. package/dist/{chunk-NBIE3DNN.js → chunk-TCRWMUKX.js} +4 -3
  55. package/dist/{chunk-4757GPBG.js → chunk-UACSLX64.js} +6 -5
  56. package/dist/{chunk-4KKFUTH7.js → chunk-UJ3QKFA5.js} +2 -1
  57. package/dist/chunk-UNPXLODI.js +121 -0
  58. package/dist/{chunk-RQ24VTW4.js → chunk-VM4POVNV.js} +2 -1
  59. package/dist/{chunk-CTETXMMM.js → chunk-VS6RWOLM.js} +8 -7
  60. package/dist/{chunk-BUWM6JUU.js → chunk-W5VEUSWG.js} +5 -4
  61. package/dist/{chunk-PCQFWMMD.js → chunk-WADS2TV5.js} +63 -5
  62. package/dist/{chunk-M73YMW2C.js → chunk-WAEWSGBK.js} +2579 -1632
  63. package/dist/{chunk-6SL33DOA.js → chunk-XQFDS44U.js} +2 -1
  64. package/dist/{chunk-WCNR75S2.js → chunk-YC4FLMDD.js} +2 -1
  65. package/dist/{chunk-OXZ2SRCK.js → chunk-YECNACSF.js} +3 -2
  66. package/dist/{chunk-QLLSCNEC.js → chunk-YX5VXHSJ.js} +4 -3
  67. package/dist/{chunk-5MODHNUE.js → chunk-ZCMXEGSE.js} +5 -4
  68. package/dist/{chunk-4VEOJ5JD.js → chunk-ZEHQN47F.js} +2 -1
  69. package/dist/{chunk-3JLUTHGR.js → chunk-ZPFJOUKZ.js} +2 -1
  70. package/dist/{chunk-M63RTPGR.js → chunk-ZPL24Y2D.js} +1 -0
  71. package/dist/cli/commands/auth/logout.js +37 -39
  72. package/dist/cli/commands/auth/logout.test.js +39 -41
  73. package/dist/cli/commands/debug/command-flags.js +33 -35
  74. package/dist/cli/commands/demo/catalog.js +36 -38
  75. package/dist/cli/commands/demo/generate-file.js +37 -39
  76. package/dist/cli/commands/demo/index.js +35 -37
  77. package/dist/cli/commands/demo/print-ai-prompt.js +37 -39
  78. package/dist/cli/commands/docs/generate.js +33 -35
  79. package/dist/cli/commands/docs/generate.test.js +34 -36
  80. package/dist/cli/commands/help.js +33 -35
  81. package/dist/cli/commands/kitchen-sink/async.js +34 -36
  82. package/dist/cli/commands/kitchen-sink/async.test.js +35 -37
  83. package/dist/cli/commands/kitchen-sink/index.js +36 -38
  84. package/dist/cli/commands/kitchen-sink/index.test.js +37 -39
  85. package/dist/cli/commands/kitchen-sink/prompts.js +34 -36
  86. package/dist/cli/commands/kitchen-sink/prompts.test.js +35 -37
  87. package/dist/cli/commands/kitchen-sink/static.js +34 -36
  88. package/dist/cli/commands/kitchen-sink/static.test.js +35 -37
  89. package/dist/cli/commands/search.js +34 -36
  90. package/dist/cli/commands/upgrade.js +33 -35
  91. package/dist/cli/commands/upgrade.test.js +5 -4
  92. package/dist/cli/commands/version.js +34 -36
  93. package/dist/cli/commands/version.test.js +35 -37
  94. package/dist/cli/services/commands/search.js +19 -21
  95. package/dist/cli/services/commands/search.test.js +20 -22
  96. package/dist/cli/services/commands/version.js +23 -25
  97. package/dist/cli/services/commands/version.test.js +25 -27
  98. package/dist/cli/services/demo.js +21 -23
  99. package/dist/cli/services/demo.test.js +22 -24
  100. package/dist/cli/services/kitchen-sink/async.js +19 -21
  101. package/dist/cli/services/kitchen-sink/prompts.js +19 -21
  102. package/dist/cli/services/kitchen-sink/static.js +19 -21
  103. package/dist/cli/services/upgrade.js +22 -24
  104. package/dist/cli/services/upgrade.test.js +30 -27
  105. package/dist/{constants-XCWOF7M7.js → constants-3CLHB4LQ.js} +5 -6
  106. package/dist/{custom-oclif-loader-4SQGUQ7D-P5C4NLSX.js → custom-oclif-loader-ZH42ZTTC.js} +25 -28
  107. package/dist/{del-DGT5RCOW.js → del-KSMMBLCD.js} +9 -8
  108. package/dist/{devtools-SJTLOVKU.js → devtools-6ZZ3EAY7.js} +3 -2
  109. package/dist/error-handler-I6WJC3U2.js +43 -0
  110. package/dist/error-handler-JFX2TIYX.js +38 -0
  111. package/dist/hooks/postrun.js +28 -30
  112. package/dist/hooks/prerun.js +23 -25
  113. package/dist/{http-proxy-WYSSUHIT.js → http-proxy-KFHAZRTT.js} +3 -2
  114. package/dist/index.js +138858 -143506
  115. package/dist/lib-E7NFRKVR.js +14 -0
  116. package/dist/{lib-RZNRJEWB.js → lib-LY6ZCPIO.js} +2 -1
  117. package/dist/{lib-AAMRQUES.js → lib-MUDJYT6A.js} +4 -3
  118. package/dist/{local-YKOG4EUR-XRRBWLSI.js → local-QXPV4RF5.js} +18 -14
  119. package/dist/{magic-string.es-6DE547FE.js → magic-string.es-ATGURXGQ.js} +2 -1
  120. package/dist/{morph-DCIZUK2Q.js → morph-WKKSW22O.js} +6 -5
  121. package/dist/{multipart-parser-ENLY4BKU.js → multipart-parser-KYOHF24X.js} +3 -2
  122. package/dist/{node-3DKQAOFU.js → node-5XXX7TNJ.js} +30 -29
  123. package/dist/{node-package-manager-HYTHPJBI.js → node-package-manager-O65VOP6W.js} +23 -23
  124. package/dist/{npa-AYOTDW63.js → npa-L2ZRSPZ2.js} +4 -3
  125. package/dist/{open-B7XFJJCK.js → open-JRS7RW22.js} +3 -2
  126. package/dist/out-AS7GH6TC.js +7 -0
  127. package/dist/{path-2NNC3QGW.js → path-JVVXOELJ.js} +10 -6
  128. package/dist/{source-map-V6UVDDPX.js → source-map-37TX6JEW.js} +2 -1
  129. package/dist/system-EEQBTJMJ.js +31 -0
  130. package/dist/tsconfig.tsbuildinfo +1 -1
  131. package/dist/{ui-5LSDG3C5.js → ui-3BAHGNCQ.js} +20 -20
  132. package/dist/{workerd-TFH7T6NI.js → workerd-WR22YQIS.js} +29 -28
  133. package/oclif.manifest.json +108 -93
  134. package/package.json +15 -5
  135. package/dist/assets/dev-console/extensions/dev-console/assets/index-792a0c8d.css +0 -1
  136. package/dist/chunk-3LWRRBH5.js +0 -75
  137. package/dist/chunk-3PIGYQSE.js +0 -36
  138. package/dist/chunk-CK7MF3LY.js +0 -28803
  139. package/dist/chunk-J4I3URIN.js +0 -893
  140. package/dist/chunk-MHMFNQE3.js +0 -76
  141. package/dist/chunk-MXHK26B3.js +0 -89
  142. package/dist/chunk-NJP5GFNN.js +0 -29224
  143. package/dist/chunk-OC4AY5G7.js +0 -11936
  144. package/dist/chunk-OQBI57X3.js +0 -22
  145. package/dist/chunk-RPRKZ6JC.js +0 -53861
  146. package/dist/chunk-RTZHOWFC.js +0 -5485
  147. package/dist/chunk-SZQX5J7X.js +0 -64
  148. package/dist/chunk-T77LT3XG.js +0 -4743
  149. package/dist/chunk-UV4APOMB.js +0 -273
  150. package/dist/chunk-VF4VWJWS.js +0 -213222
  151. package/dist/chunk-WZBNLCJ5.js +0 -13452
  152. package/dist/chunk-YWPV7MV2.js +0 -16432
  153. package/dist/chunk-ZLGRKPW3.js +0 -68
  154. package/dist/chunk-ZZGXXS5X.js +0 -819
  155. package/dist/cli/commands/auth/logout.js.map +0 -1
  156. package/dist/cli/commands/debug/command-flags.js.map +0 -1
  157. package/dist/cli/commands/demo/catalog.js.map +0 -1
  158. package/dist/cli/commands/demo/generate-file.js.map +0 -1
  159. package/dist/cli/commands/demo/index.js.map +0 -1
  160. package/dist/cli/commands/demo/print-ai-prompt.js.map +0 -1
  161. package/dist/cli/commands/docs/generate.js.map +0 -1
  162. package/dist/cli/commands/help.js.map +0 -1
  163. package/dist/cli/commands/kitchen-sink/async.js.map +0 -1
  164. package/dist/cli/commands/kitchen-sink/index.js.map +0 -1
  165. package/dist/cli/commands/kitchen-sink/prompts.js.map +0 -1
  166. package/dist/cli/commands/kitchen-sink/static.js.map +0 -1
  167. package/dist/cli/commands/search.js.map +0 -1
  168. package/dist/cli/commands/upgrade.js.map +0 -1
  169. package/dist/cli/commands/version.js.map +0 -1
  170. package/dist/cli/services/commands/search.js.map +0 -1
  171. package/dist/cli/services/commands/version.js.map +0 -1
  172. package/dist/cli/services/demo.js.map +0 -1
  173. package/dist/cli/services/kitchen-sink/async.js.map +0 -1
  174. package/dist/cli/services/kitchen-sink/prompts.js.map +0 -1
  175. package/dist/cli/services/kitchen-sink/static.js.map +0 -1
  176. package/dist/cli/services/upgrade.js.map +0 -1
  177. package/dist/custom-oclif-loader-OD47SFAU.js +0 -92
  178. package/dist/del-ICEHOC6W-GYLFYUKX.js +0 -2817
  179. package/dist/devtools-6HZ2IPFU-GLFJP63E.js +0 -3557
  180. package/dist/devtools-IHJDLLT4.js +0 -77
  181. package/dist/error-handler-EPMFPTYX.js +0 -37
  182. package/dist/error-handler-WI4YVJIS-U3BMMYNJ.js +0 -31
  183. package/dist/error-handler-WL3Q25NI.js +0 -45
  184. package/dist/hooks/postrun.js.map +0 -1
  185. package/dist/hooks/prerun.js.map +0 -1
  186. package/dist/index.js.map +0 -1
  187. package/dist/lib-76RCE6WZ-5IYGTKKK.js +0 -17
  188. package/dist/lib-UYK3ZLZK.js +0 -13
  189. package/dist/local-KISH2IRF.js +0 -67
  190. package/dist/multipart-parser-ENLY4BKU-IUS26CJU.js +0 -363
  191. package/dist/node-package-manager-S7TSAUJZ-KKDY6KSF.js +0 -70
  192. package/dist/open-B7XFJJCK-4XEFFVL7.js +0 -295
  193. package/dist/out-LRIJ35RZ.js +0 -6
  194. package/dist/out-M5MRQZP5-YHIOILKU.js +0 -14
  195. package/dist/path-HO4HBKK5-4Q2BBYUA.js +0 -33
  196. package/dist/system-LIP7AECY.js +0 -33
  197. package/dist/ui-FUZYK6S3-PVVDPVD5.js +0 -51
@@ -1,70 +0,0 @@
1
- import {
2
- FindUpAndReadPackageJsonNotFoundError,
3
- PackageJsonNotFoundError,
4
- UnknownPackageManagerError,
5
- addNPMDependencies,
6
- addNPMDependenciesIfNeeded,
7
- addNPMDependenciesWithoutVersionIfNeeded,
8
- addResolutionOrOverride,
9
- bunLockfile,
10
- checkForNewVersion,
11
- findUpAndReadPackageJson,
12
- getDependencies,
13
- getPackageManager,
14
- getPackageName,
15
- getPackageVersion,
16
- installNPMDependenciesRecursively,
17
- installNodeModules,
18
- lockfiles,
19
- npmLockfile,
20
- packageManager,
21
- packageManagerFromUserAgent,
22
- pnpmLockfile,
23
- pnpmWorkspaceFile,
24
- readAndParsePackageJson,
25
- usesWorkspaces,
26
- writePackageJSON,
27
- yarnLockfile
28
- } from "./chunk-WZBNLCJ5.js";
29
- import "./chunk-M73YMW2C.js";
30
- import "./chunk-UV4APOMB.js";
31
- import "./chunk-VF4VWJWS.js";
32
- import "./chunk-ZZGXXS5X.js";
33
- import "./chunk-J4I3URIN.js";
34
- import "./chunk-RTZHOWFC.js";
35
- import "./chunk-3LWRRBH5.js";
36
- import "./chunk-ZLGRKPW3.js";
37
- import {
38
- init_cjs_shims
39
- } from "./chunk-M63RTPGR.js";
40
-
41
- // ../create-app/dist/node-package-manager-S7TSAUJZ.js
42
- init_cjs_shims();
43
- export {
44
- FindUpAndReadPackageJsonNotFoundError,
45
- PackageJsonNotFoundError,
46
- UnknownPackageManagerError,
47
- addNPMDependencies,
48
- addNPMDependenciesIfNeeded,
49
- addNPMDependenciesWithoutVersionIfNeeded,
50
- addResolutionOrOverride,
51
- bunLockfile,
52
- checkForNewVersion,
53
- findUpAndReadPackageJson,
54
- getDependencies,
55
- getPackageManager,
56
- getPackageName,
57
- getPackageVersion,
58
- installNPMDependenciesRecursively,
59
- installNodeModules,
60
- lockfiles,
61
- npmLockfile,
62
- packageManager,
63
- packageManagerFromUserAgent,
64
- pnpmLockfile,
65
- pnpmWorkspaceFile,
66
- readAndParsePackageJson,
67
- usesWorkspaces,
68
- writePackageJSON,
69
- yarnLockfile
70
- };
@@ -1,295 +0,0 @@
1
- import {
2
- require_is_docker,
3
- require_is_wsl
4
- } from "./chunk-3LWRRBH5.js";
5
- import {
6
- __commonJS,
7
- __require,
8
- init_cjs_shims as init_cjs_shims2
9
- } from "./chunk-ZLGRKPW3.js";
10
- import {
11
- init_cjs_shims
12
- } from "./chunk-M63RTPGR.js";
13
-
14
- // ../create-app/dist/open-B7XFJJCK.js
15
- init_cjs_shims();
16
- var require_define_lazy_prop = __commonJS({
17
- "../../node_modules/.pnpm/define-lazy-prop@2.0.0/node_modules/define-lazy-prop/index.js"(exports, module) {
18
- "use strict";
19
- init_cjs_shims2();
20
- module.exports = (object, propertyName, fn) => {
21
- const define = (value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true });
22
- Object.defineProperty(object, propertyName, {
23
- configurable: true,
24
- enumerable: true,
25
- get() {
26
- const result = fn();
27
- define(result);
28
- return result;
29
- },
30
- set(value) {
31
- define(value);
32
- }
33
- });
34
- return object;
35
- };
36
- }
37
- });
38
- var require_open = __commonJS({
39
- "../../node_modules/.pnpm/open@8.4.2/node_modules/open/index.js"(exports, module) {
40
- init_cjs_shims2();
41
- var path = __require("path");
42
- var childProcess = __require("child_process");
43
- var { promises: fs, constants: fsConstants } = __require("fs");
44
- var isWsl = require_is_wsl();
45
- var isDocker = require_is_docker();
46
- var defineLazyProperty = require_define_lazy_prop();
47
- var localXdgOpenPath = path.join(__dirname, "xdg-open");
48
- var { platform, arch } = process;
49
- var hasContainerEnv = () => {
50
- try {
51
- fs.statSync("/run/.containerenv");
52
- return true;
53
- } catch {
54
- return false;
55
- }
56
- };
57
- var cachedResult;
58
- function isInsideContainer() {
59
- if (cachedResult === void 0) {
60
- cachedResult = hasContainerEnv() || isDocker();
61
- }
62
- return cachedResult;
63
- }
64
- var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
65
- const defaultMountPoint = "/mnt/";
66
- let mountPoint;
67
- return async function() {
68
- if (mountPoint) {
69
- return mountPoint;
70
- }
71
- const configFilePath = "/etc/wsl.conf";
72
- let isConfigFileExists = false;
73
- try {
74
- await fs.access(configFilePath, fsConstants.F_OK);
75
- isConfigFileExists = true;
76
- } catch {
77
- }
78
- if (!isConfigFileExists) {
79
- return defaultMountPoint;
80
- }
81
- const configContent = await fs.readFile(configFilePath, { encoding: "utf8" });
82
- const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
83
- if (!configMountPoint) {
84
- return defaultMountPoint;
85
- }
86
- mountPoint = configMountPoint.groups.mountPoint.trim();
87
- mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
88
- return mountPoint;
89
- };
90
- })();
91
- var pTryEach = async (array, mapper) => {
92
- let latestError;
93
- for (const item of array) {
94
- try {
95
- return await mapper(item);
96
- } catch (error) {
97
- latestError = error;
98
- }
99
- }
100
- throw latestError;
101
- };
102
- var baseOpen = async (options) => {
103
- options = {
104
- wait: false,
105
- background: false,
106
- newInstance: false,
107
- allowNonzeroExitCode: false,
108
- ...options
109
- };
110
- if (Array.isArray(options.app)) {
111
- return pTryEach(options.app, (singleApp) => baseOpen({
112
- ...options,
113
- app: singleApp
114
- }));
115
- }
116
- let { name: app, arguments: appArguments = [] } = options.app || {};
117
- appArguments = [...appArguments];
118
- if (Array.isArray(app)) {
119
- return pTryEach(app, (appName) => baseOpen({
120
- ...options,
121
- app: {
122
- name: appName,
123
- arguments: appArguments
124
- }
125
- }));
126
- }
127
- let command;
128
- const cliArguments = [];
129
- const childProcessOptions = {};
130
- if (platform === "darwin") {
131
- command = "open";
132
- if (options.wait) {
133
- cliArguments.push("--wait-apps");
134
- }
135
- if (options.background) {
136
- cliArguments.push("--background");
137
- }
138
- if (options.newInstance) {
139
- cliArguments.push("--new");
140
- }
141
- if (app) {
142
- cliArguments.push("-a", app);
143
- }
144
- } else if (platform === "win32" || isWsl && !isInsideContainer() && !app) {
145
- const mountPoint = await getWslDrivesMountPoint();
146
- command = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
147
- cliArguments.push(
148
- "-NoProfile",
149
- "-NonInteractive",
150
- "\u2013ExecutionPolicy",
151
- "Bypass",
152
- "-EncodedCommand"
153
- );
154
- if (!isWsl) {
155
- childProcessOptions.windowsVerbatimArguments = true;
156
- }
157
- const encodedArguments = ["Start"];
158
- if (options.wait) {
159
- encodedArguments.push("-Wait");
160
- }
161
- if (app) {
162
- encodedArguments.push(`"\`"${app}\`""`, "-ArgumentList");
163
- if (options.target) {
164
- appArguments.unshift(options.target);
165
- }
166
- } else if (options.target) {
167
- encodedArguments.push(`"${options.target}"`);
168
- }
169
- if (appArguments.length > 0) {
170
- appArguments = appArguments.map((arg) => `"\`"${arg}\`""`);
171
- encodedArguments.push(appArguments.join(","));
172
- }
173
- options.target = Buffer.from(encodedArguments.join(" "), "utf16le").toString("base64");
174
- } else {
175
- if (app) {
176
- command = app;
177
- } else {
178
- const isBundled = !__dirname || __dirname === "/";
179
- let exeLocalXdgOpen = false;
180
- try {
181
- await fs.access(localXdgOpenPath, fsConstants.X_OK);
182
- exeLocalXdgOpen = true;
183
- } catch {
184
- }
185
- const useSystemXdgOpen = process.versions.electron || platform === "android" || isBundled || !exeLocalXdgOpen;
186
- command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
187
- }
188
- if (appArguments.length > 0) {
189
- cliArguments.push(...appArguments);
190
- }
191
- if (!options.wait) {
192
- childProcessOptions.stdio = "ignore";
193
- childProcessOptions.detached = true;
194
- }
195
- }
196
- if (options.target) {
197
- cliArguments.push(options.target);
198
- }
199
- if (platform === "darwin" && appArguments.length > 0) {
200
- cliArguments.push("--args", ...appArguments);
201
- }
202
- const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
203
- if (options.wait) {
204
- return new Promise((resolve, reject) => {
205
- subprocess.once("error", reject);
206
- subprocess.once("close", (exitCode) => {
207
- if (!options.allowNonzeroExitCode && exitCode > 0) {
208
- reject(new Error(`Exited with code ${exitCode}`));
209
- return;
210
- }
211
- resolve(subprocess);
212
- });
213
- });
214
- }
215
- subprocess.unref();
216
- return subprocess;
217
- };
218
- var open = (target, options) => {
219
- if (typeof target !== "string") {
220
- throw new TypeError("Expected a `target`");
221
- }
222
- return baseOpen({
223
- ...options,
224
- target
225
- });
226
- };
227
- var openApp = (name, options) => {
228
- if (typeof name !== "string") {
229
- throw new TypeError("Expected a `name`");
230
- }
231
- const { arguments: appArguments = [] } = options || {};
232
- if (appArguments !== void 0 && appArguments !== null && !Array.isArray(appArguments)) {
233
- throw new TypeError("Expected `appArguments` as Array type");
234
- }
235
- return baseOpen({
236
- ...options,
237
- app: {
238
- name,
239
- arguments: appArguments
240
- }
241
- });
242
- };
243
- function detectArchBinary(binary) {
244
- if (typeof binary === "string" || Array.isArray(binary)) {
245
- return binary;
246
- }
247
- const { [arch]: archBinary } = binary;
248
- if (!archBinary) {
249
- throw new Error(`${arch} is not supported`);
250
- }
251
- return archBinary;
252
- }
253
- function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
254
- if (wsl && isWsl) {
255
- return detectArchBinary(wsl);
256
- }
257
- if (!platformBinary) {
258
- throw new Error(`${platform} is not supported`);
259
- }
260
- return detectArchBinary(platformBinary);
261
- }
262
- var apps = {};
263
- defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
264
- darwin: "google chrome",
265
- win32: "chrome",
266
- linux: ["google-chrome", "google-chrome-stable", "chromium"]
267
- }, {
268
- wsl: {
269
- ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
270
- x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
271
- }
272
- }));
273
- defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
274
- darwin: "firefox",
275
- win32: "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
276
- linux: "firefox"
277
- }, {
278
- wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"
279
- }));
280
- defineLazyProperty(apps, "edge", () => detectPlatformBinary({
281
- darwin: "microsoft edge",
282
- win32: "msedge",
283
- linux: ["microsoft-edge", "microsoft-edge-dev"]
284
- }, {
285
- wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
286
- }));
287
- open.apps = apps;
288
- open.openApp = openApp;
289
- module.exports = open;
290
- }
291
- });
292
- var open_B7XFJJCK_default = require_open();
293
- export {
294
- open_B7XFJJCK_default as default
295
- };
@@ -1,6 +0,0 @@
1
- import {
2
- require_out
3
- } from "./chunk-BZJX2NV6.js";
4
- import "./chunk-RQ24VTW4.js";
5
- import "./chunk-M63RTPGR.js";
6
- export default require_out();
@@ -1,14 +0,0 @@
1
- import {
2
- require_out4
3
- } from "./chunk-RTZHOWFC.js";
4
- import "./chunk-ZLGRKPW3.js";
5
- import {
6
- init_cjs_shims
7
- } from "./chunk-M63RTPGR.js";
8
-
9
- // ../create-app/dist/out-M5MRQZP5.js
10
- init_cjs_shims();
11
- var out_M5MRQZP5_default = require_out4();
12
- export {
13
- out_M5MRQZP5_default as default
14
- };
@@ -1,33 +0,0 @@
1
- import {
2
- basename2,
3
- cwd,
4
- dirname2,
5
- extname2,
6
- isAbsolutePath,
7
- joinPath,
8
- moduleDirectory,
9
- normalizePath,
10
- relativePath,
11
- relativizePath,
12
- resolvePath
13
- } from "./chunk-UV4APOMB.js";
14
- import "./chunk-ZLGRKPW3.js";
15
- import {
16
- init_cjs_shims
17
- } from "./chunk-M63RTPGR.js";
18
-
19
- // ../create-app/dist/path-HO4HBKK5.js
20
- init_cjs_shims();
21
- export {
22
- basename2 as basename,
23
- cwd,
24
- dirname2 as dirname,
25
- extname2 as extname,
26
- isAbsolutePath,
27
- joinPath,
28
- moduleDirectory,
29
- normalizePath,
30
- relativePath,
31
- relativizePath,
32
- resolvePath
33
- };
@@ -1,33 +0,0 @@
1
- import {
2
- captureOutput,
3
- exec,
4
- openURL,
5
- sleep,
6
- terminalSupportsRawMode
7
- } from "./chunk-CK7MF3LY.js";
8
- import "./chunk-YWPV7MV2.js";
9
- import "./chunk-FQIRJADJ.js";
10
- import "./chunk-PCQFWMMD.js";
11
- import "./chunk-SZQX5J7X.js";
12
- import "./chunk-I434ZJQI.js";
13
- import "./chunk-FWGRGI4R.js";
14
- import "./chunk-BE73NZXB.js";
15
- import "./chunk-PBFWVFAQ.js";
16
- import "./chunk-WCNR75S2.js";
17
- import "./chunk-MHMFNQE3.js";
18
- import "./chunk-3PIGYQSE.js";
19
- import "./chunk-FBB6KUZG.js";
20
- import "./chunk-VQZ2SHRY.js";
21
- import "./chunk-6SL33DOA.js";
22
- import "./chunk-BZJX2NV6.js";
23
- import "./chunk-RQ24VTW4.js";
24
- import "./chunk-3JLUTHGR.js";
25
- import "./chunk-GXPKATXW.js";
26
- import "./chunk-M63RTPGR.js";
27
- export {
28
- captureOutput,
29
- exec,
30
- openURL,
31
- sleep,
32
- terminalSupportsRawMode
33
- };
@@ -1,51 +0,0 @@
1
- import {
2
- handleCtrlC,
3
- keypress,
4
- render2,
5
- renderAutocompletePrompt,
6
- renderConcurrent,
7
- renderConfirmationPrompt,
8
- renderDangerousConfirmationPrompt,
9
- renderError,
10
- renderFatalError,
11
- renderInfo,
12
- renderSelectPrompt,
13
- renderSuccess,
14
- renderTable,
15
- renderTasks,
16
- renderText,
17
- renderTextPrompt,
18
- renderWarning
19
- } from "./chunk-M73YMW2C.js";
20
- import "./chunk-UV4APOMB.js";
21
- import "./chunk-VF4VWJWS.js";
22
- import "./chunk-ZZGXXS5X.js";
23
- import "./chunk-J4I3URIN.js";
24
- import "./chunk-RTZHOWFC.js";
25
- import "./chunk-3LWRRBH5.js";
26
- import "./chunk-ZLGRKPW3.js";
27
- import {
28
- init_cjs_shims
29
- } from "./chunk-M63RTPGR.js";
30
-
31
- // ../create-app/dist/ui-FUZYK6S3.js
32
- init_cjs_shims();
33
- export {
34
- handleCtrlC,
35
- keypress,
36
- render2 as render,
37
- renderAutocompletePrompt,
38
- renderConcurrent,
39
- renderConfirmationPrompt,
40
- renderDangerousConfirmationPrompt,
41
- renderError,
42
- renderFatalError,
43
- renderInfo,
44
- renderSelectPrompt,
45
- renderSuccess,
46
- renderTable,
47
- renderTasks,
48
- renderText,
49
- renderTextPrompt,
50
- renderWarning
51
- };