@prisma/internals 6.19.0-integration-next.22 → 6.20.0-integration-next.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 (60) hide show
  1. package/dist/{chunk-DOO45FN6.js → chunk-22HIO2UL.js} +7 -7
  2. package/dist/{chunk-G4R3KIUK.js → chunk-24ZPBDBI.js} +8 -8
  3. package/dist/{chunk-2KREE2OX.js → chunk-2Q43C56O.js} +5 -5
  4. package/dist/{chunk-6FP5PMMX.js → chunk-3L2WF742.js} +5 -5
  5. package/dist/{chunk-MEBZK5AR.js → chunk-3ZWEK4N6.js} +5 -5
  6. package/dist/{chunk-BKHAMV6G.js → chunk-6AA7BHPW.js} +5 -5
  7. package/dist/{chunk-UCO5QBOS.js → chunk-73HXEN2A.js} +5 -5
  8. package/dist/{chunk-HQE53CGA.js → chunk-7FBMZKZS.js} +7 -7
  9. package/dist/{chunk-5B5U2HVK.js → chunk-B2BNIZB2.js} +4 -4
  10. package/dist/{chunk-IU77SCOB.js → chunk-BM3JIFQT.js} +5 -5
  11. package/dist/{chunk-6QTJ35DP.js → chunk-C5YUUOQW.js} +8 -8
  12. package/dist/{chunk-HBU4ZVCA.js → chunk-DQV64JMK.js} +8 -8
  13. package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
  14. package/dist/{chunk-SU3YFXA4.js → chunk-GH4UGGRD.js} +5 -5
  15. package/dist/{chunk-4YDN7W7B.js → chunk-H5STSTVK.js} +5 -5
  16. package/dist/{chunk-3CAPLXKF.js → chunk-HNRMSI3R.js} +4 -4
  17. package/dist/{chunk-EK3NXGEC.js → chunk-KGES6NIS.js} +20 -43
  18. package/dist/{chunk-33FYCEWF.js → chunk-LA5QBRTU.js} +8 -8
  19. package/dist/{chunk-STBFWZNS.js → chunk-MGIYZQLY.js} +5 -5
  20. package/dist/{chunk-MXAUURHG.js → chunk-MLFKBBDL.js} +5 -5
  21. package/dist/{chunk-2LOGW45F.js → chunk-QOZ7USPD.js} +128 -129
  22. package/dist/{chunk-32LLAKF4.js → chunk-QSVWJ2S2.js} +7 -7
  23. package/dist/{chunk-25ON3V6C.js → chunk-RHMWJEBL.js} +5 -5
  24. package/dist/{chunk-UB2X7DGZ.js → chunk-SMJRM3EM.js} +9 -9
  25. package/dist/{chunk-A547MKQQ.js → chunk-UR5IPQXA.js} +8 -8
  26. package/dist/{chunk-W6ZWX546.js → chunk-VFU3QB5Z.js} +20 -43
  27. package/dist/{chunk-KZ5SMOBR.js → chunk-VFZCLI5X.js} +5 -5
  28. package/dist/{chunk-AZFHZFLX.js → chunk-VHE2A7YV.js} +7 -7
  29. package/dist/{chunk-IHC4ZVPQ.js → chunk-WJKBKH3Y.js} +5 -5
  30. package/dist/{chunk-TU4SG3WD.js → chunk-ZUKCLMNA.js} +8 -8
  31. package/dist/cli/checkUnsupportedDataProxy.js +36 -37
  32. package/dist/cli/schemaContext.js +36 -37
  33. package/dist/engine-commands/errorHelpers.js +4 -4
  34. package/dist/engine-commands/formatSchema.js +35 -36
  35. package/dist/engine-commands/getConfig.js +10 -10
  36. package/dist/engine-commands/getDmmf.js +7 -7
  37. package/dist/engine-commands/getEngineVersion.js +5 -5
  38. package/dist/engine-commands/getEnginesInfo.js +6 -6
  39. package/dist/engine-commands/index.js +47 -48
  40. package/dist/engine-commands/lintSchema.js +8 -8
  41. package/dist/engine-commands/mergeSchemas.js +7 -7
  42. package/dist/engine-commands/validate.js +7 -7
  43. package/dist/get-generators/getGenerators.js +38 -39
  44. package/dist/getPackedPackage.js +3 -3
  45. package/dist/index.d.ts +0 -2
  46. package/dist/index.js +68 -71
  47. package/dist/resolveBinary.js +7 -7
  48. package/dist/schemaEngineCommands.js +8 -8
  49. package/dist/utils/canPrompt.js +3 -3
  50. package/dist/utils/fs-functional.js +10 -10
  51. package/dist/utils/fs-utils.js +8 -8
  52. package/dist/utils/getVersionFromPackageJson.js +3 -3
  53. package/dist/utils/handlePanic.js +4 -4
  54. package/dist/wasm.js +5 -5
  55. package/package.json +12 -12
  56. package/dist/chunk-IRWX4FCC.js +0 -66
  57. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +0 -22
  58. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +0 -129
  59. package/dist/utils/cloudflareD1.d.ts +0 -5
  60. package/dist/utils/cloudflareD1.js +0 -27
