@bfra.me/eslint-config 0.13.0 → 0.15.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.
@@ -0,0 +1,45 @@
1
+ import {createRequire} from 'node:module';const require=createRequire(import.meta.url);
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ }) : x)(function(x) {
12
+ if (typeof require !== "undefined") return require.apply(this, arguments);
13
+ throw Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __esm = (fn, res) => function __init() {
16
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
17
+ };
18
+ var __commonJS = (cb, mod) => function __require2() {
19
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
20
+ };
21
+ var __copyProps = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") {
23
+ for (let key of __getOwnPropNames(from))
24
+ if (!__hasOwnProp.call(to, key) && key !== except)
25
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
+ }
27
+ return to;
28
+ };
29
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
30
+ // If the importer is in node compatibility mode or this is not an ESM
31
+ // file that has been converted to a CommonJS file using a Babel-
32
+ // compatible transform (i.e. "__esModule" has not been set), then set
33
+ // "default" to the CommonJS "module.exports" for node compatibility.
34
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
35
+ mod
36
+ ));
37
+
38
+ export {
39
+ __name,
40
+ __require,
41
+ __esm,
42
+ __commonJS,
43
+ __toESM
44
+ };
45
+ //# sourceMappingURL=chunk-2DF4X446.js.map
@@ -0,0 +1,548 @@
1
+ import {createRequire} from 'node:module';const require=createRequire(import.meta.url);
2
+ import {
3
+ __commonJS,
4
+ __name,
5
+ __require
6
+ } from "./chunk-2DF4X446.js";
7
+
8
+ // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
9
+ var require_windows = __commonJS({
10
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
11
+ "use strict";
12
+ module.exports = isexe;
13
+ isexe.sync = sync;
14
+ var fs = __require("fs");
15
+ function checkPathExt(path, options) {
16
+ var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
17
+ if (!pathext) {
18
+ return true;
19
+ }
20
+ pathext = pathext.split(";");
21
+ if (pathext.indexOf("") !== -1) {
22
+ return true;
23
+ }
24
+ for (var i = 0; i < pathext.length; i++) {
25
+ var p = pathext[i].toLowerCase();
26
+ if (p && path.substr(-p.length).toLowerCase() === p) {
27
+ return true;
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ __name(checkPathExt, "checkPathExt");
33
+ function checkStat(stat, path, options) {
34
+ if (!stat.isSymbolicLink() && !stat.isFile()) {
35
+ return false;
36
+ }
37
+ return checkPathExt(path, options);
38
+ }
39
+ __name(checkStat, "checkStat");
40
+ function isexe(path, options, cb) {
41
+ fs.stat(path, function(er, stat) {
42
+ cb(er, er ? false : checkStat(stat, path, options));
43
+ });
44
+ }
45
+ __name(isexe, "isexe");
46
+ function sync(path, options) {
47
+ return checkStat(fs.statSync(path), path, options);
48
+ }
49
+ __name(sync, "sync");
50
+ }
51
+ });
52
+
53
+ // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
54
+ var require_mode = __commonJS({
55
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
56
+ "use strict";
57
+ module.exports = isexe;
58
+ isexe.sync = sync;
59
+ var fs = __require("fs");
60
+ function isexe(path, options, cb) {
61
+ fs.stat(path, function(er, stat) {
62
+ cb(er, er ? false : checkStat(stat, options));
63
+ });
64
+ }
65
+ __name(isexe, "isexe");
66
+ function sync(path, options) {
67
+ return checkStat(fs.statSync(path), options);
68
+ }
69
+ __name(sync, "sync");
70
+ function checkStat(stat, options) {
71
+ return stat.isFile() && checkMode(stat, options);
72
+ }
73
+ __name(checkStat, "checkStat");
74
+ function checkMode(stat, options) {
75
+ var mod = stat.mode;
76
+ var uid = stat.uid;
77
+ var gid = stat.gid;
78
+ var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
79
+ var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
80
+ var u = parseInt("100", 8);
81
+ var g = parseInt("010", 8);
82
+ var o = parseInt("001", 8);
83
+ var ug = u | g;
84
+ var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
85
+ return ret;
86
+ }
87
+ __name(checkMode, "checkMode");
88
+ }
89
+ });
90
+
91
+ // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
92
+ var require_isexe = __commonJS({
93
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
94
+ "use strict";
95
+ var fs = __require("fs");
96
+ var core;
97
+ if (process.platform === "win32" || global.TESTING_WINDOWS) {
98
+ core = require_windows();
99
+ } else {
100
+ core = require_mode();
101
+ }
102
+ module.exports = isexe;
103
+ isexe.sync = sync;
104
+ function isexe(path, options, cb) {
105
+ if (typeof options === "function") {
106
+ cb = options;
107
+ options = {};
108
+ }
109
+ if (!cb) {
110
+ if (typeof Promise !== "function") {
111
+ throw new TypeError("callback not provided");
112
+ }
113
+ return new Promise(function(resolve, reject) {
114
+ isexe(path, options || {}, function(er, is) {
115
+ if (er) {
116
+ reject(er);
117
+ } else {
118
+ resolve(is);
119
+ }
120
+ });
121
+ });
122
+ }
123
+ core(path, options || {}, function(er, is) {
124
+ if (er) {
125
+ if (er.code === "EACCES" || options && options.ignoreErrors) {
126
+ er = null;
127
+ is = false;
128
+ }
129
+ }
130
+ cb(er, is);
131
+ });
132
+ }
133
+ __name(isexe, "isexe");
134
+ function sync(path, options) {
135
+ try {
136
+ return core.sync(path, options || {});
137
+ } catch (er) {
138
+ if (options && options.ignoreErrors || er.code === "EACCES") {
139
+ return false;
140
+ } else {
141
+ throw er;
142
+ }
143
+ }
144
+ }
145
+ __name(sync, "sync");
146
+ }
147
+ });
148
+
149
+ // ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
150
+ var require_which = __commonJS({
151
+ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
152
+ "use strict";
153
+ var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
154
+ var path = __require("path");
155
+ var COLON = isWindows ? ";" : ":";
156
+ var isexe = require_isexe();
157
+ var getNotFoundError = /* @__PURE__ */ __name((cmd) => Object.assign(new Error(`not found: ${cmd}`), {
158
+ code: "ENOENT"
159
+ }), "getNotFoundError");
160
+ var getPathInfo = /* @__PURE__ */ __name((cmd, opt) => {
161
+ const colon = opt.colon || COLON;
162
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [
163
+ ""
164
+ ] : [
165
+ // windows always checks the cwd first
166
+ ...isWindows ? [
167
+ process.cwd()
168
+ ] : [],
169
+ ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
170
+ "").split(colon)
171
+ ];
172
+ const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
173
+ const pathExt = isWindows ? pathExtExe.split(colon) : [
174
+ ""
175
+ ];
176
+ if (isWindows) {
177
+ if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") pathExt.unshift("");
178
+ }
179
+ return {
180
+ pathEnv,
181
+ pathExt,
182
+ pathExtExe
183
+ };
184
+ }, "getPathInfo");
185
+ var which = /* @__PURE__ */ __name((cmd, opt, cb) => {
186
+ if (typeof opt === "function") {
187
+ cb = opt;
188
+ opt = {};
189
+ }
190
+ if (!opt) opt = {};
191
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
192
+ const found = [];
193
+ const step = /* @__PURE__ */ __name((i) => new Promise((resolve, reject) => {
194
+ if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
195
+ const ppRaw = pathEnv[i];
196
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
197
+ const pCmd = path.join(pathPart, cmd);
198
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
199
+ resolve(subStep(p, i, 0));
200
+ }), "step");
201
+ const subStep = /* @__PURE__ */ __name((p, i, ii) => new Promise((resolve, reject) => {
202
+ if (ii === pathExt.length) return resolve(step(i + 1));
203
+ const ext = pathExt[ii];
204
+ isexe(p + ext, {
205
+ pathExt: pathExtExe
206
+ }, (er, is) => {
207
+ if (!er && is) {
208
+ if (opt.all) found.push(p + ext);
209
+ else return resolve(p + ext);
210
+ }
211
+ return resolve(subStep(p, i, ii + 1));
212
+ });
213
+ }), "subStep");
214
+ return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
215
+ }, "which");
216
+ var whichSync = /* @__PURE__ */ __name((cmd, opt) => {
217
+ opt = opt || {};
218
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
219
+ const found = [];
220
+ for (let i = 0; i < pathEnv.length; i++) {
221
+ const ppRaw = pathEnv[i];
222
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
223
+ const pCmd = path.join(pathPart, cmd);
224
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
225
+ for (let j = 0; j < pathExt.length; j++) {
226
+ const cur = p + pathExt[j];
227
+ try {
228
+ const is = isexe.sync(cur, {
229
+ pathExt: pathExtExe
230
+ });
231
+ if (is) {
232
+ if (opt.all) found.push(cur);
233
+ else return cur;
234
+ }
235
+ } catch (ex) {
236
+ }
237
+ }
238
+ }
239
+ if (opt.all && found.length) return found;
240
+ if (opt.nothrow) return null;
241
+ throw getNotFoundError(cmd);
242
+ }, "whichSync");
243
+ module.exports = which;
244
+ which.sync = whichSync;
245
+ }
246
+ });
247
+
248
+ // ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
249
+ var require_path_key = __commonJS({
250
+ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
251
+ "use strict";
252
+ var pathKey = /* @__PURE__ */ __name((options = {}) => {
253
+ const environment = options.env || process.env;
254
+ const platform = options.platform || process.platform;
255
+ if (platform !== "win32") {
256
+ return "PATH";
257
+ }
258
+ return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
259
+ }, "pathKey");
260
+ module.exports = pathKey;
261
+ module.exports.default = pathKey;
262
+ }
263
+ });
264
+
265
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
266
+ var require_resolveCommand = __commonJS({
267
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
268
+ "use strict";
269
+ var path = __require("path");
270
+ var which = require_which();
271
+ var getPathKey = require_path_key();
272
+ function resolveCommandAttempt(parsed, withoutPathExt) {
273
+ const env = parsed.options.env || process.env;
274
+ const cwd = process.cwd();
275
+ const hasCustomCwd = parsed.options.cwd != null;
276
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
277
+ if (shouldSwitchCwd) {
278
+ try {
279
+ process.chdir(parsed.options.cwd);
280
+ } catch (err) {
281
+ }
282
+ }
283
+ let resolved;
284
+ try {
285
+ resolved = which.sync(parsed.command, {
286
+ path: env[getPathKey({
287
+ env
288
+ })],
289
+ pathExt: withoutPathExt ? path.delimiter : void 0
290
+ });
291
+ } catch (e) {
292
+ } finally {
293
+ if (shouldSwitchCwd) {
294
+ process.chdir(cwd);
295
+ }
296
+ }
297
+ if (resolved) {
298
+ resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
299
+ }
300
+ return resolved;
301
+ }
302
+ __name(resolveCommandAttempt, "resolveCommandAttempt");
303
+ function resolveCommand(parsed) {
304
+ return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
305
+ }
306
+ __name(resolveCommand, "resolveCommand");
307
+ module.exports = resolveCommand;
308
+ }
309
+ });
310
+
311
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
312
+ var require_escape = __commonJS({
313
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
314
+ "use strict";
315
+ var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
316
+ function escapeCommand(arg) {
317
+ arg = arg.replace(metaCharsRegExp, "^$1");
318
+ return arg;
319
+ }
320
+ __name(escapeCommand, "escapeCommand");
321
+ function escapeArgument(arg, doubleEscapeMetaChars) {
322
+ arg = `${arg}`;
323
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
324
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
325
+ arg = `"${arg}"`;
326
+ arg = arg.replace(metaCharsRegExp, "^$1");
327
+ if (doubleEscapeMetaChars) {
328
+ arg = arg.replace(metaCharsRegExp, "^$1");
329
+ }
330
+ return arg;
331
+ }
332
+ __name(escapeArgument, "escapeArgument");
333
+ module.exports.command = escapeCommand;
334
+ module.exports.argument = escapeArgument;
335
+ }
336
+ });
337
+
338
+ // ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
339
+ var require_shebang_regex = __commonJS({
340
+ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
341
+ "use strict";
342
+ module.exports = /^#!(.*)/;
343
+ }
344
+ });
345
+
346
+ // ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
347
+ var require_shebang_command = __commonJS({
348
+ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
349
+ "use strict";
350
+ var shebangRegex = require_shebang_regex();
351
+ module.exports = (string = "") => {
352
+ const match = string.match(shebangRegex);
353
+ if (!match) {
354
+ return null;
355
+ }
356
+ const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
357
+ const binary = path.split("/").pop();
358
+ if (binary === "env") {
359
+ return argument;
360
+ }
361
+ return argument ? `${binary} ${argument}` : binary;
362
+ };
363
+ }
364
+ });
365
+
366
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
367
+ var require_readShebang = __commonJS({
368
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
369
+ "use strict";
370
+ var fs = __require("fs");
371
+ var shebangCommand = require_shebang_command();
372
+ function readShebang(command) {
373
+ const size = 150;
374
+ const buffer = Buffer.alloc(size);
375
+ let fd;
376
+ try {
377
+ fd = fs.openSync(command, "r");
378
+ fs.readSync(fd, buffer, 0, size, 0);
379
+ fs.closeSync(fd);
380
+ } catch (e) {
381
+ }
382
+ return shebangCommand(buffer.toString());
383
+ }
384
+ __name(readShebang, "readShebang");
385
+ module.exports = readShebang;
386
+ }
387
+ });
388
+
389
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
390
+ var require_parse = __commonJS({
391
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
392
+ "use strict";
393
+ var path = __require("path");
394
+ var resolveCommand = require_resolveCommand();
395
+ var escape = require_escape();
396
+ var readShebang = require_readShebang();
397
+ var isWin = process.platform === "win32";
398
+ var isExecutableRegExp = /\.(?:com|exe)$/i;
399
+ var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
400
+ function detectShebang(parsed) {
401
+ parsed.file = resolveCommand(parsed);
402
+ const shebang = parsed.file && readShebang(parsed.file);
403
+ if (shebang) {
404
+ parsed.args.unshift(parsed.file);
405
+ parsed.command = shebang;
406
+ return resolveCommand(parsed);
407
+ }
408
+ return parsed.file;
409
+ }
410
+ __name(detectShebang, "detectShebang");
411
+ function parseNonShell(parsed) {
412
+ if (!isWin) {
413
+ return parsed;
414
+ }
415
+ const commandFile = detectShebang(parsed);
416
+ const needsShell = !isExecutableRegExp.test(commandFile);
417
+ if (parsed.options.forceShell || needsShell) {
418
+ const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
419
+ parsed.command = path.normalize(parsed.command);
420
+ parsed.command = escape.command(parsed.command);
421
+ parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
422
+ const shellCommand = [
423
+ parsed.command
424
+ ].concat(parsed.args).join(" ");
425
+ parsed.args = [
426
+ "/d",
427
+ "/s",
428
+ "/c",
429
+ `"${shellCommand}"`
430
+ ];
431
+ parsed.command = process.env.comspec || "cmd.exe";
432
+ parsed.options.windowsVerbatimArguments = true;
433
+ }
434
+ return parsed;
435
+ }
436
+ __name(parseNonShell, "parseNonShell");
437
+ function parse(command, args, options) {
438
+ if (args && !Array.isArray(args)) {
439
+ options = args;
440
+ args = null;
441
+ }
442
+ args = args ? args.slice(0) : [];
443
+ options = Object.assign({}, options);
444
+ const parsed = {
445
+ command,
446
+ args,
447
+ options,
448
+ file: void 0,
449
+ original: {
450
+ command,
451
+ args
452
+ }
453
+ };
454
+ return options.shell ? parsed : parseNonShell(parsed);
455
+ }
456
+ __name(parse, "parse");
457
+ module.exports = parse;
458
+ }
459
+ });
460
+
461
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
462
+ var require_enoent = __commonJS({
463
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
464
+ "use strict";
465
+ var isWin = process.platform === "win32";
466
+ function notFoundError(original, syscall) {
467
+ return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
468
+ code: "ENOENT",
469
+ errno: "ENOENT",
470
+ syscall: `${syscall} ${original.command}`,
471
+ path: original.command,
472
+ spawnargs: original.args
473
+ });
474
+ }
475
+ __name(notFoundError, "notFoundError");
476
+ function hookChildProcess(cp, parsed) {
477
+ if (!isWin) {
478
+ return;
479
+ }
480
+ const originalEmit = cp.emit;
481
+ cp.emit = function(name, arg1) {
482
+ if (name === "exit") {
483
+ const err = verifyENOENT(arg1, parsed);
484
+ if (err) {
485
+ return originalEmit.call(cp, "error", err);
486
+ }
487
+ }
488
+ return originalEmit.apply(cp, arguments);
489
+ };
490
+ }
491
+ __name(hookChildProcess, "hookChildProcess");
492
+ function verifyENOENT(status, parsed) {
493
+ if (isWin && status === 1 && !parsed.file) {
494
+ return notFoundError(parsed.original, "spawn");
495
+ }
496
+ return null;
497
+ }
498
+ __name(verifyENOENT, "verifyENOENT");
499
+ function verifyENOENTSync(status, parsed) {
500
+ if (isWin && status === 1 && !parsed.file) {
501
+ return notFoundError(parsed.original, "spawnSync");
502
+ }
503
+ return null;
504
+ }
505
+ __name(verifyENOENTSync, "verifyENOENTSync");
506
+ module.exports = {
507
+ hookChildProcess,
508
+ verifyENOENT,
509
+ verifyENOENTSync,
510
+ notFoundError
511
+ };
512
+ }
513
+ });
514
+
515
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
516
+ var require_cross_spawn = __commonJS({
517
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
518
+ "use strict";
519
+ var cp = __require("child_process");
520
+ var parse = require_parse();
521
+ var enoent = require_enoent();
522
+ function spawn(command, args, options) {
523
+ const parsed = parse(command, args, options);
524
+ const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
525
+ enoent.hookChildProcess(spawned, parsed);
526
+ return spawned;
527
+ }
528
+ __name(spawn, "spawn");
529
+ function spawnSync(command, args, options) {
530
+ const parsed = parse(command, args, options);
531
+ const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
532
+ result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
533
+ return result;
534
+ }
535
+ __name(spawnSync, "spawnSync");
536
+ module.exports = spawn;
537
+ module.exports.spawn = spawn;
538
+ module.exports.sync = spawnSync;
539
+ module.exports._parse = parse;
540
+ module.exports._enoent = enoent;
541
+ }
542
+ });
543
+
544
+ export {
545
+ require_path_key,
546
+ require_cross_spawn
547
+ };
548
+ //# sourceMappingURL=chunk-XMNW2OM7.js.map