@shopify/cli 3.84.2 → 3.85.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 (108) hide show
  1. package/README.md +1 -1
  2. package/dist/{chokidar-KCZH6DIC.js → chokidar-TTCYG5AA.js} +5 -5
  3. package/dist/{chokidar-XPSJ2FUJ.js → chokidar-XUA2BN3J.js} +5 -5
  4. package/dist/{chunk-OCEWRJZI.js → chunk-62H2KYOJ.js} +17 -21
  5. package/dist/{chunk-6A27UWO7.js → chunk-6YB46YWH.js} +4 -4
  6. package/dist/{chunk-L5OKA4W4.js → chunk-7JE3EHN3.js} +7 -7
  7. package/dist/chunk-7LEPNDDJ.js +87 -0
  8. package/dist/{chunk-MXDBI4PG.js → chunk-7N5JGLLX.js} +5 -5
  9. package/dist/{chunk-HMDWNGIV.js → chunk-AM4QB5OM.js} +206 -100
  10. package/dist/{chunk-W5G2YPO2.js → chunk-BQ3PZIHZ.js} +7 -7
  11. package/dist/{chunk-TFVMB62A.js → chunk-CKYPRLQQ.js} +19 -18
  12. package/dist/{chunk-AQVXNWM2.js → chunk-CNY4KRKG.js} +2 -2
  13. package/dist/{del-SAZHGAZZ.js → chunk-EFOOQV72.js} +17 -378
  14. package/dist/{chunk-3FBDJEGD.js → chunk-F7F4BQYW.js} +1824 -762
  15. package/dist/{chunk-66VZYBID.js → chunk-F7J5CUMZ.js} +4 -4
  16. package/dist/{chunk-2TBGVDDK.js → chunk-FLHWGFGH.js} +3 -3
  17. package/dist/{chunk-JHLYV5K7.js → chunk-G6OERDCU.js} +7 -7
  18. package/dist/{chunk-6JFZSZKE.js → chunk-GGNBWCCE.js} +16380 -5793
  19. package/dist/chunk-IWFYXDPH.js +109 -0
  20. package/dist/{chunk-7UHRC35E.js → chunk-J3DHMVKN.js} +2 -2
  21. package/dist/{chunk-Z6MEYGAG.js → chunk-JDI5KJ6D.js} +3 -3
  22. package/dist/chunk-KIC7OBUL.js +4654 -0
  23. package/dist/{chunk-YUI23PKV.js → chunk-KJT4XRJY.js} +2 -2
  24. package/dist/{chunk-46YOOMEM.js → chunk-LOJKECKW.js} +2 -2
  25. package/dist/{chunk-TAA5HGRT.js → chunk-MHFD5A4P.js} +666 -589
  26. package/dist/{chunk-QS5WPZTS.js → chunk-O47I6ERR.js} +10 -9
  27. package/dist/{chunk-KHBZ52PT.js → chunk-OXCV2R7K.js} +43 -19
  28. package/dist/{chunk-XD5EFQE2.js → chunk-OXVB7GS3.js} +5 -5
  29. package/dist/{chunk-UOLT7THS.js → chunk-PYZUPEOA.js} +3 -3
  30. package/dist/{chunk-G74IQQ6M.js → chunk-Q64LTCDT.js} +3 -3
  31. package/dist/{chunk-DCU33ZNP.js → chunk-R7QUG5YH.js} +3 -3
  32. package/dist/{chunk-YPRC4TK6.js → chunk-S3MBABAK.js} +187 -43
  33. package/dist/{chunk-ZRU5CKDG.js → chunk-TRKSH2XY.js} +4 -4
  34. package/dist/{chunk-BSKQ4RKV.js → chunk-TVWMGUCW.js} +3 -3
  35. package/dist/{chunk-G5R6YD27.js → chunk-UATXMR5F.js} +2 -103
  36. package/dist/{chunk-DZCCH5OM.js → chunk-UYWDOH6Y.js} +8 -8
  37. package/dist/{chunk-BX2C6EVM.js → chunk-VCGC2OW6.js} +2 -2
  38. package/dist/{chunk-YNNUWX3I.js → chunk-VMPHJR5V.js} +4 -4
  39. package/dist/{chunk-7YVG6N4O.js → chunk-W54BTT4L.js} +2 -2
  40. package/dist/{chunk-RTTTZZGY.js → chunk-XKHE52EY.js} +4 -4
  41. package/dist/{chunk-MRQXBTNU.js → chunk-XNKJ52IR.js} +3 -3
  42. package/dist/{chunk-EG6MBBEN.js → chunk-Y2JP6WFP.js} +2 -2
  43. package/dist/{chunk-M6EH6UKK.js → chunk-YIQ4GHA2.js} +4 -4
  44. package/dist/{chunk-ZBPY6YL5.js → chunk-YJZEHV2H.js} +8 -8
  45. package/dist/{chunk-T2Z26YN7.js → chunk-ZZACM6JY.js} +3 -3
  46. package/dist/cli/commands/auth/login.d.ts +8 -0
  47. package/dist/cli/commands/auth/login.js +28 -0
  48. package/dist/cli/commands/auth/login.test.js +53 -0
  49. package/dist/cli/commands/auth/logout.js +15 -17
  50. package/dist/cli/commands/auth/logout.test.js +20 -22
  51. package/dist/cli/commands/cache/clear.js +15 -16
  52. package/dist/cli/commands/debug/command-flags.js +15 -16
  53. package/dist/cli/commands/docs/generate.js +15 -16
  54. package/dist/cli/commands/docs/generate.test.js +21 -22
  55. package/dist/cli/commands/help.js +15 -16
  56. package/dist/cli/commands/kitchen-sink/async.js +16 -17
  57. package/dist/cli/commands/kitchen-sink/async.test.js +17 -18
  58. package/dist/cli/commands/kitchen-sink/index.js +18 -19
  59. package/dist/cli/commands/kitchen-sink/index.test.js +21 -22
  60. package/dist/cli/commands/kitchen-sink/prompts.js +16 -17
  61. package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -18
  62. package/dist/cli/commands/kitchen-sink/static.js +16 -17
  63. package/dist/cli/commands/kitchen-sink/static.test.js +17 -18
  64. package/dist/cli/commands/notifications/generate.js +16 -17
  65. package/dist/cli/commands/notifications/list.js +16 -17
  66. package/dist/cli/commands/search.js +16 -17
  67. package/dist/cli/commands/upgrade.js +16 -17
  68. package/dist/cli/commands/upgrade.test.js +1 -1
  69. package/dist/cli/commands/version.js +16 -17
  70. package/dist/cli/commands/version.test.js +17 -18
  71. package/dist/cli/services/commands/notifications.js +11 -12
  72. package/dist/cli/services/commands/search.js +7 -8
  73. package/dist/cli/services/commands/search.test.js +8 -9
  74. package/dist/cli/services/commands/version.js +8 -9
  75. package/dist/cli/services/commands/version.test.js +10 -11
  76. package/dist/cli/services/kitchen-sink/async.js +7 -8
  77. package/dist/cli/services/kitchen-sink/prompts.js +7 -8
  78. package/dist/cli/services/kitchen-sink/static.js +7 -8
  79. package/dist/cli/services/upgrade.js +8 -9
  80. package/dist/cli/services/upgrade.test.js +13 -14
  81. package/dist/configs/all.yml +3 -3
  82. package/dist/configs/recommended.yml +3 -3
  83. package/dist/{custom-oclif-loader-BBMEEF2H.js → custom-oclif-loader-MVTJFCUD.js} +11 -12
  84. package/dist/data/latest.json +1 -1
  85. package/dist/data/objects.json +2 -2
  86. package/dist/data/shopify_system_translations.json +82 -24
  87. package/dist/data/tags.json +10 -10
  88. package/dist/del-DNZ7X2HW.js +377 -0
  89. package/dist/{error-handler-734CUCMD.js → error-handler-OEZ5DBZB.js} +13 -14
  90. package/dist/hooks/postrun.js +13 -15
  91. package/dist/hooks/prerun.js +14 -15
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +7792 -5700
  94. package/dist/{lib-OSXFX3I2.js → lib-DEEC6IKU.js} +3 -4
  95. package/dist/{local-5AKZWHSS.js → local-72XWEFWL.js} +7 -8
  96. package/dist/{morph-TYIH255V.js → morph-5D7H6MU2.js} +13 -11
  97. package/dist/{node-package-manager-DMOU4DTB.js → node-package-manager-TTBSTZXN.js} +8 -9
  98. package/dist/{npa-E675GQOI.js → npa-LHT53SWR.js} +3 -5
  99. package/dist/{path-GB4VIEM6.js → path-COZT77T2.js} +2 -2
  100. package/dist/tsconfig.tsbuildinfo +1 -1
  101. package/dist/{ui-JQXGLHMO.js → ui-XUA267UA.js} +9 -8
  102. package/dist/{workerd-FTKMK3NR.js → workerd-KJQYQH4A.js} +23 -23
  103. package/oclif.manifest.json +79 -9
  104. package/package.json +10 -10
  105. package/dist/chunk-CP3BRHWK.js +0 -33
  106. package/dist/chunk-EZQWZ57B.js +0 -53
  107. package/dist/chunk-SJMHVGQ5.js +0 -119
  108. package/dist/chunk-SM7O6ZFJ.js +0 -1216