@@ -26,11 +26,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_EK3NXGEC_exports = {};
30
- __export(chunk_EK3NXGEC_exports, {
29
+ var chunk_KGES6NIS_exports = {};
30
+ __export(chunk_KGES6NIS_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
- checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
33
- forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
34
32
  forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
35
33
  formatSchema: () => formatSchema,
36
34
  getBinaryTargetForCurrentPlatform: () => import_get_platform2.getBinaryTargetForCurrentPlatform,
@@ -41,29 +39,29 @@ __export(chunk_EK3NXGEC_exports, {
41
39
  processSchemaResult: () => processSchemaResult,
42
40
  skipIndex: () => skipIndex
43
41
  });
44
- module.exports = __toCommonJS(chunk_EK3NXGEC_exports);
45
- var import_chunk_5MHUYAV3 = require("./chunk-5MHUYAV3.js");
46
- var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
42
+ module.exports = __toCommonJS(chunk_KGES6NIS_exports);
47
43
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
44
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
45
+ var import_chunk_5MHUYAV3 = require("./chunk-5MHUYAV3.js");
46
+ var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
49
47
  var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
50
48
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
51
49
  var import_chunk_MYLPCGTT = require("./chunk-MYLPCGTT.js");
52
50
  var import_chunk_TGA7DC5A = require("./chunk-TGA7DC5A.js");
53
51
  var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
54
52
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
55
- var import_chunk_G4R3KIUK = require("./chunk-G4R3KIUK.js");
56
- var import_chunk_UCO5QBOS = require("./chunk-UCO5QBOS.js");
57
- var import_chunk_AZFHZFLX = require("./chunk-AZFHZFLX.js");
58
- var import_chunk_A547MKQQ = require("./chunk-A547MKQQ.js");
59
- var import_chunk_STBFWZNS = require("./chunk-STBFWZNS.js");
53
+ var import_chunk_73HXEN2A = require("./chunk-73HXEN2A.js");
54
+ var import_chunk_VHE2A7YV = require("./chunk-VHE2A7YV.js");
55
+ var import_chunk_LA5QBRTU = require("./chunk-LA5QBRTU.js");
56
+ var import_chunk_24ZPBDBI = require("./chunk-24ZPBDBI.js");
57
+ var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.js");
60
58
  var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
61
59
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
62
60
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
63
61
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
64
62
  var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
65
63
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
66
- var import_chunk_32LLAKF4 = require("./chunk-32LLAKF4.js");
64
+ var import_chunk_QSVWJ2S2 = require("./chunk-QSVWJ2S2.js");
67
65
  var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
68
66
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
69
67
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -74,32 +72,11 @@ var import_engines = require("@prisma/engines");
74
72
  var import_get_platform = require("@prisma/get-platform");
75
73
  var import_path2 = __toESM(require("path"));
76
74
  var import_get_platform2 = require("@prisma/get-platform");
77
- var forbiddenCmdFlagWithSchemaEngineWasm = ({ cmd, flag }) => `
78
- Passing the ${(0, import_chunk_PG5FDKSF.green)(`${flag}`)} flag to the ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} command is not supported when
79
- defining an ${(0, import_chunk_PG5FDKSF.green)(`adapter`)} in Prisma config file (e.g., ${(0, import_chunk_PG5FDKSF.green)(`\`prisma.config.ts\``)}).
80
-
81
- More information about this limitation: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/schema-engine-limitations")}
82
- `;
83
- function checkUnsupportedSchemaEngineWasm({
84
- cmd,
85
- config,
86
- args,
87
- flags
88
- }) {
89
- if (config.engine !== "js") {
90
- return;
91
- }
92
- for (const flag of flags) {
93
- if (args[flag] !== void 0) {
94
- throw new Error(forbiddenCmdFlagWithSchemaEngineWasm({ cmd, flag }));
95
- }
96
- }
97
- }
98
75
  var debug = (0, import_debug.default)("prisma:format");
99
76
  async function formatSchema({ schemas }, inputFormattingOptions) {
100
77
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
101
78
  handleFormatPanic(() => {
102
- import_chunk_STBFWZNS.prismaSchemaWasm.debug_panic();
79
+ import_chunk_3ZWEK4N6.prismaSchemaWasm.debug_panic();
103
80
  });
104
81
  }
105
82
  const defaultFormattingOptions = {
@@ -116,10 +93,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
116
93
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
117
94
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
118
95
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
119
- const lintDiagnostics2 = (0, import_chunk_UCO5QBOS.lintSchema)({ schemas: formattedMultipleSchemas2 });
96
+ const lintDiagnostics2 = (0, import_chunk_73HXEN2A.lintSchema)({ schemas: formattedMultipleSchemas2 });
120
97
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
121
98
  });
122
- const lintWarnings = (0, import_chunk_UCO5QBOS.getLintWarningsAsText)(lintDiagnostics);
99
+ const lintWarnings = (0, import_chunk_73HXEN2A.getLintWarningsAsText)(lintDiagnostics);
123
100
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
124
101
  console.warn(lintWarnings);
125
102
  }
@@ -146,7 +123,7 @@ function handleFormatPanic(tryCb) {
146
123
  }
147
124
  }
148
125
  function formatWasm(schema, documentFormattingParams) {
149
- const formattedSchema = import_chunk_STBFWZNS.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
126
+ const formattedSchema = import_chunk_3ZWEK4N6.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
150
127
  return formattedSchema;
151
128
  }
152
129
  async function loadSchemaContext({
@@ -184,7 +161,7 @@ async function processSchemaResult({
184
161
  if (printLoadMessage) {
185
162
  (0, import_chunk_OKVM3CW4.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
186
163
  }
187
- const configFromPsl = await (0, import_chunk_A547MKQQ.getConfig)({ datamodel: schemaResult.schemas });
164
+ const configFromPsl = await (0, import_chunk_LA5QBRTU.getConfig)({ datamodel: schemaResult.schemas });
188
165
  const datasourceFromPsl = configFromPsl.datasources.at(0);
189
166
  const primaryDatasource = (0, import_chunk_XKZ6CBLA.z)(schemaEngineConfig).with({ engine: "classic" }, ({ datasource }) => {
190
167
  const { url, directUrl, shadowDatabaseUrl } = datasource;
@@ -217,7 +194,7 @@ function getPrimaryDatasourceDirectory(primaryDatasource) {
217
194
  }
218
195
  return null;
219
196
  }
220
- var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_32LLAKF4.require_p_map)());
197
+ var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_QSVWJ2S2.require_p_map)());
221
198
  var debug2 = (0, import_debug2.default)("prisma:getGenerators");
222
199
  async function getGenerators(options) {
223
200
  if (options.registry === void 0 && options.providerAliases !== void 0) {
@@ -254,7 +231,7 @@ async function getGenerators(options) {
254
231
  }
255
232
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
256
233
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
257
- const dmmf = await (0, import_chunk_G4R3KIUK.getDMMF)({
234
+ const dmmf = await (0, import_chunk_24ZPBDBI.getDMMF)({
258
235
  datamodel: schemaContext.schemaFiles,
259
236
  previewFeatures
260
237
  });
@@ -305,7 +282,7 @@ You need to define \`output\` in the generator block in the schema file.`
305
282
  fromEnvVar: null