@@ -3874,7 +3874,7 @@ function createTestHook(name, handler) {
3874
3874
  // ../../node_modules/.pnpm/@vitest+runner@3.2.1/node_modules/@vitest/runner/dist/index.js
3875
3875
  init_cjs_shims();
3876
3876
 
3877
- // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_de0db130bf4cf30bf4e41f6525dbed41/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
3877
+ // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_59b23bdad58d2b08cdc86d448ade34f5/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
3878
3878
  init_cjs_shims();
3879
3879
 
3880
3880
  // ../../node_modules/.pnpm/@vitest+expect@3.2.1/node_modules/@vitest/expect/dist/index.js
@@ -8316,7 +8316,7 @@ var JestExtend = (chai2, utils) => {
8316
8316
  // ../../node_modules/.pnpm/@vitest+runner@3.2.1/node_modules/@vitest/runner/dist/utils.js
8317
8317
  init_cjs_shims();
8318
8318
 
8319
- // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_de0db130bf4cf30bf4e41f6525dbed41/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
8319
+ // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_59b23bdad58d2b08cdc86d448ade34f5/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
8320
8320
  init_cjs_shims();
8321
8321
  var NAME_WORKER_STATE = "__vitest_worker__";
8322
8322
  function getWorkerState() {
@@ -8364,7 +8364,7 @@ async function waitForImportsToResolve() {
8364
8364
  !promises.length && !resolvingCount || (await Promise.allSettled(promises), await waitForImportsToResolve());
8365
8365
  }
8366
8366
 
8367
- // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_de0db130bf4cf30bf4e41f6525dbed41/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
8367
+ // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_59b23bdad58d2b08cdc86d448ade34f5/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
8368
8368
  init_cjs_shims();
8369
8369
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8370
8370
  function getDefaultExportFromCjs3(x) {
@@ -9729,7 +9729,7 @@ var SnapshotClient = class {
9729
9729
  }
9730
9730
  };
9731
9731
 
9732
- // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_de0db130bf4cf30bf4e41f6525dbed41/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
9732
+ // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_59b23bdad58d2b08cdc86d448ade34f5/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
9733
9733
  init_cjs_shims();
9734
9734
  var RealDate = Date, now2 = null, MockDate = class _MockDate extends RealDate {
9735
9735
  constructor(y, m2, d, h3, M, s2, ms) {
@@ -9768,7 +9768,7 @@ function resetDate() {
9768
9768
  globalThis.Date = RealDate;
9769
9769
  }
9770
9770
 
9771
- // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_de0db130bf4cf30bf4e41f6525dbed41/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
9771
+ // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_59b23bdad58d2b08cdc86d448ade34f5/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
9772
9772
  var unsupported = [
9773
9773
  "matchSnapshot",
9774
9774
  "toMatchSnapshot",
@@ -11499,7 +11499,7 @@ function getImporter(name) {
11499
11499
  return parseSingleStack(stackArray[importerStackIndex + 1])?.file || "";
11500
11500
  }
11501
11501
 
11502
- // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_de0db130bf4cf30bf4e41f6525dbed41/node_modules/vitest/dist/index.js
11502
+ // ../../node_modules/.pnpm/vitest@3.2.1_@types+node@18.19.70_jiti@2.4.2_jsdom@20.0.3_msw@2.8.7_@types+node@18.19.7_59b23bdad58d2b08cdc86d448ade34f5/node_modules/vitest/dist/index.js
11503
11503
  init_cjs_shims();
11504
11504
  var import_expect_type = __toESM(require_dist(), 1);
11505
11505
 
@@ -11802,4 +11802,4 @@ chai/chai.js:
11802
11802
  * @license MIT License
11803
11803
  *)
11804
11804
  */
11805
- //# sourceMappingURL=chunk-W5G2YPO2.js.map
11805
+ //# sourceMappingURL=chunk-BQ3PZIHZ.js.map
@@ -4,16 +4,17 @@ import {
4
4
  import {
5
5
  fanoutHooks,
6
6
  reportAnalyticsEvent
7
- } from "./chunk-YPRC4TK6.js";
7
+ } from "./chunk-S3MBABAK.js";
8
8
  import {
9
- getEnvironmentData
10
- } from "./chunk-SM7O6ZFJ.js";
11
- import {
12
- CLI_KIT_VERSION
13
- } from "./chunk-YUI23PKV.js";
9
+ getEnvironmentData,
10
+ isLocalEnvironment
11
+ } from "./chunk-KIC7OBUL.js";
14
12
  import {
15
13
  runWithRateLimit
16
- } from "./chunk-KHBZ52PT.js";
14
+ } from "./chunk-OXCV2R7K.js";
15
+ import {
16
+ CLI_KIT_VERSION
17
+ } from "./chunk-KJT4XRJY.js";
17
18
  import {
18
19
  AbortSilentError,
19
20
  CancelExecution,
@@ -28,17 +29,17 @@ import {
28
29
  reportingRateLimit,
29
30
  require_stacktracey,
30
31
  shouldReportErrorAsUnexpected
31
- } from "./chunk-TAA5HGRT.js";
32
+ } from "./chunk-MHFD5A4P.js";
33
+ import {
34
+ require_lib
35
+ } from "./chunk-F7F4BQYW.js";
32
36
  import {
33
37
  cwd,
34
38
  isAbsolutePath,
35
39
  joinPath,
36
40
  normalizePath,
37
41
  relativePath
38
- } from "./chunk-EG6MBBEN.js";
39
- import {
40
- require_lib
41
- } from "./chunk-3FBDJEGD.js";
42
+ } from "./chunk-Y2JP6WFP.js";
42
43
  import {
43
44
  __commonJS,
44
45
  __require,
@@ -312,12 +313,12 @@ var require_stack_generator = __commonJS({
312
313
  }
313
314
  });
314
315
 
315
- // ../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js
316
+ // ../../node_modules/.pnpm/end-of-stream@1.4.5/node_modules/end-of-stream/index.js
316
317
  var require_end_of_stream = __commonJS({
317
- "../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js"(exports, module) {
318
+ "../../node_modules/.pnpm/end-of-stream@1.4.5/node_modules/end-of-stream/index.js"(exports, module) {
318
319
  init_cjs_shims();
319
320
  var once = require_once(), noop = function() {
320
- }, isRequest = function(stream) {
321
+ }, qnt = global.Bare ? queueMicrotask : process.nextTick.bind(process), isRequest = function(stream) {
321
322
  return stream.setHeader && typeof stream.abort == "function";
322
323
  }, isChildProcess = function(stream) {
323
324
  return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3;
@@ -335,7 +336,7 @@ var require_end_of_stream = __commonJS({
335
336
  }, onerror = function(err) {
336
337
  callback.call(stream, err);
337
338
  }, onclose = function() {
338
- process.nextTick(onclosenexttick);
339
+ qnt(onclosenexttick);
339
340
  }, onclosenexttick = function() {
340
341
  if (!cancelled) {
341
342
  if (readable && !(rs && rs.ended && !rs.destroyed)) return callback.call(stream, new Error("premature close"));
@@ -2048,7 +2049,7 @@ var reportError = async (error, config) => {
2048
2049
  };
2049
2050
  async function sendErrorToBugsnag(error, exitMode) {
2050
2051
  try {
2051
- if (import_core.settings.debug)
2052
+ if (isLocalEnvironment() || import_core.settings.debug)
2052
2053
  return outputDebug("Skipping Bugsnag report"), { reported: !1, error, unhandled: void 0 };
2053
2054
  let unhandled = exitMode === "unexpected_error", reportableError, stacktrace, report = !1;
2054
2055
  error instanceof Error ? (report = !0, reportableError = new Error(error.message), stacktrace = error.stack) : typeof error == "string" && error.trim().length !== 0 ? (report = !0, reportableError = new Error(error), stacktrace = reportableError.stack) : (report = !1, reportableError = new Error("Unknown error"));
@@ -2149,4 +2150,4 @@ export {
2149
2150
  registerCleanBugsnagErrorsFromWithinPlugins,
2150
2151
  addBugsnagMetadata
2151
2152
  };
2152
- //# sourceMappingURL=chunk-TFVMB62A.js.map
2153
+ //# sourceMappingURL=chunk-CKYPRLQQ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clearCollectedLogs,
3
3
  collectedLogs
4
- } from "./chunk-TAA5HGRT.js";
4
+ } from "./chunk-MHFD5A4P.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-PKR7KJ6P.js";
@@ -33,4 +33,4 @@ function mockAndCaptureOutput() {
33
33
  export {
34
34
  mockAndCaptureOutput
35
35
  };
36
- //# sourceMappingURL=chunk-AQVXNWM2.js.map
36
+ //# sourceMappingURL=chunk-CNY4KRKG.js.map
@@ -2,26 +2,24 @@ import {
2
2
  require_merge2,
3
3
  require_out
4
4
  } from "./chunk-CTFDRWUN.js";
5
- import {
6
- require_is_glob
7
- } from "./chunk-7IK72W75.js";
8
- import {
9
- require_glob
10
- } from "./chunk-IG5SOACB.js";
11
- import "./chunk-SHWOPMLQ.js";
12
- import {
13
- require_graceful_fs
14
- } from "./chunk-75LV6AQS.js";
15
- import {
16
- require_indent_string
17
- } from "./chunk-UV5N2VL7.js";
18
- import "./chunk-XE5EOEBL.js";
19
5
  import {
20
6
  __commonJS,
21
7
  __require,
22
8
  init_cjs_shims
23
9
  } from "./chunk-PKR7KJ6P.js";
24
10
 
11
+ // ../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js
12
+ var require_slash = __commonJS({
13
+ "../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"(exports, module) {
14
+ "use strict";
15
+ init_cjs_shims();
16
+ module.exports = (path) => {
17
+ let isExtendedLengthPath = /^\\\\\?\\/.test(path), hasNonAscii = /[^\u0000-\u0080]+/.test(path);
18
+ return isExtendedLengthPath || hasNonAscii ? path : path.replace(/\\/g, "/");
19
+ };
20
+ }
21
+ });
22
+
25
23
  // ../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js
26
24
  var require_array_union = __commonJS({
27
25
  "../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module) {
@@ -409,18 +407,6 @@ var require_ignore = __commonJS({
409
407
  }
410
408
  });
411
409
 
412
- // ../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js
413
- var require_slash = __commonJS({
414
- "../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"(exports, module) {
415
- "use strict";
416
- init_cjs_shims();
417
- module.exports = (path) => {
418
- let isExtendedLengthPath = /^\\\\\?\\/.test(path), hasNonAscii = /[^\u0000-\u0080]+/.test(path);
419
- return isExtendedLengthPath || hasNonAscii ? path : path.replace(/\\/g, "/");
420
- };
421
- }
422
- });
423
-
424
410
  // ../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/gitignore.js
425
411
  var require_gitignore = __commonJS({
426
412
  "../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/gitignore.js"(exports, module) {
@@ -608,355 +594,8 @@ var require_globby = __commonJS({
608
594
  }
609
595
  });
610
596
 
611
- // ../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js
612
- var require_is_path_cwd = __commonJS({
613
- "../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module) {
614
- "use strict";
615
- init_cjs_shims();
616
- var path = __require("path");
617
- module.exports = (path_) => {
618
- let cwd = process.cwd();
619
- return path_ = path.resolve(path_), process.platform === "win32" && (cwd = cwd.toLowerCase(), path_ = path_.toLowerCase()), path_ === cwd;
620
- };
621
- }
622
- });
623
-
624
- // ../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js
625
- var require_is_path_inside = __commonJS({
626
- "../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(exports, module) {
627
- "use strict";
628
- init_cjs_shims();
629
- var path = __require("path");
630
- module.exports = (childPath, parentPath) => {
631
- let relation = path.relative(parentPath, childPath);
632
- return !!(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
633
- };
634
- }
635
- });
636
-
637
- // ../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js
638
- var require_rimraf = __commonJS({
639
- "../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module) {
640
- init_cjs_shims();
641
- var assert = __require("assert"), path = __require("path"), fs = __require("fs"), glob;
642
- try {
643
- glob = require_glob();
644
- } catch {
645
- }
646
- var defaultGlobOpts = {
647
- nosort: !0,
648
- silent: !0
649
- }, timeout = 0, isWindows = process.platform === "win32", defaults = (options) => {
650
- if ([
651
- "unlink",
652
- "chmod",
653
- "stat",
654
- "lstat",
655
- "rmdir",
656
- "readdir"
657
- ].forEach((m) => {
658
- options[m] = options[m] || fs[m], m = m + "Sync", options[m] = options[m] || fs[m];
659
- }), options.maxBusyTries = options.maxBusyTries || 3, options.emfileWait = options.emfileWait || 1e3, options.glob === !1 && (options.disableGlob = !0), options.disableGlob !== !0 && glob === void 0)
660
- throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");
661
- options.disableGlob = options.disableGlob || !1, options.glob = options.glob || defaultGlobOpts;
662
- }, rimraf = (p, options, cb) => {
663
- typeof options == "function" && (cb = options, options = {}), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert.equal(typeof cb, "function", "rimraf: callback function required"), assert(options, "rimraf: invalid options argument provided"), assert.equal(typeof options, "object", "rimraf: options should be object"), defaults(options);
664
- let busyTries = 0, errState = null, n = 0, next = (er) => {
665
- errState = errState || er, --n === 0 && cb(errState);
666
- }, afterGlob = (er, results) => {
667
- if (er)
668
- return cb(er);
669
- if (n = results.length, n === 0)
670
- return cb();
671
- results.forEach((p2) => {
672
- let CB = (er2) => {
673
- if (er2) {
674
- if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries)
675
- return busyTries++, setTimeout(() => rimraf_(p2, options, CB), busyTries * 100);
676
- if (er2.code === "EMFILE" && timeout < options.emfileWait)
677
- return setTimeout(() => rimraf_(p2, options, CB), timeout++);
678
- er2.code === "ENOENT" && (er2 = null);
679
- }
680
- timeout = 0, next(er2);
681
- };
682
- rimraf_(p2, options, CB);
683
- });
684
- };
685
- if (options.disableGlob || !glob.hasMagic(p))
686
- return afterGlob(null, [p]);
687
- options.lstat(p, (er, stat) => {
688
- if (!er)
689
- return afterGlob(null, [p]);
690
- glob(p, options.glob, afterGlob);
691
- });
692
- }, rimraf_ = (p, options, cb) => {
693
- assert(p), assert(options), assert(typeof cb == "function"), options.lstat(p, (er, st) => {
694
- if (er && er.code === "ENOENT")
695
- return cb(null);
696
- if (er && er.code === "EPERM" && isWindows && fixWinEPERM(p, options, er, cb), st && st.isDirectory())
697
- return rmdir(p, options, er, cb);
698
- options.unlink(p, (er2) => {
699
- if (er2) {
700
- if (er2.code === "ENOENT")
701
- return cb(null);
702
- if (er2.code === "EPERM")
703
- return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
704
- if (er2.code === "EISDIR")
705
- return rmdir(p, options, er2, cb);
706
- }
707
- return cb(er2);
708
- });
709
- });
710
- }, fixWinEPERM = (p, options, er, cb) => {
711
- assert(p), assert(options), assert(typeof cb == "function"), options.chmod(p, 438, (er2) => {
712
- er2 ? cb(er2.code === "ENOENT" ? null : er) : options.stat(p, (er3, stats) => {
713
- er3 ? cb(er3.code === "ENOENT" ? null : er) : stats.isDirectory() ? rmdir(p, options, er, cb) : options.unlink(p, cb);
714
- });
715
- });
716
- }, fixWinEPERMSync = (p, options, er) => {
717
- assert(p), assert(options);
718
- try {
719
- options.chmodSync(p, 438);
720
- } catch (er2) {
721
- if (er2.code === "ENOENT")
722
- return;
723
- throw er;
724
- }
725
- let stats;
726
- try {
727
- stats = options.statSync(p);
728
- } catch (er3) {
729
- if (er3.code === "ENOENT")
730
- return;
731
- throw er;
732
- }
733
- stats.isDirectory() ? rmdirSync(p, options, er) : options.unlinkSync(p);
734
- }, rmdir = (p, options, originalEr, cb) => {
735
- assert(p), assert(options), assert(typeof cb == "function"), options.rmdir(p, (er) => {
736
- er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") ? rmkids(p, options, cb) : er && er.code === "ENOTDIR" ? cb(originalEr) : cb(er);
737
- });
738
- }, rmkids = (p, options, cb) => {
739
- assert(p), assert(options), assert(typeof cb == "function"), options.readdir(p, (er, files) => {
740
- if (er)
741
- return cb(er);
742
- let n = files.length;
743
- if (n === 0)
744
- return options.rmdir(p, cb);
745
- let errState;
746
- files.forEach((f) => {
747
- rimraf(path.join(p, f), options, (er2) => {
748
- if (!errState) {
749
- if (er2)
750
- return cb(errState = er2);
751
- --n === 0 && options.rmdir(p, cb);
752
- }
753
- });
754
- });
755
- });
756
- }, rimrafSync = (p, options) => {
757
- options = options || {}, defaults(options), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert(options, "rimraf: missing options"), assert.equal(typeof options, "object", "rimraf: options should be object");
758
- let results;
759
- if (options.disableGlob || !glob.hasMagic(p))
760
- results = [p];
761
- else
762
- try {
763
- options.lstatSync(p), results = [p];
764
- } catch {
765
- results = glob.sync(p, options.glob);
766
- }
767
- if (results.length)
768
- for (let i = 0; i < results.length; i++) {
769
- let p2 = results[i], st;
770
- try {
771
- st = options.lstatSync(p2);
772
- } catch (er) {
773
- if (er.code === "ENOENT")
774
- return;
775
- er.code === "EPERM" && isWindows && fixWinEPERMSync(p2, options, er);
776
- }
777
- try {
778
- st && st.isDirectory() ? rmdirSync(p2, options, null) : options.unlinkSync(p2);
779
- } catch (er) {
780
- if (er.code === "ENOENT")
781
- return;
782
- if (er.code === "EPERM")
783
- return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er);
784
- if (er.code !== "EISDIR")
785
- throw er;
786
- rmdirSync(p2, options, er);
787
- }
788
- }
789
- }, rmdirSync = (p, options, originalEr) => {
790
- assert(p), assert(options);
791
- try {
792
- options.rmdirSync(p);
793
- } catch (er) {
794
- if (er.code === "ENOENT")
795
- return;
796
- if (er.code === "ENOTDIR")
797
- throw originalEr;
798
- (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") && rmkidsSync(p, options);
799
- }
800
- }, rmkidsSync = (p, options) => {
801
- assert(p), assert(options), options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
802
- let retries = isWindows ? 100 : 1, i = 0;
803
- do {
804
- let threw = !0;
805
- try {
806
- let ret = options.rmdirSync(p, options);
807
- return threw = !1, ret;
808
- } finally {
809
- if (++i < retries && threw)
810
- continue;
811
- }
812
- } while (!0);
813
- };
814
- module.exports = rimraf;
815
- rimraf.sync = rimrafSync;
816
- }
817
- });
818
-
819
- // ../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js
820
- var require_clean_stack = __commonJS({
821
- "../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module) {
822
- "use strict";
823
- init_cjs_shims();
824
- var os = __require("os"), extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/, pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/, homeDir = typeof os.homedir > "u" ? "" : os.homedir();
825
- module.exports = (stack, options) => (options = Object.assign({ pretty: !1 }, options), stack.replace(/\\/g, "/").split(`
826
- `).filter((line) => {
827
- let pathMatches = line.match(extractPathRegex);
828
- if (pathMatches === null || !pathMatches[1])
829
- return !0;
830
- let match = pathMatches[1];
831
- return match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar") ? !1 : !pathRegex.test(match);
832
- }).filter((line) => line.trim() !== "").map((line) => options.pretty ? line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~"))) : line).join(`
833
- `));
834
- }
835
- });
836
-
837
- // ../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js
838
- var require_aggregate_error = __commonJS({
839
- "../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module) {
840
- "use strict";
841
- init_cjs_shims();
842
- var indentString = require_indent_string(), cleanStack = require_clean_stack(), cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ""), AggregateError = class extends Error {
843
- constructor(errors) {
844
- if (!Array.isArray(errors))
845
- throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
846
- errors = [...errors].map((error) => error instanceof Error ? error : error !== null && typeof error == "object" ? Object.assign(new Error(error.message), error) : new Error(error));
847
- let message = errors.map((error) => typeof error.stack == "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error)).join(`
848
- `);
849
- message = `
850
- ` + indentString(message, 4), super(message), this.name = "AggregateError", Object.defineProperty(this, "_errors", { value: errors });
851
- }
852
- *[Symbol.iterator]() {
853
- for (let error of this._errors)
854
- yield error;
855
- }
856
- };
857
- module.exports = AggregateError;
858
- }
859
- });
860
-
861
- // ../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js
862
- var require_p_map = __commonJS({
863
- "../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module) {
864
- "use strict";
865
- init_cjs_shims();
866
- var AggregateError = require_aggregate_error();
867
- module.exports = async (iterable, mapper, {
868
- concurrency = 1 / 0,
869
- stopOnError = !0
870
- } = {}) => new Promise((resolve, reject) => {
871
- if (typeof mapper != "function")
872
- throw new TypeError("Mapper function is required");
873
- if (!((Number.isSafeInteger(concurrency) || concurrency === 1 / 0) && concurrency >= 1))
874
- throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
875
- let result = [], errors = [], iterator = iterable[Symbol.iterator](), isRejected = !1, isIterableDone = !1, resolvingCount = 0, currentIndex = 0, next = () => {
876
- if (isRejected)
877
- return;
878
- let nextItem = iterator.next(), index = currentIndex;
879
- if (currentIndex++, nextItem.done) {
880
- isIterableDone = !0, resolvingCount === 0 && (!stopOnError && errors.length !== 0 ? reject(new AggregateError(errors)) : resolve(result));
881
- return;
882
- }
883
- resolvingCount++, (async () => {
884
- try {
885
- let element = await nextItem.value;
886
- result[index] = await mapper(element, index), resolvingCount--, next();
887
- } catch (error) {
888
- stopOnError ? (isRejected = !0, reject(error)) : (errors.push(error), resolvingCount--, next());
889
- }
890
- })();
891
- };
892
- for (let i = 0; i < concurrency && (next(), !isIterableDone); i++)
893
- ;
894
- });
895
- }
896
- });
897
-
898
- // ../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js
899
- var require_del = __commonJS({
900
- "../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(exports, module) {
901
- init_cjs_shims();
902
- var { promisify } = __require("util"), path = __require("path"), globby = require_globby(), isGlob = require_is_glob(), slash = require_slash(), gracefulFs = require_graceful_fs(), isPathCwd = require_is_path_cwd(), isPathInside = require_is_path_inside(), rimraf = require_rimraf(), pMap = require_p_map(), rimrafP = promisify(rimraf), rimrafOptions = {
903
- glob: !1,
904
- unlink: gracefulFs.unlink,
905
- unlinkSync: gracefulFs.unlinkSync,
906
- chmod: gracefulFs.chmod,
907
- chmodSync: gracefulFs.chmodSync,
908
- stat: gracefulFs.stat,
909
- statSync: gracefulFs.statSync,
910
- lstat: gracefulFs.lstat,
911
- lstatSync: gracefulFs.lstatSync,
912
- rmdir: gracefulFs.rmdir,
913
- rmdirSync: gracefulFs.rmdirSync,
914
- readdir: gracefulFs.readdir,
915
- readdirSync: gracefulFs.readdirSync
916
- };
917
- function safeCheck(file, cwd) {
918
- if (isPathCwd(file))
919
- throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");
920
- if (!isPathInside(file, cwd))
921
- throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.");
922
- }
923
- function normalizePatterns(patterns) {
924
- return patterns = Array.isArray(patterns) ? patterns : [patterns], patterns = patterns.map((pattern) => process.platform === "win32" && isGlob(pattern) === !1 ? slash(pattern) : pattern), patterns;
925
- }
926
- module.exports = async (patterns, { force, dryRun, cwd = process.cwd(), onProgress = () => {
927
- }, ...options } = {}) => {
928
- options = {
929
- expandDirectories: !1,
930
- onlyFiles: !1,
931
- followSymbolicLinks: !1,
932
- cwd,
933
- ...options
934
- }, patterns = normalizePatterns(patterns);
935
- let files = (await globby(patterns, options)).sort((a, b) => b.localeCompare(a));
936
- files.length === 0 && onProgress({
937
- totalCount: 0,
938
- deletedCount: 0,
939
- percent: 1
940
- });
941
- let deletedCount = 0, removedFiles = await pMap(files, async (file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || await rimrafP(file, rimrafOptions), deletedCount += 1, onProgress({
942
- totalCount: files.length,
943
- deletedCount,
944
- percent: deletedCount / files.length
945
- }), file), options);
946
- return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
947
- };
948
- module.exports.sync = (patterns, { force, dryRun, cwd = process.cwd(), ...options } = {}) => {
949
- options = {
950
- expandDirectories: !1,
951
- onlyFiles: !1,
952
- followSymbolicLinks: !1,
953
- cwd,
954
- ...options
955
- }, patterns = normalizePatterns(patterns);
956
- let removedFiles = globby.sync(patterns, options).sort((a, b) => b.localeCompare(a)).map((file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || rimraf.sync(file, rimrafOptions), file));
957
- return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
958
- };
959
- }
960
- });
961
- export default require_del();
962
- //# sourceMappingURL=del-SAZHGAZZ.js.map
597
+ export {
598
+ require_slash,
599
+ require_globby
600
+ };
601
+ //# sourceMappingURL=chunk-EFOOQV72.js.map