306
283
  };
307
284
  }
308
- const datamodel = (0, import_chunk_AZFHZFLX.mergeSchemas)({ schemas: schemaContext.schemaFiles });
285
+ const datamodel = (0, import_chunk_VHE2A7YV.mergeSchemas)({ schemas: schemaContext.schemaFiles });
309
286
  const options2 = {
310
287
  datamodel,
311
288
  datasources: schemaContext.datasources,
@@ -491,7 +468,7 @@ function checkUnsupportedDataProxy({
491
468
  }
492
469
  }
493
470
  if (!schemaContext?.primaryDatasource) return;
494
- const url = (0, import_chunk_A547MKQQ.resolveUrl)((0, import_chunk_A547MKQQ.getEffectiveUrl)(schemaContext.primaryDatasource));
471
+ const url = (0, import_chunk_LA5QBRTU.resolveUrl)((0, import_chunk_LA5QBRTU.getEffectiveUrl)(schemaContext.primaryDatasource));
495
472
  if (url?.startsWith("prisma://")) {
496
473
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
497
474
  }
@@ -26,20 +26,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_33FYCEWF_exports = {};
30
- __export(chunk_33FYCEWF_exports, {
29
+ var chunk_LA5QBRTU_exports = {};
30
+ __export(chunk_LA5QBRTU_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_33FYCEWF_exports);
37
+ module.exports = __toCommonJS(chunk_LA5QBRTU_exports);
38
38
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
39
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
40
40
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_2KREE2OX = require("./chunk-2KREE2OX.js");
42
- var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
41
+ var import_chunk_2Q43C56O = require("./chunk-2Q43C56O.js");
42
+ var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_2KREE2OX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_2Q43C56O.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,10 +89,10 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_MEBZK5AR.prismaSchemaWasm.debug_panic();
92
+ import_chunk_3ZWEK4N6.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({ prismaSchema: options.datamodel });
95
- return import_chunk_MEBZK5AR.prismaSchemaWasm.get_config(params);
95
+ return import_chunk_3ZWEK4N6.prismaSchemaWasm.get_config(params);
96
96
  },
97
97
  (e) => ({
98
98
  type: "wasm-error",
@@ -26,15 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_STBFWZNS_exports = {};
30
- __export(chunk_STBFWZNS_exports, {
29
+ var chunk_MGIYZQLY_exports = {};
30
+ __export(chunk_MGIYZQLY_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  schemaEngineWasmVersion: () => schemaEngineWasmVersion,
34
34
  wasm_exports: () => wasm_exports
35
35
  });
36
- module.exports = __toCommonJS(chunk_STBFWZNS_exports);
37
- var import_chunk_BKHAMV6G = require("./chunk-BKHAMV6G.js");
36
+ module.exports = __toCommonJS(chunk_MGIYZQLY_exports);
37
+ var import_chunk_6AA7BHPW = require("./chunk-6AA7BHPW.js");
38
38
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -46,6 +46,6 @@ var wasm_exports = {};
46
46
  });
47
47
  var globalWithPanicRegistry = globalThis;
48
48
  globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
49
- var { dependencies } = (0, import_chunk_BKHAMV6G.require_package)();
49
+ var { dependencies } = (0, import_chunk_6AA7BHPW.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_MXAUURHG_exports = {};
30
- __export(chunk_MXAUURHG_exports, {
29
+ var chunk_MLFKBBDL_exports = {};
30
+ __export(chunk_MLFKBBDL_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists,
32
32
  fs_utils_exports: () => fs_utils_exports,
33
33
  getFilesInDir: () => getFilesInDir,
@@ -36,9 +36,9 @@ __export(chunk_MXAUURHG_exports, {
36
36
  removeEmptyDirs: () => removeEmptyDirs,
37
37
  writeFile: () => writeFile
38
38
  });
39
- module.exports = __toCommonJS(chunk_MXAUURHG_exports);
39
+ module.exports = __toCommonJS(chunk_MLFKBBDL_exports);
40
40
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
41
- var import_chunk_2LOGW45F = require("./chunk-2LOGW45F.js");
41
+ var import_chunk_QOZ7USPD = require("./chunk-QOZ7USPD.js");
42
42
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
43
43
  var import_promises = __toESM(require("fs/promises"));
44
44
  var import_path = __toESM(require("path"));
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
51
51
  removeEmptyDirs: () => removeEmptyDirs,
52
52
  writeFile: () => writeFile
53
53
  });
54
- var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_2LOGW45F.require_globby)());
54
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_QOZ7USPD.require_globby)());
55
55
  function createDirIfNotExists(dir) {
56
56
  return import_promises.default.mkdir(dir, { recursive: true });
57
57
  }
@@ -16,15 +16,139 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_2LOGW45F_exports = {};
20
- __export(chunk_2LOGW45F_exports, {
19
+ var chunk_QOZ7USPD_exports = {};
20
+ __export(chunk_QOZ7USPD_exports, {
21
21
  require_globby: () => require_globby,
22
22
  require_is_glob: () => require_is_glob,
23
- require_out: () => require_out4,
24
23
  require_slash: () => require_slash
25
24
  });
26
- module.exports = __toCommonJS(chunk_2LOGW45F_exports);
25
+ module.exports = __toCommonJS(chunk_QOZ7USPD_exports);
27
26
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
27
+ var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
28
+ "../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
29
+ "use strict";
30
+ module2.exports = (...arguments_) => {
31
+ return [...new Set([].concat(...arguments_))];
32
+ };
33
+ }
34
+ });
35
+ var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
36
+ "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
37
+ "use strict";
38
+ var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
39
+ var PassThrough = Stream.PassThrough;
40
+ var slice = Array.prototype.slice;
41
+ module2.exports = merge2;
42
+ function merge2() {
43
+ const streamsQueue = [];
44
+ const args = slice.call(arguments);
45
+ let merging = false;
46
+ let options = args[args.length - 1];
47
+ if (options && !Array.isArray(options) && options.pipe == null) {
48
+ args.pop();
49
+ } else {
50
+ options = {};
51
+ }
52
+ const doEnd = options.end !== false;
53
+ const doPipeError = options.pipeError === true;
54
+ if (options.objectMode == null) {
55
+ options.objectMode = true;
56
+ }
57
+ if (options.highWaterMark == null) {
58
+ options.highWaterMark = 64 * 1024;
59
+ }
60
+ const mergedStream = PassThrough(options);
61
+ function addStream() {
62
+ for (let i = 0, len = arguments.length; i < len; i++) {
63
+ streamsQueue.push(pauseStreams(arguments[i], options));
64
+ }
65
+ mergeStream();
66
+ return this;
67
+ }
68
+ function mergeStream() {
69
+ if (merging) {
70
+ return;
71
+ }
72
+ merging = true;
73
+ let streams = streamsQueue.shift();
74
+ if (!streams) {
75
+ process.nextTick(endStream);
76
+ return;
77
+ }
78
+ if (!Array.isArray(streams)) {
79
+ streams = [streams];
80
+ }
81
+ let pipesCount = streams.length + 1;
82
+ function next() {
83
+ if (--pipesCount > 0) {
84
+ return;
85
+ }
86
+ merging = false;
87
+ mergeStream();
88
+ }
89
+ function pipe(stream) {
90
+ function onend() {
91
+ stream.removeListener("merge2UnpipeEnd", onend);
92
+ stream.removeListener("end", onend);
93
+ if (doPipeError) {
94
+ stream.removeListener("error", onerror);
95
+ }
96
+ next();
97
+ }
98
+ function onerror(err) {
99
+ mergedStream.emit("error", err);
100
+ }
101
+ if (stream._readableState.endEmitted) {
102
+ return next();
103
+ }
104
+ stream.on("merge2UnpipeEnd", onend);
105
+ stream.on("end", onend);
106
+ if (doPipeError) {
107
+ stream.on("error", onerror);
108
+ }
109
+ stream.pipe(mergedStream, { end: false });
110
+ stream.resume();
111
+ }
112
+ for (let i = 0; i < streams.length; i++) {
113
+ pipe(streams[i]);
114
+ }
115
+ next();
116
+ }
117
+ function endStream() {
118
+ merging = false;
119
+ mergedStream.emit("queueDrain");
120
+ if (doEnd) {
121
+ mergedStream.end();
122
+ }
123
+ }
124
+ mergedStream.setMaxListeners(0);
125
+ mergedStream.add = addStream;
126
+ mergedStream.on("unpipe", function(stream) {
127
+ stream.emit("merge2UnpipeEnd");
128
+ });
129
+ if (args.length) {
130
+ addStream.apply(null, args);
131
+ }
132
+ return mergedStream;
133
+ }
134
+ function pauseStreams(streams, options) {
135
+ if (!Array.isArray(streams)) {
136
+ if (!streams._readableState && streams.pipe) {
137
+ streams = streams.pipe(PassThrough(options));
138
+ }
139
+ if (!streams._readableState || !streams.pause || !streams.pipe) {
140
+ throw new Error("Only readable stream can be merged.");
141
+ }
142
+ streams.pause();
143
+ } else {
144
+ for (let i = 0, len = streams.length; i < len; i++) {
145
+ streams[i] = pauseStreams(streams[i], options);
146
+ }
147
+ }
148
+ return streams;
149
+ }
150
+ }
151
+ });
28
152
  var require_array = (0, import_chunk_4VNS5WPM.__commonJS)({
29
153
  "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
30
154
  "use strict";
@@ -3190,123 +3314,6 @@ var require_pattern = (0, import_chunk_4VNS5WPM.__commonJS)({
3190
3314
  exports.isAbsolute = isAbsolute;
3191
3315
  }
3192
3316
  });
3193
- var require_merge2 = (0, import_chunk_4VNS5WPM.__commonJS)({
3194
- "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) {
3195
- "use strict";
3196
- var Stream = (0, import_chunk_4VNS5WPM.__require)("stream");
3197
- var PassThrough = Stream.PassThrough;
3198
- var slice = Array.prototype.slice;
3199
- module2.exports = merge2;
3200
- function merge2() {
3201
- const streamsQueue = [];
3202
- const args = slice.call(arguments);
3203
- let merging = false;
3204
- let options = args[args.length - 1];
3205
- if (options && !Array.isArray(options) && options.pipe == null) {
3206
- args.pop();
3207
- } else {
3208
- options = {};
3209
- }
3210
- const doEnd = options.end !== false;
3211
- const doPipeError = options.pipeError === true;
3212
- if (options.objectMode == null) {
3213
- options.objectMode = true;
3214
- }
3215
- if (options.highWaterMark == null) {
3216
- options.highWaterMark = 64 * 1024;
3217
- }
3218
- const mergedStream = PassThrough(options);
3219
- function addStream() {
3220
- for (let i = 0, len = arguments.length; i < len; i++) {
3221
- streamsQueue.push(pauseStreams(arguments[i], options));
3222
- }
3223
- mergeStream();
3224
- return this;
3225
- }
3226
- function mergeStream() {
3227
- if (merging) {
3228
- return;
3229
- }
3230
- merging = true;
3231
- let streams = streamsQueue.shift();
3232
- if (!streams) {
3233
- process.nextTick(endStream);
3234
- return;
3235
- }
3236
- if (!Array.isArray(streams)) {
3237
- streams = [streams];
3238
- }
3239
- let pipesCount = streams.length + 1;
3240
- function next() {
3241
- if (--pipesCount > 0) {
3242
- return;
3243
- }
3244
- merging = false;
3245
- mergeStream();
3246
- }
3247
- function pipe(stream) {
3248
- function onend() {
3249
- stream.removeListener("merge2UnpipeEnd", onend);
3250
- stream.removeListener("end", onend);
3251
- if (doPipeError) {
3252
- stream.removeListener("error", onerror);
3253
- }
3254
- next();
3255
- }
3256
- function onerror(err) {
3257
- mergedStream.emit("error", err);
3258
- }
3259
- if (stream._readableState.endEmitted) {
3260
- return next();
3261
- }
3262
- stream.on("merge2UnpipeEnd", onend);
3263
- stream.on("end", onend);
3264
- if (doPipeError) {
3265
- stream.on("error", onerror);
3266
- }
3267
- stream.pipe(mergedStream, { end: false });
3268
- stream.resume();
3269
- }
3270
- for (let i = 0; i < streams.length; i++) {
3271
- pipe(streams[i]);
3272
- }
3273
- next();
3274
- }
3275
- function endStream() {
3276
- merging = false;
3277
- mergedStream.emit("queueDrain");
3278
- if (doEnd) {
3279
- mergedStream.end();
3280
- }
3281
- }
3282
- mergedStream.setMaxListeners(0);
3283
- mergedStream.add = addStream;
3284
- mergedStream.on("unpipe", function(stream) {
3285
- stream.emit("merge2UnpipeEnd");
3286
- });
3287
- if (args.length) {
3288
- addStream.apply(null, args);
3289
- }
3290
- return mergedStream;
3291
- }
3292
- function pauseStreams(streams, options) {
3293
- if (!Array.isArray(streams)) {
3294
- if (!streams._readableState && streams.pipe) {
3295
- streams = streams.pipe(PassThrough(options));
3296
- }
3297
- if (!streams._readableState || !streams.pause || !streams.pipe) {
3298
- throw new Error("Only readable stream can be merged.");
3299
- }
3300
- streams.pause();
3301
- } else {
3302
- for (let i = 0, len = streams.length; i < len; i++) {
3303
- streams[i] = pauseStreams(streams[i], options);
3304
- }
3305
- }
3306
- return streams;
3307
- }
3308
- }
3309
- });
3310
3317
  var require_stream = (0, import_chunk_4VNS5WPM.__commonJS)({
3311
3318
  "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
3312
3319
  "use strict";
@@ -5372,14 +5379,6 @@ var require_out4 = (0, import_chunk_4VNS5WPM.__commonJS)({
5372
5379
  module2.exports = FastGlob;
5373
5380
  }
5374
5381
  });
5375
- var require_array_union = (0, import_chunk_4VNS5WPM.__commonJS)({
5376
- "../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
5377
- "use strict";
5378
- module2.exports = (...arguments_) => {
5379
- return [...new Set([].concat(...arguments_))];
5380
- };
5381
- }
5382
- });
5383
5382
  var require_path_type = (0, import_chunk_4VNS5WPM.__commonJS)({
5384
5383
  "../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(exports) {
5385
5384
  "use strict";
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_32LLAKF4_exports = {};
30
- __export(chunk_32LLAKF4_exports, {
29
+ var chunk_QSVWJ2S2_exports = {};
30
+ __export(chunk_QSVWJ2S2_exports, {
31
31
  getPackedPackage: () => getPackedPackage,
32
32
  require_p_map: () => require_p_map
33
33
  });
34
- module.exports = __toCommonJS(chunk_32LLAKF4_exports);
34
+ module.exports = __toCommonJS(chunk_QSVWJ2S2_exports);
35
35
  var import_chunk_KDP6C3CB = require("./chunk-KDP6C3CB.js");
36
- var import_chunk_2LOGW45F = require("./chunk-2LOGW45F.js");
36
+ var import_chunk_QOZ7USPD = require("./chunk-QOZ7USPD.js");
37
37
  var import_chunk_UMM35VP5 = require("./chunk-UMM35VP5.js");
38
38
  var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
39
39
  var import_chunk_DYV47NUW = require("./chunk-DYV47NUW.js");
@@ -5483,9 +5483,9 @@ var require_del = (0, import_chunk_4VNS5WPM.__commonJS)({
5483
5483
  "use strict";
5484
5484
  var { promisify } = (0, import_chunk_4VNS5WPM.__require)("util");
5485
5485
  var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
5486
- var globby = (0, import_chunk_2LOGW45F.require_globby)();
5487
- var isGlob = (0, import_chunk_2LOGW45F.require_is_glob)();
5488
- var slash = (0, import_chunk_2LOGW45F.require_slash)();
5486
+ var globby = (0, import_chunk_QOZ7USPD.require_globby)();
5487
+ var isGlob = (0, import_chunk_QOZ7USPD.require_is_glob)();
5488
+ var slash = (0, import_chunk_QOZ7USPD.require_slash)();
5489
5489
  var gracefulFs = (0, import_chunk_DYV47NUW.require_graceful_fs)();
5490
5490
  var isPathCwd = require_is_path_cwd();
5491
5491
  var isPathInside = require_is_path_inside();
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_25ON3V6C_exports = {};
20
- __export(chunk_25ON3V6C_exports, {
19
+ var chunk_RHMWJEBL_exports = {};
20
+ __export(chunk_RHMWJEBL_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_25ON3V6C_exports);
24
- var import_chunk_BKHAMV6G = require("./chunk-BKHAMV6G.js");
25
- var packageJson = (0, import_chunk_BKHAMV6G.require_package)();
23
+ module.exports = __toCommonJS(chunk_RHMWJEBL_exports);
24
+ var import_chunk_6AA7BHPW = require("./chunk-6AA7BHPW.js");
25
+ var packageJson = (0, import_chunk_6AA7BHPW.require_package)();
26
26
  var version = packageJson.version;
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_UB2X7DGZ_exports = {};
30
- __export(chunk_UB2X7DGZ_exports, {
29
+ var chunk_SMJRM3EM_exports = {};
30
+ __export(chunk_SMJRM3EM_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists2,
32
32
  fs_functional_exports: () => fs_functional_exports,
33
33
  getFilesInDir: () => getFilesInDir2,
@@ -37,8 +37,8 @@ __export(chunk_UB2X7DGZ_exports, {
37
37
  removeFile: () => removeFile,
38
38
  writeFile: () => writeFile2
39
39
  });
40
- module.exports = __toCommonJS(chunk_UB2X7DGZ_exports);
41
- var import_chunk_MXAUURHG = require("./chunk-MXAUURHG.js");
40
+ module.exports = __toCommonJS(chunk_SMJRM3EM_exports);
41
+ var import_chunk_MLFKBBDL = require("./chunk-MLFKBBDL.js");
42
42
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
43
43
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
44
44
  var import_promises = __toESM(require("fs/promises"));
@@ -3981,13 +3981,13 @@ var fs_functional_exports = {};
3981
3981
  });
3982
3982
  var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
3983
3983
  var TE = (0, import_chunk_4VNS5WPM.__toESM)(require_TaskEither());
3984
- var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_MXAUURHG.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
- var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_MXAUURHG.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
- var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_MXAUURHG.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3984
+ var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_MLFKBBDL.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
+ var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_MLFKBBDL.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
+ var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_MLFKBBDL.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3987
3987
  var removeDir = (dir) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.rm(dir, { recursive: true }), createTaggedSystemError("fs-remove-dir", { dir })));
3988
3988
  var removeFile = (filePath) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.unlink(filePath), createTaggedSystemError("fs-remove-file", { filePath })));
3989
- var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_MXAUURHG.getNestedFoldersInDir)(dir);
3990
- var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_MXAUURHG.getFilesInDir)(dir, pattern);
3989
+ var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_MLFKBBDL.getNestedFoldersInDir)(dir);
3990
+ var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_MLFKBBDL.getFilesInDir)(dir, pattern);
3991
3991
  function createTaggedSystemError(type, meta) {
3992
3992
  return (e) => ({
3993
3993
  type,