@storm-software/config-tools 1.27.31 → 1.28.2
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.
- package/CHANGELOG.md +57 -0
- package/README.md +1 -1
- package/declarations.d.ts +12 -1
- package/index.js +2565 -178
- package/meta.json +1 -0
- package/package.json +6 -1
- package/utilities/logger.js +13 -4
- package/index.cjs +0 -213630
- package/meta.cjs.json +0 -1
- package/meta.esm.json +0 -1
- package/utilities/find-workspace-root.cjs +0 -99
- package/utilities/logger.cjs +0 -1768
package/index.js
CHANGED
|
@@ -31,6 +31,2205 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
mod
|
|
32
32
|
));
|
|
33
33
|
|
|
34
|
+
// node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
35
|
+
var require_universalify = __commonJS({
|
|
36
|
+
"node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
|
37
|
+
"use strict";
|
|
38
|
+
exports.fromCallback = function(fn) {
|
|
39
|
+
return Object.defineProperty(function(...args) {
|
|
40
|
+
if (typeof args[args.length - 1] === "function")
|
|
41
|
+
fn.apply(this, args);
|
|
42
|
+
else {
|
|
43
|
+
return new Promise((resolve, reject) => {
|
|
44
|
+
args.push((err, res) => err != null ? reject(err) : resolve(res));
|
|
45
|
+
fn.apply(this, args);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}, "name", { value: fn.name });
|
|
49
|
+
};
|
|
50
|
+
exports.fromPromise = function(fn) {
|
|
51
|
+
return Object.defineProperty(function(...args) {
|
|
52
|
+
const cb = args[args.length - 1];
|
|
53
|
+
if (typeof cb !== "function")
|
|
54
|
+
return fn.apply(this, args);
|
|
55
|
+
else {
|
|
56
|
+
args.pop();
|
|
57
|
+
fn.apply(this, args).then((r) => cb(null, r), cb);
|
|
58
|
+
}
|
|
59
|
+
}, "name", { value: fn.name });
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
65
|
+
var require_polyfills = __commonJS({
|
|
66
|
+
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module) {
|
|
67
|
+
var constants = __require("constants");
|
|
68
|
+
var origCwd = process.cwd;
|
|
69
|
+
var cwd = null;
|
|
70
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
71
|
+
process.cwd = function() {
|
|
72
|
+
if (!cwd)
|
|
73
|
+
cwd = origCwd.call(process);
|
|
74
|
+
return cwd;
|
|
75
|
+
};
|
|
76
|
+
try {
|
|
77
|
+
process.cwd();
|
|
78
|
+
} catch (er) {
|
|
79
|
+
}
|
|
80
|
+
if (typeof process.chdir === "function") {
|
|
81
|
+
chdir = process.chdir;
|
|
82
|
+
process.chdir = function(d) {
|
|
83
|
+
cwd = null;
|
|
84
|
+
chdir.call(process, d);
|
|
85
|
+
};
|
|
86
|
+
if (Object.setPrototypeOf)
|
|
87
|
+
Object.setPrototypeOf(process.chdir, chdir);
|
|
88
|
+
}
|
|
89
|
+
var chdir;
|
|
90
|
+
module.exports = patch;
|
|
91
|
+
function patch(fs) {
|
|
92
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
93
|
+
patchLchmod(fs);
|
|
94
|
+
}
|
|
95
|
+
if (!fs.lutimes) {
|
|
96
|
+
patchLutimes(fs);
|
|
97
|
+
}
|
|
98
|
+
fs.chown = chownFix(fs.chown);
|
|
99
|
+
fs.fchown = chownFix(fs.fchown);
|
|
100
|
+
fs.lchown = chownFix(fs.lchown);
|
|
101
|
+
fs.chmod = chmodFix(fs.chmod);
|
|
102
|
+
fs.fchmod = chmodFix(fs.fchmod);
|
|
103
|
+
fs.lchmod = chmodFix(fs.lchmod);
|
|
104
|
+
fs.chownSync = chownFixSync(fs.chownSync);
|
|
105
|
+
fs.fchownSync = chownFixSync(fs.fchownSync);
|
|
106
|
+
fs.lchownSync = chownFixSync(fs.lchownSync);
|
|
107
|
+
fs.chmodSync = chmodFixSync(fs.chmodSync);
|
|
108
|
+
fs.fchmodSync = chmodFixSync(fs.fchmodSync);
|
|
109
|
+
fs.lchmodSync = chmodFixSync(fs.lchmodSync);
|
|
110
|
+
fs.stat = statFix(fs.stat);
|
|
111
|
+
fs.fstat = statFix(fs.fstat);
|
|
112
|
+
fs.lstat = statFix(fs.lstat);
|
|
113
|
+
fs.statSync = statFixSync(fs.statSync);
|
|
114
|
+
fs.fstatSync = statFixSync(fs.fstatSync);
|
|
115
|
+
fs.lstatSync = statFixSync(fs.lstatSync);
|
|
116
|
+
if (fs.chmod && !fs.lchmod) {
|
|
117
|
+
fs.lchmod = function(path, mode, cb) {
|
|
118
|
+
if (cb)
|
|
119
|
+
process.nextTick(cb);
|
|
120
|
+
};
|
|
121
|
+
fs.lchmodSync = function() {
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
if (fs.chown && !fs.lchown) {
|
|
125
|
+
fs.lchown = function(path, uid, gid, cb) {
|
|
126
|
+
if (cb)
|
|
127
|
+
process.nextTick(cb);
|
|
128
|
+
};
|
|
129
|
+
fs.lchownSync = function() {
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
if (platform === "win32") {
|
|
133
|
+
fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) {
|
|
134
|
+
function rename(from, to, cb) {
|
|
135
|
+
var start = Date.now();
|
|
136
|
+
var backoff = 0;
|
|
137
|
+
fs$rename(from, to, function CB(er) {
|
|
138
|
+
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
139
|
+
setTimeout(function() {
|
|
140
|
+
fs.stat(to, function(stater, st) {
|
|
141
|
+
if (stater && stater.code === "ENOENT")
|
|
142
|
+
fs$rename(from, to, CB);
|
|
143
|
+
else
|
|
144
|
+
cb(er);
|
|
145
|
+
});
|
|
146
|
+
}, backoff);
|
|
147
|
+
if (backoff < 100)
|
|
148
|
+
backoff += 10;
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (cb)
|
|
152
|
+
cb(er);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
if (Object.setPrototypeOf)
|
|
156
|
+
Object.setPrototypeOf(rename, fs$rename);
|
|
157
|
+
return rename;
|
|
158
|
+
}(fs.rename);
|
|
159
|
+
}
|
|
160
|
+
fs.read = typeof fs.read !== "function" ? fs.read : function(fs$read) {
|
|
161
|
+
function read(fd, buffer, offset, length, position, callback_) {
|
|
162
|
+
var callback;
|
|
163
|
+
if (callback_ && typeof callback_ === "function") {
|
|
164
|
+
var eagCounter = 0;
|
|
165
|
+
callback = function(er, _, __) {
|
|
166
|
+
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
167
|
+
eagCounter++;
|
|
168
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
169
|
+
}
|
|
170
|
+
callback_.apply(this, arguments);
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
174
|
+
}
|
|
175
|
+
if (Object.setPrototypeOf)
|
|
176
|
+
Object.setPrototypeOf(read, fs$read);
|
|
177
|
+
return read;
|
|
178
|
+
}(fs.read);
|
|
179
|
+
fs.readSync = typeof fs.readSync !== "function" ? fs.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
180
|
+
return function(fd, buffer, offset, length, position) {
|
|
181
|
+
var eagCounter = 0;
|
|
182
|
+
while (true) {
|
|
183
|
+
try {
|
|
184
|
+
return fs$readSync.call(fs, fd, buffer, offset, length, position);
|
|
185
|
+
} catch (er) {
|
|
186
|
+
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
187
|
+
eagCounter++;
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
throw er;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
}(fs.readSync);
|
|
195
|
+
function patchLchmod(fs2) {
|
|
196
|
+
fs2.lchmod = function(path, mode, callback) {
|
|
197
|
+
fs2.open(
|
|
198
|
+
path,
|
|
199
|
+
constants.O_WRONLY | constants.O_SYMLINK,
|
|
200
|
+
mode,
|
|
201
|
+
function(err, fd) {
|
|
202
|
+
if (err) {
|
|
203
|
+
if (callback)
|
|
204
|
+
callback(err);
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
fs2.fchmod(fd, mode, function(err2) {
|
|
208
|
+
fs2.close(fd, function(err22) {
|
|
209
|
+
if (callback)
|
|
210
|
+
callback(err2 || err22);
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
};
|
|
216
|
+
fs2.lchmodSync = function(path, mode) {
|
|
217
|
+
var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
218
|
+
var threw = true;
|
|
219
|
+
var ret;
|
|
220
|
+
try {
|
|
221
|
+
ret = fs2.fchmodSync(fd, mode);
|
|
222
|
+
threw = false;
|
|
223
|
+
} finally {
|
|
224
|
+
if (threw) {
|
|
225
|
+
try {
|
|
226
|
+
fs2.closeSync(fd);
|
|
227
|
+
} catch (er) {
|
|
228
|
+
}
|
|
229
|
+
} else {
|
|
230
|
+
fs2.closeSync(fd);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return ret;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
function patchLutimes(fs2) {
|
|
237
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
|
|
238
|
+
fs2.lutimes = function(path, at, mt, cb) {
|
|
239
|
+
fs2.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
240
|
+
if (er) {
|
|
241
|
+
if (cb)
|
|
242
|
+
cb(er);
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
fs2.futimes(fd, at, mt, function(er2) {
|
|
246
|
+
fs2.close(fd, function(er22) {
|
|
247
|
+
if (cb)
|
|
248
|
+
cb(er2 || er22);
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
fs2.lutimesSync = function(path, at, mt) {
|
|
254
|
+
var fd = fs2.openSync(path, constants.O_SYMLINK);
|
|
255
|
+
var ret;
|
|
256
|
+
var threw = true;
|
|
257
|
+
try {
|
|
258
|
+
ret = fs2.futimesSync(fd, at, mt);
|
|
259
|
+
threw = false;
|
|
260
|
+
} finally {
|
|
261
|
+
if (threw) {
|
|
262
|
+
try {
|
|
263
|
+
fs2.closeSync(fd);
|
|
264
|
+
} catch (er) {
|
|
265
|
+
}
|
|
266
|
+
} else {
|
|
267
|
+
fs2.closeSync(fd);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return ret;
|
|
271
|
+
};
|
|
272
|
+
} else if (fs2.futimes) {
|
|
273
|
+
fs2.lutimes = function(_a, _b, _c, cb) {
|
|
274
|
+
if (cb)
|
|
275
|
+
process.nextTick(cb);
|
|
276
|
+
};
|
|
277
|
+
fs2.lutimesSync = function() {
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
function chmodFix(orig) {
|
|
282
|
+
if (!orig)
|
|
283
|
+
return orig;
|
|
284
|
+
return function(target, mode, cb) {
|
|
285
|
+
return orig.call(fs, target, mode, function(er) {
|
|
286
|
+
if (chownErOk(er))
|
|
287
|
+
er = null;
|
|
288
|
+
if (cb)
|
|
289
|
+
cb.apply(this, arguments);
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
function chmodFixSync(orig) {
|
|
294
|
+
if (!orig)
|
|
295
|
+
return orig;
|
|
296
|
+
return function(target, mode) {
|
|
297
|
+
try {
|
|
298
|
+
return orig.call(fs, target, mode);
|
|
299
|
+
} catch (er) {
|
|
300
|
+
if (!chownErOk(er))
|
|
301
|
+
throw er;
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
function chownFix(orig) {
|
|
306
|
+
if (!orig)
|
|
307
|
+
return orig;
|
|
308
|
+
return function(target, uid, gid, cb) {
|
|
309
|
+
return orig.call(fs, target, uid, gid, function(er) {
|
|
310
|
+
if (chownErOk(er))
|
|
311
|
+
er = null;
|
|
312
|
+
if (cb)
|
|
313
|
+
cb.apply(this, arguments);
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
function chownFixSync(orig) {
|
|
318
|
+
if (!orig)
|
|
319
|
+
return orig;
|
|
320
|
+
return function(target, uid, gid) {
|
|
321
|
+
try {
|
|
322
|
+
return orig.call(fs, target, uid, gid);
|
|
323
|
+
} catch (er) {
|
|
324
|
+
if (!chownErOk(er))
|
|
325
|
+
throw er;
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
function statFix(orig) {
|
|
330
|
+
if (!orig)
|
|
331
|
+
return orig;
|
|
332
|
+
return function(target, options, cb) {
|
|
333
|
+
if (typeof options === "function") {
|
|
334
|
+
cb = options;
|
|
335
|
+
options = null;
|
|
336
|
+
}
|
|
337
|
+
function callback(er, stats) {
|
|
338
|
+
if (stats) {
|
|
339
|
+
if (stats.uid < 0)
|
|
340
|
+
stats.uid += 4294967296;
|
|
341
|
+
if (stats.gid < 0)
|
|
342
|
+
stats.gid += 4294967296;
|
|
343
|
+
}
|
|
344
|
+
if (cb)
|
|
345
|
+
cb.apply(this, arguments);
|
|
346
|
+
}
|
|
347
|
+
return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback);
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function statFixSync(orig) {
|
|
351
|
+
if (!orig)
|
|
352
|
+
return orig;
|
|
353
|
+
return function(target, options) {
|
|
354
|
+
var stats = options ? orig.call(fs, target, options) : orig.call(fs, target);
|
|
355
|
+
if (stats) {
|
|
356
|
+
if (stats.uid < 0)
|
|
357
|
+
stats.uid += 4294967296;
|
|
358
|
+
if (stats.gid < 0)
|
|
359
|
+
stats.gid += 4294967296;
|
|
360
|
+
}
|
|
361
|
+
return stats;
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
function chownErOk(er) {
|
|
365
|
+
if (!er)
|
|
366
|
+
return true;
|
|
367
|
+
if (er.code === "ENOSYS")
|
|
368
|
+
return true;
|
|
369
|
+
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
370
|
+
if (nonroot) {
|
|
371
|
+
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
372
|
+
return true;
|
|
373
|
+
}
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
// node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
381
|
+
var require_legacy_streams = __commonJS({
|
|
382
|
+
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module) {
|
|
383
|
+
var Stream = __require("stream").Stream;
|
|
384
|
+
module.exports = legacy;
|
|
385
|
+
function legacy(fs) {
|
|
386
|
+
return {
|
|
387
|
+
ReadStream,
|
|
388
|
+
WriteStream
|
|
389
|
+
};
|
|
390
|
+
function ReadStream(path, options) {
|
|
391
|
+
if (!(this instanceof ReadStream))
|
|
392
|
+
return new ReadStream(path, options);
|
|
393
|
+
Stream.call(this);
|
|
394
|
+
var self = this;
|
|
395
|
+
this.path = path;
|
|
396
|
+
this.fd = null;
|
|
397
|
+
this.readable = true;
|
|
398
|
+
this.paused = false;
|
|
399
|
+
this.flags = "r";
|
|
400
|
+
this.mode = 438;
|
|
401
|
+
this.bufferSize = 64 * 1024;
|
|
402
|
+
options = options || {};
|
|
403
|
+
var keys = Object.keys(options);
|
|
404
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
405
|
+
var key = keys[index];
|
|
406
|
+
this[key] = options[key];
|
|
407
|
+
}
|
|
408
|
+
if (this.encoding)
|
|
409
|
+
this.setEncoding(this.encoding);
|
|
410
|
+
if (this.start !== void 0) {
|
|
411
|
+
if ("number" !== typeof this.start) {
|
|
412
|
+
throw TypeError("start must be a Number");
|
|
413
|
+
}
|
|
414
|
+
if (this.end === void 0) {
|
|
415
|
+
this.end = Infinity;
|
|
416
|
+
} else if ("number" !== typeof this.end) {
|
|
417
|
+
throw TypeError("end must be a Number");
|
|
418
|
+
}
|
|
419
|
+
if (this.start > this.end) {
|
|
420
|
+
throw new Error("start must be <= end");
|
|
421
|
+
}
|
|
422
|
+
this.pos = this.start;
|
|
423
|
+
}
|
|
424
|
+
if (this.fd !== null) {
|
|
425
|
+
process.nextTick(function() {
|
|
426
|
+
self._read();
|
|
427
|
+
});
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
fs.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
431
|
+
if (err) {
|
|
432
|
+
self.emit("error", err);
|
|
433
|
+
self.readable = false;
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
self.fd = fd;
|
|
437
|
+
self.emit("open", fd);
|
|
438
|
+
self._read();
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
function WriteStream(path, options) {
|
|
442
|
+
if (!(this instanceof WriteStream))
|
|
443
|
+
return new WriteStream(path, options);
|
|
444
|
+
Stream.call(this);
|
|
445
|
+
this.path = path;
|
|
446
|
+
this.fd = null;
|
|
447
|
+
this.writable = true;
|
|
448
|
+
this.flags = "w";
|
|
449
|
+
this.encoding = "binary";
|
|
450
|
+
this.mode = 438;
|
|
451
|
+
this.bytesWritten = 0;
|
|
452
|
+
options = options || {};
|
|
453
|
+
var keys = Object.keys(options);
|
|
454
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
455
|
+
var key = keys[index];
|
|
456
|
+
this[key] = options[key];
|
|
457
|
+
}
|
|
458
|
+
if (this.start !== void 0) {
|
|
459
|
+
if ("number" !== typeof this.start) {
|
|
460
|
+
throw TypeError("start must be a Number");
|
|
461
|
+
}
|
|
462
|
+
if (this.start < 0) {
|
|
463
|
+
throw new Error("start must be >= zero");
|
|
464
|
+
}
|
|
465
|
+
this.pos = this.start;
|
|
466
|
+
}
|
|
467
|
+
this.busy = false;
|
|
468
|
+
this._queue = [];
|
|
469
|
+
if (this.fd === null) {
|
|
470
|
+
this._open = fs.open;
|
|
471
|
+
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
472
|
+
this.flush();
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
|
|
479
|
+
// node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
480
|
+
var require_clone = __commonJS({
|
|
481
|
+
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module) {
|
|
482
|
+
"use strict";
|
|
483
|
+
module.exports = clone;
|
|
484
|
+
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
485
|
+
return obj.__proto__;
|
|
486
|
+
};
|
|
487
|
+
function clone(obj) {
|
|
488
|
+
if (obj === null || typeof obj !== "object")
|
|
489
|
+
return obj;
|
|
490
|
+
if (obj instanceof Object)
|
|
491
|
+
var copy = { __proto__: getPrototypeOf(obj) };
|
|
492
|
+
else
|
|
493
|
+
var copy = /* @__PURE__ */ Object.create(null);
|
|
494
|
+
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
495
|
+
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
496
|
+
});
|
|
497
|
+
return copy;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
|
|
502
|
+
// node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
|
|
503
|
+
var require_graceful_fs = __commonJS({
|
|
504
|
+
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module) {
|
|
505
|
+
var fs = __require("fs");
|
|
506
|
+
var polyfills = require_polyfills();
|
|
507
|
+
var legacy = require_legacy_streams();
|
|
508
|
+
var clone = require_clone();
|
|
509
|
+
var util2 = __require("util");
|
|
510
|
+
var gracefulQueue;
|
|
511
|
+
var previousSymbol;
|
|
512
|
+
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
513
|
+
gracefulQueue = Symbol.for("graceful-fs.queue");
|
|
514
|
+
previousSymbol = Symbol.for("graceful-fs.previous");
|
|
515
|
+
} else {
|
|
516
|
+
gracefulQueue = "___graceful-fs.queue";
|
|
517
|
+
previousSymbol = "___graceful-fs.previous";
|
|
518
|
+
}
|
|
519
|
+
function noop() {
|
|
520
|
+
}
|
|
521
|
+
function publishQueue(context, queue2) {
|
|
522
|
+
Object.defineProperty(context, gracefulQueue, {
|
|
523
|
+
get: function() {
|
|
524
|
+
return queue2;
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
var debug = noop;
|
|
529
|
+
if (util2.debuglog)
|
|
530
|
+
debug = util2.debuglog("gfs4");
|
|
531
|
+
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
532
|
+
debug = function() {
|
|
533
|
+
var m = util2.format.apply(util2, arguments);
|
|
534
|
+
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
535
|
+
console.error(m);
|
|
536
|
+
};
|
|
537
|
+
if (!fs[gracefulQueue]) {
|
|
538
|
+
queue = global[gracefulQueue] || [];
|
|
539
|
+
publishQueue(fs, queue);
|
|
540
|
+
fs.close = function(fs$close) {
|
|
541
|
+
function close(fd, cb) {
|
|
542
|
+
return fs$close.call(fs, fd, function(err) {
|
|
543
|
+
if (!err) {
|
|
544
|
+
resetQueue();
|
|
545
|
+
}
|
|
546
|
+
if (typeof cb === "function")
|
|
547
|
+
cb.apply(this, arguments);
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
Object.defineProperty(close, previousSymbol, {
|
|
551
|
+
value: fs$close
|
|
552
|
+
});
|
|
553
|
+
return close;
|
|
554
|
+
}(fs.close);
|
|
555
|
+
fs.closeSync = function(fs$closeSync) {
|
|
556
|
+
function closeSync(fd) {
|
|
557
|
+
fs$closeSync.apply(fs, arguments);
|
|
558
|
+
resetQueue();
|
|
559
|
+
}
|
|
560
|
+
Object.defineProperty(closeSync, previousSymbol, {
|
|
561
|
+
value: fs$closeSync
|
|
562
|
+
});
|
|
563
|
+
return closeSync;
|
|
564
|
+
}(fs.closeSync);
|
|
565
|
+
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
566
|
+
process.on("exit", function() {
|
|
567
|
+
debug(fs[gracefulQueue]);
|
|
568
|
+
__require("assert").equal(fs[gracefulQueue].length, 0);
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
var queue;
|
|
573
|
+
if (!global[gracefulQueue]) {
|
|
574
|
+
publishQueue(global, fs[gracefulQueue]);
|
|
575
|
+
}
|
|
576
|
+
module.exports = patch(clone(fs));
|
|
577
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
|
578
|
+
module.exports = patch(fs);
|
|
579
|
+
fs.__patched = true;
|
|
580
|
+
}
|
|
581
|
+
function patch(fs2) {
|
|
582
|
+
polyfills(fs2);
|
|
583
|
+
fs2.gracefulify = patch;
|
|
584
|
+
fs2.createReadStream = createReadStream;
|
|
585
|
+
fs2.createWriteStream = createWriteStream;
|
|
586
|
+
var fs$readFile = fs2.readFile;
|
|
587
|
+
fs2.readFile = readFile2;
|
|
588
|
+
function readFile2(path, options, cb) {
|
|
589
|
+
if (typeof options === "function")
|
|
590
|
+
cb = options, options = null;
|
|
591
|
+
return go$readFile(path, options, cb);
|
|
592
|
+
function go$readFile(path2, options2, cb2, startTime) {
|
|
593
|
+
return fs$readFile(path2, options2, function(err) {
|
|
594
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
595
|
+
enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
596
|
+
else {
|
|
597
|
+
if (typeof cb2 === "function")
|
|
598
|
+
cb2.apply(this, arguments);
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
var fs$writeFile = fs2.writeFile;
|
|
604
|
+
fs2.writeFile = writeFile;
|
|
605
|
+
function writeFile(path, data, options, cb) {
|
|
606
|
+
if (typeof options === "function")
|
|
607
|
+
cb = options, options = null;
|
|
608
|
+
return go$writeFile(path, data, options, cb);
|
|
609
|
+
function go$writeFile(path2, data2, options2, cb2, startTime) {
|
|
610
|
+
return fs$writeFile(path2, data2, options2, function(err) {
|
|
611
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
612
|
+
enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
613
|
+
else {
|
|
614
|
+
if (typeof cb2 === "function")
|
|
615
|
+
cb2.apply(this, arguments);
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
var fs$appendFile = fs2.appendFile;
|
|
621
|
+
if (fs$appendFile)
|
|
622
|
+
fs2.appendFile = appendFile;
|
|
623
|
+
function appendFile(path, data, options, cb) {
|
|
624
|
+
if (typeof options === "function")
|
|
625
|
+
cb = options, options = null;
|
|
626
|
+
return go$appendFile(path, data, options, cb);
|
|
627
|
+
function go$appendFile(path2, data2, options2, cb2, startTime) {
|
|
628
|
+
return fs$appendFile(path2, data2, options2, function(err) {
|
|
629
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
630
|
+
enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
631
|
+
else {
|
|
632
|
+
if (typeof cb2 === "function")
|
|
633
|
+
cb2.apply(this, arguments);
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
var fs$copyFile = fs2.copyFile;
|
|
639
|
+
if (fs$copyFile)
|
|
640
|
+
fs2.copyFile = copyFile;
|
|
641
|
+
function copyFile(src, dest, flags, cb) {
|
|
642
|
+
if (typeof flags === "function") {
|
|
643
|
+
cb = flags;
|
|
644
|
+
flags = 0;
|
|
645
|
+
}
|
|
646
|
+
return go$copyFile(src, dest, flags, cb);
|
|
647
|
+
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
|
648
|
+
return fs$copyFile(src2, dest2, flags2, function(err) {
|
|
649
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
650
|
+
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
651
|
+
else {
|
|
652
|
+
if (typeof cb2 === "function")
|
|
653
|
+
cb2.apply(this, arguments);
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
var fs$readdir = fs2.readdir;
|
|
659
|
+
fs2.readdir = readdir;
|
|
660
|
+
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
661
|
+
function readdir(path, options, cb) {
|
|
662
|
+
if (typeof options === "function")
|
|
663
|
+
cb = options, options = null;
|
|
664
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) {
|
|
665
|
+
return fs$readdir(path2, fs$readdirCallback(
|
|
666
|
+
path2,
|
|
667
|
+
options2,
|
|
668
|
+
cb2,
|
|
669
|
+
startTime
|
|
670
|
+
));
|
|
671
|
+
} : function go$readdir2(path2, options2, cb2, startTime) {
|
|
672
|
+
return fs$readdir(path2, options2, fs$readdirCallback(
|
|
673
|
+
path2,
|
|
674
|
+
options2,
|
|
675
|
+
cb2,
|
|
676
|
+
startTime
|
|
677
|
+
));
|
|
678
|
+
};
|
|
679
|
+
return go$readdir(path, options, cb);
|
|
680
|
+
function fs$readdirCallback(path2, options2, cb2, startTime) {
|
|
681
|
+
return function(err, files) {
|
|
682
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
683
|
+
enqueue([
|
|
684
|
+
go$readdir,
|
|
685
|
+
[path2, options2, cb2],
|
|
686
|
+
err,
|
|
687
|
+
startTime || Date.now(),
|
|
688
|
+
Date.now()
|
|
689
|
+
]);
|
|
690
|
+
else {
|
|
691
|
+
if (files && files.sort)
|
|
692
|
+
files.sort();
|
|
693
|
+
if (typeof cb2 === "function")
|
|
694
|
+
cb2.call(this, err, files);
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
if (process.version.substr(0, 4) === "v0.8") {
|
|
700
|
+
var legStreams = legacy(fs2);
|
|
701
|
+
ReadStream = legStreams.ReadStream;
|
|
702
|
+
WriteStream = legStreams.WriteStream;
|
|
703
|
+
}
|
|
704
|
+
var fs$ReadStream = fs2.ReadStream;
|
|
705
|
+
if (fs$ReadStream) {
|
|
706
|
+
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
707
|
+
ReadStream.prototype.open = ReadStream$open;
|
|
708
|
+
}
|
|
709
|
+
var fs$WriteStream = fs2.WriteStream;
|
|
710
|
+
if (fs$WriteStream) {
|
|
711
|
+
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
712
|
+
WriteStream.prototype.open = WriteStream$open;
|
|
713
|
+
}
|
|
714
|
+
Object.defineProperty(fs2, "ReadStream", {
|
|
715
|
+
get: function() {
|
|
716
|
+
return ReadStream;
|
|
717
|
+
},
|
|
718
|
+
set: function(val) {
|
|
719
|
+
ReadStream = val;
|
|
720
|
+
},
|
|
721
|
+
enumerable: true,
|
|
722
|
+
configurable: true
|
|
723
|
+
});
|
|
724
|
+
Object.defineProperty(fs2, "WriteStream", {
|
|
725
|
+
get: function() {
|
|
726
|
+
return WriteStream;
|
|
727
|
+
},
|
|
728
|
+
set: function(val) {
|
|
729
|
+
WriteStream = val;
|
|
730
|
+
},
|
|
731
|
+
enumerable: true,
|
|
732
|
+
configurable: true
|
|
733
|
+
});
|
|
734
|
+
var FileReadStream = ReadStream;
|
|
735
|
+
Object.defineProperty(fs2, "FileReadStream", {
|
|
736
|
+
get: function() {
|
|
737
|
+
return FileReadStream;
|
|
738
|
+
},
|
|
739
|
+
set: function(val) {
|
|
740
|
+
FileReadStream = val;
|
|
741
|
+
},
|
|
742
|
+
enumerable: true,
|
|
743
|
+
configurable: true
|
|
744
|
+
});
|
|
745
|
+
var FileWriteStream = WriteStream;
|
|
746
|
+
Object.defineProperty(fs2, "FileWriteStream", {
|
|
747
|
+
get: function() {
|
|
748
|
+
return FileWriteStream;
|
|
749
|
+
},
|
|
750
|
+
set: function(val) {
|
|
751
|
+
FileWriteStream = val;
|
|
752
|
+
},
|
|
753
|
+
enumerable: true,
|
|
754
|
+
configurable: true
|
|
755
|
+
});
|
|
756
|
+
function ReadStream(path, options) {
|
|
757
|
+
if (this instanceof ReadStream)
|
|
758
|
+
return fs$ReadStream.apply(this, arguments), this;
|
|
759
|
+
else
|
|
760
|
+
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
761
|
+
}
|
|
762
|
+
function ReadStream$open() {
|
|
763
|
+
var that = this;
|
|
764
|
+
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
765
|
+
if (err) {
|
|
766
|
+
if (that.autoClose)
|
|
767
|
+
that.destroy();
|
|
768
|
+
that.emit("error", err);
|
|
769
|
+
} else {
|
|
770
|
+
that.fd = fd;
|
|
771
|
+
that.emit("open", fd);
|
|
772
|
+
that.read();
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
function WriteStream(path, options) {
|
|
777
|
+
if (this instanceof WriteStream)
|
|
778
|
+
return fs$WriteStream.apply(this, arguments), this;
|
|
779
|
+
else
|
|
780
|
+
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
781
|
+
}
|
|
782
|
+
function WriteStream$open() {
|
|
783
|
+
var that = this;
|
|
784
|
+
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
785
|
+
if (err) {
|
|
786
|
+
that.destroy();
|
|
787
|
+
that.emit("error", err);
|
|
788
|
+
} else {
|
|
789
|
+
that.fd = fd;
|
|
790
|
+
that.emit("open", fd);
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
function createReadStream(path, options) {
|
|
795
|
+
return new fs2.ReadStream(path, options);
|
|
796
|
+
}
|
|
797
|
+
function createWriteStream(path, options) {
|
|
798
|
+
return new fs2.WriteStream(path, options);
|
|
799
|
+
}
|
|
800
|
+
var fs$open = fs2.open;
|
|
801
|
+
fs2.open = open;
|
|
802
|
+
function open(path, flags, mode, cb) {
|
|
803
|
+
if (typeof mode === "function")
|
|
804
|
+
cb = mode, mode = null;
|
|
805
|
+
return go$open(path, flags, mode, cb);
|
|
806
|
+
function go$open(path2, flags2, mode2, cb2, startTime) {
|
|
807
|
+
return fs$open(path2, flags2, mode2, function(err, fd) {
|
|
808
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
809
|
+
enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
810
|
+
else {
|
|
811
|
+
if (typeof cb2 === "function")
|
|
812
|
+
cb2.apply(this, arguments);
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
return fs2;
|
|
818
|
+
}
|
|
819
|
+
function enqueue(elem) {
|
|
820
|
+
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
821
|
+
fs[gracefulQueue].push(elem);
|
|
822
|
+
retry();
|
|
823
|
+
}
|
|
824
|
+
var retryTimer;
|
|
825
|
+
function resetQueue() {
|
|
826
|
+
var now = Date.now();
|
|
827
|
+
for (var i = 0; i < fs[gracefulQueue].length; ++i) {
|
|
828
|
+
if (fs[gracefulQueue][i].length > 2) {
|
|
829
|
+
fs[gracefulQueue][i][3] = now;
|
|
830
|
+
fs[gracefulQueue][i][4] = now;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
retry();
|
|
834
|
+
}
|
|
835
|
+
function retry() {
|
|
836
|
+
clearTimeout(retryTimer);
|
|
837
|
+
retryTimer = void 0;
|
|
838
|
+
if (fs[gracefulQueue].length === 0)
|
|
839
|
+
return;
|
|
840
|
+
var elem = fs[gracefulQueue].shift();
|
|
841
|
+
var fn = elem[0];
|
|
842
|
+
var args = elem[1];
|
|
843
|
+
var err = elem[2];
|
|
844
|
+
var startTime = elem[3];
|
|
845
|
+
var lastTime = elem[4];
|
|
846
|
+
if (startTime === void 0) {
|
|
847
|
+
debug("RETRY", fn.name, args);
|
|
848
|
+
fn.apply(null, args);
|
|
849
|
+
} else if (Date.now() - startTime >= 6e4) {
|
|
850
|
+
debug("TIMEOUT", fn.name, args);
|
|
851
|
+
var cb = args.pop();
|
|
852
|
+
if (typeof cb === "function")
|
|
853
|
+
cb.call(null, err);
|
|
854
|
+
} else {
|
|
855
|
+
var sinceAttempt = Date.now() - lastTime;
|
|
856
|
+
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
857
|
+
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
858
|
+
if (sinceAttempt >= desiredDelay) {
|
|
859
|
+
debug("RETRY", fn.name, args);
|
|
860
|
+
fn.apply(null, args.concat([startTime]));
|
|
861
|
+
} else {
|
|
862
|
+
fs[gracefulQueue].push(elem);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
if (retryTimer === void 0) {
|
|
866
|
+
retryTimer = setTimeout(retry, 0);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
|
|
872
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/fs/index.js
|
|
873
|
+
var require_fs = __commonJS({
|
|
874
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/fs/index.js"(exports) {
|
|
875
|
+
"use strict";
|
|
876
|
+
var u = require_universalify().fromCallback;
|
|
877
|
+
var fs = require_graceful_fs();
|
|
878
|
+
var api = [
|
|
879
|
+
"access",
|
|
880
|
+
"appendFile",
|
|
881
|
+
"chmod",
|
|
882
|
+
"chown",
|
|
883
|
+
"close",
|
|
884
|
+
"copyFile",
|
|
885
|
+
"fchmod",
|
|
886
|
+
"fchown",
|
|
887
|
+
"fdatasync",
|
|
888
|
+
"fstat",
|
|
889
|
+
"fsync",
|
|
890
|
+
"ftruncate",
|
|
891
|
+
"futimes",
|
|
892
|
+
"lchmod",
|
|
893
|
+
"lchown",
|
|
894
|
+
"link",
|
|
895
|
+
"lstat",
|
|
896
|
+
"mkdir",
|
|
897
|
+
"mkdtemp",
|
|
898
|
+
"open",
|
|
899
|
+
"opendir",
|
|
900
|
+
"readdir",
|
|
901
|
+
"readFile",
|
|
902
|
+
"readlink",
|
|
903
|
+
"realpath",
|
|
904
|
+
"rename",
|
|
905
|
+
"rm",
|
|
906
|
+
"rmdir",
|
|
907
|
+
"stat",
|
|
908
|
+
"symlink",
|
|
909
|
+
"truncate",
|
|
910
|
+
"unlink",
|
|
911
|
+
"utimes",
|
|
912
|
+
"writeFile"
|
|
913
|
+
].filter((key) => {
|
|
914
|
+
return typeof fs[key] === "function";
|
|
915
|
+
});
|
|
916
|
+
Object.assign(exports, fs);
|
|
917
|
+
api.forEach((method) => {
|
|
918
|
+
exports[method] = u(fs[method]);
|
|
919
|
+
});
|
|
920
|
+
exports.exists = function(filename, callback) {
|
|
921
|
+
if (typeof callback === "function") {
|
|
922
|
+
return fs.exists(filename, callback);
|
|
923
|
+
}
|
|
924
|
+
return new Promise((resolve) => {
|
|
925
|
+
return fs.exists(filename, resolve);
|
|
926
|
+
});
|
|
927
|
+
};
|
|
928
|
+
exports.read = function(fd, buffer, offset, length, position, callback) {
|
|
929
|
+
if (typeof callback === "function") {
|
|
930
|
+
return fs.read(fd, buffer, offset, length, position, callback);
|
|
931
|
+
}
|
|
932
|
+
return new Promise((resolve, reject) => {
|
|
933
|
+
fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
934
|
+
if (err)
|
|
935
|
+
return reject(err);
|
|
936
|
+
resolve({ bytesRead, buffer: buffer2 });
|
|
937
|
+
});
|
|
938
|
+
});
|
|
939
|
+
};
|
|
940
|
+
exports.write = function(fd, buffer, ...args) {
|
|
941
|
+
if (typeof args[args.length - 1] === "function") {
|
|
942
|
+
return fs.write(fd, buffer, ...args);
|
|
943
|
+
}
|
|
944
|
+
return new Promise((resolve, reject) => {
|
|
945
|
+
fs.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
946
|
+
if (err)
|
|
947
|
+
return reject(err);
|
|
948
|
+
resolve({ bytesWritten, buffer: buffer2 });
|
|
949
|
+
});
|
|
950
|
+
});
|
|
951
|
+
};
|
|
952
|
+
exports.readv = function(fd, buffers, ...args) {
|
|
953
|
+
if (typeof args[args.length - 1] === "function") {
|
|
954
|
+
return fs.readv(fd, buffers, ...args);
|
|
955
|
+
}
|
|
956
|
+
return new Promise((resolve, reject) => {
|
|
957
|
+
fs.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
|
|
958
|
+
if (err)
|
|
959
|
+
return reject(err);
|
|
960
|
+
resolve({ bytesRead, buffers: buffers2 });
|
|
961
|
+
});
|
|
962
|
+
});
|
|
963
|
+
};
|
|
964
|
+
exports.writev = function(fd, buffers, ...args) {
|
|
965
|
+
if (typeof args[args.length - 1] === "function") {
|
|
966
|
+
return fs.writev(fd, buffers, ...args);
|
|
967
|
+
}
|
|
968
|
+
return new Promise((resolve, reject) => {
|
|
969
|
+
fs.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
970
|
+
if (err)
|
|
971
|
+
return reject(err);
|
|
972
|
+
resolve({ bytesWritten, buffers: buffers2 });
|
|
973
|
+
});
|
|
974
|
+
});
|
|
975
|
+
};
|
|
976
|
+
if (typeof fs.realpath.native === "function") {
|
|
977
|
+
exports.realpath.native = u(fs.realpath.native);
|
|
978
|
+
} else {
|
|
979
|
+
process.emitWarning(
|
|
980
|
+
"fs.realpath.native is not a function. Is fs being monkey-patched?",
|
|
981
|
+
"Warning",
|
|
982
|
+
"fs-extra-WARN0003"
|
|
983
|
+
);
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
|
|
988
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js
|
|
989
|
+
var require_utils = __commonJS({
|
|
990
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
991
|
+
"use strict";
|
|
992
|
+
var path = __require("path");
|
|
993
|
+
module.exports.checkPath = function checkPath(pth) {
|
|
994
|
+
if (process.platform === "win32") {
|
|
995
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ""));
|
|
996
|
+
if (pathHasInvalidWinCharacters) {
|
|
997
|
+
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
998
|
+
error.code = "EINVAL";
|
|
999
|
+
throw error;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
|
|
1006
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/make-dir.js
|
|
1007
|
+
var require_make_dir = __commonJS({
|
|
1008
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) {
|
|
1009
|
+
"use strict";
|
|
1010
|
+
var fs = require_fs();
|
|
1011
|
+
var { checkPath } = require_utils();
|
|
1012
|
+
var getMode = (options) => {
|
|
1013
|
+
const defaults = { mode: 511 };
|
|
1014
|
+
if (typeof options === "number")
|
|
1015
|
+
return options;
|
|
1016
|
+
return { ...defaults, ...options }.mode;
|
|
1017
|
+
};
|
|
1018
|
+
module.exports.makeDir = async (dir, options) => {
|
|
1019
|
+
checkPath(dir);
|
|
1020
|
+
return fs.mkdir(dir, {
|
|
1021
|
+
mode: getMode(options),
|
|
1022
|
+
recursive: true
|
|
1023
|
+
});
|
|
1024
|
+
};
|
|
1025
|
+
module.exports.makeDirSync = (dir, options) => {
|
|
1026
|
+
checkPath(dir);
|
|
1027
|
+
return fs.mkdirSync(dir, {
|
|
1028
|
+
mode: getMode(options),
|
|
1029
|
+
recursive: true
|
|
1030
|
+
});
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
});
|
|
1034
|
+
|
|
1035
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/index.js
|
|
1036
|
+
var require_mkdirs = __commonJS({
|
|
1037
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module) {
|
|
1038
|
+
"use strict";
|
|
1039
|
+
var u = require_universalify().fromPromise;
|
|
1040
|
+
var { makeDir: _makeDir, makeDirSync } = require_make_dir();
|
|
1041
|
+
var makeDir = u(_makeDir);
|
|
1042
|
+
module.exports = {
|
|
1043
|
+
mkdirs: makeDir,
|
|
1044
|
+
mkdirsSync: makeDirSync,
|
|
1045
|
+
// alias
|
|
1046
|
+
mkdirp: makeDir,
|
|
1047
|
+
mkdirpSync: makeDirSync,
|
|
1048
|
+
ensureDir: makeDir,
|
|
1049
|
+
ensureDirSync: makeDirSync
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
|
|
1054
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/path-exists/index.js
|
|
1055
|
+
var require_path_exists = __commonJS({
|
|
1056
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/path-exists/index.js"(exports, module) {
|
|
1057
|
+
"use strict";
|
|
1058
|
+
var u = require_universalify().fromPromise;
|
|
1059
|
+
var fs = require_fs();
|
|
1060
|
+
function pathExists(path) {
|
|
1061
|
+
return fs.access(path).then(() => true).catch(() => false);
|
|
1062
|
+
}
|
|
1063
|
+
module.exports = {
|
|
1064
|
+
pathExists: u(pathExists),
|
|
1065
|
+
pathExistsSync: fs.existsSync
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
});
|
|
1069
|
+
|
|
1070
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/utimes.js
|
|
1071
|
+
var require_utimes = __commonJS({
|
|
1072
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module) {
|
|
1073
|
+
"use strict";
|
|
1074
|
+
var fs = require_fs();
|
|
1075
|
+
var u = require_universalify().fromPromise;
|
|
1076
|
+
async function utimesMillis(path, atime, mtime) {
|
|
1077
|
+
const fd = await fs.open(path, "r+");
|
|
1078
|
+
let closeErr = null;
|
|
1079
|
+
try {
|
|
1080
|
+
await fs.futimes(fd, atime, mtime);
|
|
1081
|
+
} finally {
|
|
1082
|
+
try {
|
|
1083
|
+
await fs.close(fd);
|
|
1084
|
+
} catch (e) {
|
|
1085
|
+
closeErr = e;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
if (closeErr) {
|
|
1089
|
+
throw closeErr;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
function utimesMillisSync(path, atime, mtime) {
|
|
1093
|
+
const fd = fs.openSync(path, "r+");
|
|
1094
|
+
fs.futimesSync(fd, atime, mtime);
|
|
1095
|
+
return fs.closeSync(fd);
|
|
1096
|
+
}
|
|
1097
|
+
module.exports = {
|
|
1098
|
+
utimesMillis: u(utimesMillis),
|
|
1099
|
+
utimesMillisSync
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
});
|
|
1103
|
+
|
|
1104
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js
|
|
1105
|
+
var require_stat = __commonJS({
|
|
1106
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
1107
|
+
"use strict";
|
|
1108
|
+
var fs = require_fs();
|
|
1109
|
+
var path = __require("path");
|
|
1110
|
+
var u = require_universalify().fromPromise;
|
|
1111
|
+
function getStats(src, dest, opts) {
|
|
1112
|
+
const statFunc = opts.dereference ? (file) => fs.stat(file, { bigint: true }) : (file) => fs.lstat(file, { bigint: true });
|
|
1113
|
+
return Promise.all([
|
|
1114
|
+
statFunc(src),
|
|
1115
|
+
statFunc(dest).catch((err) => {
|
|
1116
|
+
if (err.code === "ENOENT")
|
|
1117
|
+
return null;
|
|
1118
|
+
throw err;
|
|
1119
|
+
})
|
|
1120
|
+
]).then(([srcStat, destStat]) => ({ srcStat, destStat }));
|
|
1121
|
+
}
|
|
1122
|
+
function getStatsSync(src, dest, opts) {
|
|
1123
|
+
let destStat;
|
|
1124
|
+
const statFunc = opts.dereference ? (file) => fs.statSync(file, { bigint: true }) : (file) => fs.lstatSync(file, { bigint: true });
|
|
1125
|
+
const srcStat = statFunc(src);
|
|
1126
|
+
try {
|
|
1127
|
+
destStat = statFunc(dest);
|
|
1128
|
+
} catch (err) {
|
|
1129
|
+
if (err.code === "ENOENT")
|
|
1130
|
+
return { srcStat, destStat: null };
|
|
1131
|
+
throw err;
|
|
1132
|
+
}
|
|
1133
|
+
return { srcStat, destStat };
|
|
1134
|
+
}
|
|
1135
|
+
async function checkPaths(src, dest, funcName, opts) {
|
|
1136
|
+
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
1137
|
+
if (destStat) {
|
|
1138
|
+
if (areIdentical(srcStat, destStat)) {
|
|
1139
|
+
const srcBaseName = path.basename(src);
|
|
1140
|
+
const destBaseName = path.basename(dest);
|
|
1141
|
+
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1142
|
+
return { srcStat, destStat, isChangingCase: true };
|
|
1143
|
+
}
|
|
1144
|
+
throw new Error("Source and destination must not be the same.");
|
|
1145
|
+
}
|
|
1146
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
1147
|
+
throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);
|
|
1148
|
+
}
|
|
1149
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
1150
|
+
throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
|
1154
|
+
throw new Error(errMsg(src, dest, funcName));
|
|
1155
|
+
}
|
|
1156
|
+
return { srcStat, destStat };
|
|
1157
|
+
}
|
|
1158
|
+
function checkPathsSync(src, dest, funcName, opts) {
|
|
1159
|
+
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
1160
|
+
if (destStat) {
|
|
1161
|
+
if (areIdentical(srcStat, destStat)) {
|
|
1162
|
+
const srcBaseName = path.basename(src);
|
|
1163
|
+
const destBaseName = path.basename(dest);
|
|
1164
|
+
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1165
|
+
return { srcStat, destStat, isChangingCase: true };
|
|
1166
|
+
}
|
|
1167
|
+
throw new Error("Source and destination must not be the same.");
|
|
1168
|
+
}
|
|
1169
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) {
|
|
1170
|
+
throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);
|
|
1171
|
+
}
|
|
1172
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) {
|
|
1173
|
+
throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {
|
|
1177
|
+
throw new Error(errMsg(src, dest, funcName));
|
|
1178
|
+
}
|
|
1179
|
+
return { srcStat, destStat };
|
|
1180
|
+
}
|
|
1181
|
+
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
1182
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
1183
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
1184
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
1185
|
+
return;
|
|
1186
|
+
let destStat;
|
|
1187
|
+
try {
|
|
1188
|
+
destStat = await fs.stat(destParent, { bigint: true });
|
|
1189
|
+
} catch (err) {
|
|
1190
|
+
if (err.code === "ENOENT")
|
|
1191
|
+
return;
|
|
1192
|
+
throw err;
|
|
1193
|
+
}
|
|
1194
|
+
if (areIdentical(srcStat, destStat)) {
|
|
1195
|
+
throw new Error(errMsg(src, dest, funcName));
|
|
1196
|
+
}
|
|
1197
|
+
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
1198
|
+
}
|
|
1199
|
+
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
1200
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
1201
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
1202
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
1203
|
+
return;
|
|
1204
|
+
let destStat;
|
|
1205
|
+
try {
|
|
1206
|
+
destStat = fs.statSync(destParent, { bigint: true });
|
|
1207
|
+
} catch (err) {
|
|
1208
|
+
if (err.code === "ENOENT")
|
|
1209
|
+
return;
|
|
1210
|
+
throw err;
|
|
1211
|
+
}
|
|
1212
|
+
if (areIdentical(srcStat, destStat)) {
|
|
1213
|
+
throw new Error(errMsg(src, dest, funcName));
|
|
1214
|
+
}
|
|
1215
|
+
return checkParentPathsSync(src, srcStat, destParent, funcName);
|
|
1216
|
+
}
|
|
1217
|
+
function areIdentical(srcStat, destStat) {
|
|
1218
|
+
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
1219
|
+
}
|
|
1220
|
+
function isSrcSubdir(src, dest) {
|
|
1221
|
+
const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
|
|
1222
|
+
const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
|
|
1223
|
+
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
1224
|
+
}
|
|
1225
|
+
function errMsg(src, dest, funcName) {
|
|
1226
|
+
return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;
|
|
1227
|
+
}
|
|
1228
|
+
module.exports = {
|
|
1229
|
+
// checkPaths
|
|
1230
|
+
checkPaths: u(checkPaths),
|
|
1231
|
+
checkPathsSync,
|
|
1232
|
+
// checkParent
|
|
1233
|
+
checkParentPaths: u(checkParentPaths),
|
|
1234
|
+
checkParentPathsSync,
|
|
1235
|
+
// Misc
|
|
1236
|
+
isSrcSubdir,
|
|
1237
|
+
areIdentical
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
});
|
|
1241
|
+
|
|
1242
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js
|
|
1243
|
+
var require_copy = __commonJS({
|
|
1244
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
1245
|
+
"use strict";
|
|
1246
|
+
var fs = require_fs();
|
|
1247
|
+
var path = __require("path");
|
|
1248
|
+
var { mkdirs } = require_mkdirs();
|
|
1249
|
+
var { pathExists } = require_path_exists();
|
|
1250
|
+
var { utimesMillis } = require_utimes();
|
|
1251
|
+
var stat2 = require_stat();
|
|
1252
|
+
async function copy(src, dest, opts = {}) {
|
|
1253
|
+
if (typeof opts === "function") {
|
|
1254
|
+
opts = { filter: opts };
|
|
1255
|
+
}
|
|
1256
|
+
opts.clobber = "clobber" in opts ? !!opts.clobber : true;
|
|
1257
|
+
opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
|
|
1258
|
+
if (opts.preserveTimestamps && process.arch === "ia32") {
|
|
1259
|
+
process.emitWarning(
|
|
1260
|
+
"Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269",
|
|
1261
|
+
"Warning",
|
|
1262
|
+
"fs-extra-WARN0001"
|
|
1263
|
+
);
|
|
1264
|
+
}
|
|
1265
|
+
const { srcStat, destStat } = await stat2.checkPaths(src, dest, "copy", opts);
|
|
1266
|
+
await stat2.checkParentPaths(src, srcStat, dest, "copy");
|
|
1267
|
+
const include = await runFilter(src, dest, opts);
|
|
1268
|
+
if (!include)
|
|
1269
|
+
return;
|
|
1270
|
+
const destParent = path.dirname(dest);
|
|
1271
|
+
const dirExists = await pathExists(destParent);
|
|
1272
|
+
if (!dirExists) {
|
|
1273
|
+
await mkdirs(destParent);
|
|
1274
|
+
}
|
|
1275
|
+
await getStatsAndPerformCopy(destStat, src, dest, opts);
|
|
1276
|
+
}
|
|
1277
|
+
async function runFilter(src, dest, opts) {
|
|
1278
|
+
if (!opts.filter)
|
|
1279
|
+
return true;
|
|
1280
|
+
return opts.filter(src, dest);
|
|
1281
|
+
}
|
|
1282
|
+
async function getStatsAndPerformCopy(destStat, src, dest, opts) {
|
|
1283
|
+
const statFn = opts.dereference ? fs.stat : fs.lstat;
|
|
1284
|
+
const srcStat = await statFn(src);
|
|
1285
|
+
if (srcStat.isDirectory())
|
|
1286
|
+
return onDir(srcStat, destStat, src, dest, opts);
|
|
1287
|
+
if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())
|
|
1288
|
+
return onFile(srcStat, destStat, src, dest, opts);
|
|
1289
|
+
if (srcStat.isSymbolicLink())
|
|
1290
|
+
return onLink(destStat, src, dest, opts);
|
|
1291
|
+
if (srcStat.isSocket())
|
|
1292
|
+
throw new Error(`Cannot copy a socket file: ${src}`);
|
|
1293
|
+
if (srcStat.isFIFO())
|
|
1294
|
+
throw new Error(`Cannot copy a FIFO pipe: ${src}`);
|
|
1295
|
+
throw new Error(`Unknown file: ${src}`);
|
|
1296
|
+
}
|
|
1297
|
+
async function onFile(srcStat, destStat, src, dest, opts) {
|
|
1298
|
+
if (!destStat)
|
|
1299
|
+
return copyFile(srcStat, src, dest, opts);
|
|
1300
|
+
if (opts.overwrite) {
|
|
1301
|
+
await fs.unlink(dest);
|
|
1302
|
+
return copyFile(srcStat, src, dest, opts);
|
|
1303
|
+
}
|
|
1304
|
+
if (opts.errorOnExist) {
|
|
1305
|
+
throw new Error(`'${dest}' already exists`);
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
async function copyFile(srcStat, src, dest, opts) {
|
|
1309
|
+
await fs.copyFile(src, dest);
|
|
1310
|
+
if (opts.preserveTimestamps) {
|
|
1311
|
+
if (fileIsNotWritable(srcStat.mode)) {
|
|
1312
|
+
await makeFileWritable(dest, srcStat.mode);
|
|
1313
|
+
}
|
|
1314
|
+
const updatedSrcStat = await fs.stat(src);
|
|
1315
|
+
await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
1316
|
+
}
|
|
1317
|
+
return fs.chmod(dest, srcStat.mode);
|
|
1318
|
+
}
|
|
1319
|
+
function fileIsNotWritable(srcMode) {
|
|
1320
|
+
return (srcMode & 128) === 0;
|
|
1321
|
+
}
|
|
1322
|
+
function makeFileWritable(dest, srcMode) {
|
|
1323
|
+
return fs.chmod(dest, srcMode | 128);
|
|
1324
|
+
}
|
|
1325
|
+
async function onDir(srcStat, destStat, src, dest, opts) {
|
|
1326
|
+
if (!destStat) {
|
|
1327
|
+
await fs.mkdir(dest);
|
|
1328
|
+
}
|
|
1329
|
+
const items = await fs.readdir(src);
|
|
1330
|
+
await Promise.all(items.map(async (item) => {
|
|
1331
|
+
const srcItem = path.join(src, item);
|
|
1332
|
+
const destItem = path.join(dest, item);
|
|
1333
|
+
const include = await runFilter(srcItem, destItem, opts);
|
|
1334
|
+
if (!include)
|
|
1335
|
+
return;
|
|
1336
|
+
const { destStat: destStat2 } = await stat2.checkPaths(srcItem, destItem, "copy", opts);
|
|
1337
|
+
return getStatsAndPerformCopy(destStat2, srcItem, destItem, opts);
|
|
1338
|
+
}));
|
|
1339
|
+
if (!destStat) {
|
|
1340
|
+
await fs.chmod(dest, srcStat.mode);
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
async function onLink(destStat, src, dest, opts) {
|
|
1344
|
+
let resolvedSrc = await fs.readlink(src);
|
|
1345
|
+
if (opts.dereference) {
|
|
1346
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
1347
|
+
}
|
|
1348
|
+
if (!destStat) {
|
|
1349
|
+
return fs.symlink(resolvedSrc, dest);
|
|
1350
|
+
}
|
|
1351
|
+
let resolvedDest = null;
|
|
1352
|
+
try {
|
|
1353
|
+
resolvedDest = await fs.readlink(dest);
|
|
1354
|
+
} catch (e) {
|
|
1355
|
+
if (e.code === "EINVAL" || e.code === "UNKNOWN")
|
|
1356
|
+
return fs.symlink(resolvedSrc, dest);
|
|
1357
|
+
throw e;
|
|
1358
|
+
}
|
|
1359
|
+
if (opts.dereference) {
|
|
1360
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
1361
|
+
}
|
|
1362
|
+
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1363
|
+
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
1364
|
+
}
|
|
1365
|
+
if (stat2.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
1366
|
+
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
1367
|
+
}
|
|
1368
|
+
await fs.unlink(dest);
|
|
1369
|
+
return fs.symlink(resolvedSrc, dest);
|
|
1370
|
+
}
|
|
1371
|
+
module.exports = copy;
|
|
1372
|
+
}
|
|
1373
|
+
});
|
|
1374
|
+
|
|
1375
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js
|
|
1376
|
+
var require_copy_sync = __commonJS({
|
|
1377
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
|
|
1378
|
+
"use strict";
|
|
1379
|
+
var fs = require_graceful_fs();
|
|
1380
|
+
var path = __require("path");
|
|
1381
|
+
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
1382
|
+
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
1383
|
+
var stat2 = require_stat();
|
|
1384
|
+
function copySync(src, dest, opts) {
|
|
1385
|
+
if (typeof opts === "function") {
|
|
1386
|
+
opts = { filter: opts };
|
|
1387
|
+
}
|
|
1388
|
+
opts = opts || {};
|
|
1389
|
+
opts.clobber = "clobber" in opts ? !!opts.clobber : true;
|
|
1390
|
+
opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber;
|
|
1391
|
+
if (opts.preserveTimestamps && process.arch === "ia32") {
|
|
1392
|
+
process.emitWarning(
|
|
1393
|
+
"Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269",
|
|
1394
|
+
"Warning",
|
|
1395
|
+
"fs-extra-WARN0002"
|
|
1396
|
+
);
|
|
1397
|
+
}
|
|
1398
|
+
const { srcStat, destStat } = stat2.checkPathsSync(src, dest, "copy", opts);
|
|
1399
|
+
stat2.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
1400
|
+
if (opts.filter && !opts.filter(src, dest))
|
|
1401
|
+
return;
|
|
1402
|
+
const destParent = path.dirname(dest);
|
|
1403
|
+
if (!fs.existsSync(destParent))
|
|
1404
|
+
mkdirsSync(destParent);
|
|
1405
|
+
return getStats(destStat, src, dest, opts);
|
|
1406
|
+
}
|
|
1407
|
+
function getStats(destStat, src, dest, opts) {
|
|
1408
|
+
const statSync = opts.dereference ? fs.statSync : fs.lstatSync;
|
|
1409
|
+
const srcStat = statSync(src);
|
|
1410
|
+
if (srcStat.isDirectory())
|
|
1411
|
+
return onDir(srcStat, destStat, src, dest, opts);
|
|
1412
|
+
else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice())
|
|
1413
|
+
return onFile(srcStat, destStat, src, dest, opts);
|
|
1414
|
+
else if (srcStat.isSymbolicLink())
|
|
1415
|
+
return onLink(destStat, src, dest, opts);
|
|
1416
|
+
else if (srcStat.isSocket())
|
|
1417
|
+
throw new Error(`Cannot copy a socket file: ${src}`);
|
|
1418
|
+
else if (srcStat.isFIFO())
|
|
1419
|
+
throw new Error(`Cannot copy a FIFO pipe: ${src}`);
|
|
1420
|
+
throw new Error(`Unknown file: ${src}`);
|
|
1421
|
+
}
|
|
1422
|
+
function onFile(srcStat, destStat, src, dest, opts) {
|
|
1423
|
+
if (!destStat)
|
|
1424
|
+
return copyFile(srcStat, src, dest, opts);
|
|
1425
|
+
return mayCopyFile(srcStat, src, dest, opts);
|
|
1426
|
+
}
|
|
1427
|
+
function mayCopyFile(srcStat, src, dest, opts) {
|
|
1428
|
+
if (opts.overwrite) {
|
|
1429
|
+
fs.unlinkSync(dest);
|
|
1430
|
+
return copyFile(srcStat, src, dest, opts);
|
|
1431
|
+
} else if (opts.errorOnExist) {
|
|
1432
|
+
throw new Error(`'${dest}' already exists`);
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
function copyFile(srcStat, src, dest, opts) {
|
|
1436
|
+
fs.copyFileSync(src, dest);
|
|
1437
|
+
if (opts.preserveTimestamps)
|
|
1438
|
+
handleTimestamps(srcStat.mode, src, dest);
|
|
1439
|
+
return setDestMode(dest, srcStat.mode);
|
|
1440
|
+
}
|
|
1441
|
+
function handleTimestamps(srcMode, src, dest) {
|
|
1442
|
+
if (fileIsNotWritable(srcMode))
|
|
1443
|
+
makeFileWritable(dest, srcMode);
|
|
1444
|
+
return setDestTimestamps(src, dest);
|
|
1445
|
+
}
|
|
1446
|
+
function fileIsNotWritable(srcMode) {
|
|
1447
|
+
return (srcMode & 128) === 0;
|
|
1448
|
+
}
|
|
1449
|
+
function makeFileWritable(dest, srcMode) {
|
|
1450
|
+
return setDestMode(dest, srcMode | 128);
|
|
1451
|
+
}
|
|
1452
|
+
function setDestMode(dest, srcMode) {
|
|
1453
|
+
return fs.chmodSync(dest, srcMode);
|
|
1454
|
+
}
|
|
1455
|
+
function setDestTimestamps(src, dest) {
|
|
1456
|
+
const updatedSrcStat = fs.statSync(src);
|
|
1457
|
+
return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
1458
|
+
}
|
|
1459
|
+
function onDir(srcStat, destStat, src, dest, opts) {
|
|
1460
|
+
if (!destStat)
|
|
1461
|
+
return mkDirAndCopy(srcStat.mode, src, dest, opts);
|
|
1462
|
+
return copyDir(src, dest, opts);
|
|
1463
|
+
}
|
|
1464
|
+
function mkDirAndCopy(srcMode, src, dest, opts) {
|
|
1465
|
+
fs.mkdirSync(dest);
|
|
1466
|
+
copyDir(src, dest, opts);
|
|
1467
|
+
return setDestMode(dest, srcMode);
|
|
1468
|
+
}
|
|
1469
|
+
function copyDir(src, dest, opts) {
|
|
1470
|
+
fs.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
1471
|
+
}
|
|
1472
|
+
function copyDirItem(item, src, dest, opts) {
|
|
1473
|
+
const srcItem = path.join(src, item);
|
|
1474
|
+
const destItem = path.join(dest, item);
|
|
1475
|
+
if (opts.filter && !opts.filter(srcItem, destItem))
|
|
1476
|
+
return;
|
|
1477
|
+
const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
1478
|
+
return getStats(destStat, srcItem, destItem, opts);
|
|
1479
|
+
}
|
|
1480
|
+
function onLink(destStat, src, dest, opts) {
|
|
1481
|
+
let resolvedSrc = fs.readlinkSync(src);
|
|
1482
|
+
if (opts.dereference) {
|
|
1483
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
1484
|
+
}
|
|
1485
|
+
if (!destStat) {
|
|
1486
|
+
return fs.symlinkSync(resolvedSrc, dest);
|
|
1487
|
+
} else {
|
|
1488
|
+
let resolvedDest;
|
|
1489
|
+
try {
|
|
1490
|
+
resolvedDest = fs.readlinkSync(dest);
|
|
1491
|
+
} catch (err) {
|
|
1492
|
+
if (err.code === "EINVAL" || err.code === "UNKNOWN")
|
|
1493
|
+
return fs.symlinkSync(resolvedSrc, dest);
|
|
1494
|
+
throw err;
|
|
1495
|
+
}
|
|
1496
|
+
if (opts.dereference) {
|
|
1497
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
1498
|
+
}
|
|
1499
|
+
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1500
|
+
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
1501
|
+
}
|
|
1502
|
+
if (stat2.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
1503
|
+
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
1504
|
+
}
|
|
1505
|
+
return copyLink(resolvedSrc, dest);
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
function copyLink(resolvedSrc, dest) {
|
|
1509
|
+
fs.unlinkSync(dest);
|
|
1510
|
+
return fs.symlinkSync(resolvedSrc, dest);
|
|
1511
|
+
}
|
|
1512
|
+
module.exports = copySync;
|
|
1513
|
+
}
|
|
1514
|
+
});
|
|
1515
|
+
|
|
1516
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/index.js
|
|
1517
|
+
var require_copy2 = __commonJS({
|
|
1518
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/index.js"(exports, module) {
|
|
1519
|
+
"use strict";
|
|
1520
|
+
var u = require_universalify().fromPromise;
|
|
1521
|
+
module.exports = {
|
|
1522
|
+
copy: u(require_copy()),
|
|
1523
|
+
copySync: require_copy_sync()
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
});
|
|
1527
|
+
|
|
1528
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/remove/index.js
|
|
1529
|
+
var require_remove = __commonJS({
|
|
1530
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/remove/index.js"(exports, module) {
|
|
1531
|
+
"use strict";
|
|
1532
|
+
var fs = require_graceful_fs();
|
|
1533
|
+
var u = require_universalify().fromCallback;
|
|
1534
|
+
function remove(path, callback) {
|
|
1535
|
+
fs.rm(path, { recursive: true, force: true }, callback);
|
|
1536
|
+
}
|
|
1537
|
+
function removeSync(path) {
|
|
1538
|
+
fs.rmSync(path, { recursive: true, force: true });
|
|
1539
|
+
}
|
|
1540
|
+
module.exports = {
|
|
1541
|
+
remove: u(remove),
|
|
1542
|
+
removeSync
|
|
1543
|
+
};
|
|
1544
|
+
}
|
|
1545
|
+
});
|
|
1546
|
+
|
|
1547
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/empty/index.js
|
|
1548
|
+
var require_empty = __commonJS({
|
|
1549
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/empty/index.js"(exports, module) {
|
|
1550
|
+
"use strict";
|
|
1551
|
+
var u = require_universalify().fromPromise;
|
|
1552
|
+
var fs = require_fs();
|
|
1553
|
+
var path = __require("path");
|
|
1554
|
+
var mkdir = require_mkdirs();
|
|
1555
|
+
var remove = require_remove();
|
|
1556
|
+
var emptyDir = u(async function emptyDir2(dir) {
|
|
1557
|
+
let items;
|
|
1558
|
+
try {
|
|
1559
|
+
items = await fs.readdir(dir);
|
|
1560
|
+
} catch {
|
|
1561
|
+
return mkdir.mkdirs(dir);
|
|
1562
|
+
}
|
|
1563
|
+
return Promise.all(items.map((item) => remove.remove(path.join(dir, item))));
|
|
1564
|
+
});
|
|
1565
|
+
function emptyDirSync(dir) {
|
|
1566
|
+
let items;
|
|
1567
|
+
try {
|
|
1568
|
+
items = fs.readdirSync(dir);
|
|
1569
|
+
} catch {
|
|
1570
|
+
return mkdir.mkdirsSync(dir);
|
|
1571
|
+
}
|
|
1572
|
+
items.forEach((item) => {
|
|
1573
|
+
item = path.join(dir, item);
|
|
1574
|
+
remove.removeSync(item);
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
module.exports = {
|
|
1578
|
+
emptyDirSync,
|
|
1579
|
+
emptydirSync: emptyDirSync,
|
|
1580
|
+
emptyDir,
|
|
1581
|
+
emptydir: emptyDir
|
|
1582
|
+
};
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
|
|
1586
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js
|
|
1587
|
+
var require_file = __commonJS({
|
|
1588
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
1589
|
+
"use strict";
|
|
1590
|
+
var u = require_universalify().fromPromise;
|
|
1591
|
+
var path = __require("path");
|
|
1592
|
+
var fs = require_fs();
|
|
1593
|
+
var mkdir = require_mkdirs();
|
|
1594
|
+
async function createFile(file) {
|
|
1595
|
+
let stats;
|
|
1596
|
+
try {
|
|
1597
|
+
stats = await fs.stat(file);
|
|
1598
|
+
} catch {
|
|
1599
|
+
}
|
|
1600
|
+
if (stats && stats.isFile())
|
|
1601
|
+
return;
|
|
1602
|
+
const dir = path.dirname(file);
|
|
1603
|
+
let dirStats = null;
|
|
1604
|
+
try {
|
|
1605
|
+
dirStats = await fs.stat(dir);
|
|
1606
|
+
} catch (err) {
|
|
1607
|
+
if (err.code === "ENOENT") {
|
|
1608
|
+
await mkdir.mkdirs(dir);
|
|
1609
|
+
await fs.writeFile(file, "");
|
|
1610
|
+
return;
|
|
1611
|
+
} else {
|
|
1612
|
+
throw err;
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
if (dirStats.isDirectory()) {
|
|
1616
|
+
await fs.writeFile(file, "");
|
|
1617
|
+
} else {
|
|
1618
|
+
await fs.readdir(dir);
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
function createFileSync(file) {
|
|
1622
|
+
let stats;
|
|
1623
|
+
try {
|
|
1624
|
+
stats = fs.statSync(file);
|
|
1625
|
+
} catch {
|
|
1626
|
+
}
|
|
1627
|
+
if (stats && stats.isFile())
|
|
1628
|
+
return;
|
|
1629
|
+
const dir = path.dirname(file);
|
|
1630
|
+
try {
|
|
1631
|
+
if (!fs.statSync(dir).isDirectory()) {
|
|
1632
|
+
fs.readdirSync(dir);
|
|
1633
|
+
}
|
|
1634
|
+
} catch (err) {
|
|
1635
|
+
if (err && err.code === "ENOENT")
|
|
1636
|
+
mkdir.mkdirsSync(dir);
|
|
1637
|
+
else
|
|
1638
|
+
throw err;
|
|
1639
|
+
}
|
|
1640
|
+
fs.writeFileSync(file, "");
|
|
1641
|
+
}
|
|
1642
|
+
module.exports = {
|
|
1643
|
+
createFile: u(createFile),
|
|
1644
|
+
createFileSync
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
});
|
|
1648
|
+
|
|
1649
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js
|
|
1650
|
+
var require_link = __commonJS({
|
|
1651
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
1652
|
+
"use strict";
|
|
1653
|
+
var u = require_universalify().fromPromise;
|
|
1654
|
+
var path = __require("path");
|
|
1655
|
+
var fs = require_fs();
|
|
1656
|
+
var mkdir = require_mkdirs();
|
|
1657
|
+
var { pathExists } = require_path_exists();
|
|
1658
|
+
var { areIdentical } = require_stat();
|
|
1659
|
+
async function createLink(srcpath, dstpath) {
|
|
1660
|
+
let dstStat;
|
|
1661
|
+
try {
|
|
1662
|
+
dstStat = await fs.lstat(dstpath);
|
|
1663
|
+
} catch {
|
|
1664
|
+
}
|
|
1665
|
+
let srcStat;
|
|
1666
|
+
try {
|
|
1667
|
+
srcStat = await fs.lstat(srcpath);
|
|
1668
|
+
} catch (err) {
|
|
1669
|
+
err.message = err.message.replace("lstat", "ensureLink");
|
|
1670
|
+
throw err;
|
|
1671
|
+
}
|
|
1672
|
+
if (dstStat && areIdentical(srcStat, dstStat))
|
|
1673
|
+
return;
|
|
1674
|
+
const dir = path.dirname(dstpath);
|
|
1675
|
+
const dirExists = await pathExists(dir);
|
|
1676
|
+
if (!dirExists) {
|
|
1677
|
+
await mkdir.mkdirs(dir);
|
|
1678
|
+
}
|
|
1679
|
+
await fs.link(srcpath, dstpath);
|
|
1680
|
+
}
|
|
1681
|
+
function createLinkSync(srcpath, dstpath) {
|
|
1682
|
+
let dstStat;
|
|
1683
|
+
try {
|
|
1684
|
+
dstStat = fs.lstatSync(dstpath);
|
|
1685
|
+
} catch {
|
|
1686
|
+
}
|
|
1687
|
+
try {
|
|
1688
|
+
const srcStat = fs.lstatSync(srcpath);
|
|
1689
|
+
if (dstStat && areIdentical(srcStat, dstStat))
|
|
1690
|
+
return;
|
|
1691
|
+
} catch (err) {
|
|
1692
|
+
err.message = err.message.replace("lstat", "ensureLink");
|
|
1693
|
+
throw err;
|
|
1694
|
+
}
|
|
1695
|
+
const dir = path.dirname(dstpath);
|
|
1696
|
+
const dirExists = fs.existsSync(dir);
|
|
1697
|
+
if (dirExists)
|
|
1698
|
+
return fs.linkSync(srcpath, dstpath);
|
|
1699
|
+
mkdir.mkdirsSync(dir);
|
|
1700
|
+
return fs.linkSync(srcpath, dstpath);
|
|
1701
|
+
}
|
|
1702
|
+
module.exports = {
|
|
1703
|
+
createLink: u(createLink),
|
|
1704
|
+
createLinkSync
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1707
|
+
});
|
|
1708
|
+
|
|
1709
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js
|
|
1710
|
+
var require_symlink_paths = __commonJS({
|
|
1711
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
1712
|
+
"use strict";
|
|
1713
|
+
var path = __require("path");
|
|
1714
|
+
var fs = require_fs();
|
|
1715
|
+
var { pathExists } = require_path_exists();
|
|
1716
|
+
var u = require_universalify().fromPromise;
|
|
1717
|
+
async function symlinkPaths(srcpath, dstpath) {
|
|
1718
|
+
if (path.isAbsolute(srcpath)) {
|
|
1719
|
+
try {
|
|
1720
|
+
await fs.lstat(srcpath);
|
|
1721
|
+
} catch (err) {
|
|
1722
|
+
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
1723
|
+
throw err;
|
|
1724
|
+
}
|
|
1725
|
+
return {
|
|
1726
|
+
toCwd: srcpath,
|
|
1727
|
+
toDst: srcpath
|
|
1728
|
+
};
|
|
1729
|
+
}
|
|
1730
|
+
const dstdir = path.dirname(dstpath);
|
|
1731
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
1732
|
+
const exists = await pathExists(relativeToDst);
|
|
1733
|
+
if (exists) {
|
|
1734
|
+
return {
|
|
1735
|
+
toCwd: relativeToDst,
|
|
1736
|
+
toDst: srcpath
|
|
1737
|
+
};
|
|
1738
|
+
}
|
|
1739
|
+
try {
|
|
1740
|
+
await fs.lstat(srcpath);
|
|
1741
|
+
} catch (err) {
|
|
1742
|
+
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
1743
|
+
throw err;
|
|
1744
|
+
}
|
|
1745
|
+
return {
|
|
1746
|
+
toCwd: srcpath,
|
|
1747
|
+
toDst: path.relative(dstdir, srcpath)
|
|
1748
|
+
};
|
|
1749
|
+
}
|
|
1750
|
+
function symlinkPathsSync(srcpath, dstpath) {
|
|
1751
|
+
if (path.isAbsolute(srcpath)) {
|
|
1752
|
+
const exists2 = fs.existsSync(srcpath);
|
|
1753
|
+
if (!exists2)
|
|
1754
|
+
throw new Error("absolute srcpath does not exist");
|
|
1755
|
+
return {
|
|
1756
|
+
toCwd: srcpath,
|
|
1757
|
+
toDst: srcpath
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1760
|
+
const dstdir = path.dirname(dstpath);
|
|
1761
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
1762
|
+
const exists = fs.existsSync(relativeToDst);
|
|
1763
|
+
if (exists) {
|
|
1764
|
+
return {
|
|
1765
|
+
toCwd: relativeToDst,
|
|
1766
|
+
toDst: srcpath
|
|
1767
|
+
};
|
|
1768
|
+
}
|
|
1769
|
+
const srcExists = fs.existsSync(srcpath);
|
|
1770
|
+
if (!srcExists)
|
|
1771
|
+
throw new Error("relative srcpath does not exist");
|
|
1772
|
+
return {
|
|
1773
|
+
toCwd: srcpath,
|
|
1774
|
+
toDst: path.relative(dstdir, srcpath)
|
|
1775
|
+
};
|
|
1776
|
+
}
|
|
1777
|
+
module.exports = {
|
|
1778
|
+
symlinkPaths: u(symlinkPaths),
|
|
1779
|
+
symlinkPathsSync
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
});
|
|
1783
|
+
|
|
1784
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-type.js
|
|
1785
|
+
var require_symlink_type = __commonJS({
|
|
1786
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) {
|
|
1787
|
+
"use strict";
|
|
1788
|
+
var fs = require_fs();
|
|
1789
|
+
var u = require_universalify().fromPromise;
|
|
1790
|
+
async function symlinkType(srcpath, type) {
|
|
1791
|
+
if (type)
|
|
1792
|
+
return type;
|
|
1793
|
+
let stats;
|
|
1794
|
+
try {
|
|
1795
|
+
stats = await fs.lstat(srcpath);
|
|
1796
|
+
} catch {
|
|
1797
|
+
return "file";
|
|
1798
|
+
}
|
|
1799
|
+
return stats && stats.isDirectory() ? "dir" : "file";
|
|
1800
|
+
}
|
|
1801
|
+
function symlinkTypeSync(srcpath, type) {
|
|
1802
|
+
if (type)
|
|
1803
|
+
return type;
|
|
1804
|
+
let stats;
|
|
1805
|
+
try {
|
|
1806
|
+
stats = fs.lstatSync(srcpath);
|
|
1807
|
+
} catch {
|
|
1808
|
+
return "file";
|
|
1809
|
+
}
|
|
1810
|
+
return stats && stats.isDirectory() ? "dir" : "file";
|
|
1811
|
+
}
|
|
1812
|
+
module.exports = {
|
|
1813
|
+
symlinkType: u(symlinkType),
|
|
1814
|
+
symlinkTypeSync
|
|
1815
|
+
};
|
|
1816
|
+
}
|
|
1817
|
+
});
|
|
1818
|
+
|
|
1819
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js
|
|
1820
|
+
var require_symlink = __commonJS({
|
|
1821
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
1822
|
+
"use strict";
|
|
1823
|
+
var u = require_universalify().fromPromise;
|
|
1824
|
+
var path = __require("path");
|
|
1825
|
+
var fs = require_fs();
|
|
1826
|
+
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
1827
|
+
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
1828
|
+
var { symlinkType, symlinkTypeSync } = require_symlink_type();
|
|
1829
|
+
var { pathExists } = require_path_exists();
|
|
1830
|
+
var { areIdentical } = require_stat();
|
|
1831
|
+
async function createSymlink(srcpath, dstpath, type) {
|
|
1832
|
+
let stats;
|
|
1833
|
+
try {
|
|
1834
|
+
stats = await fs.lstat(dstpath);
|
|
1835
|
+
} catch {
|
|
1836
|
+
}
|
|
1837
|
+
if (stats && stats.isSymbolicLink()) {
|
|
1838
|
+
const [srcStat, dstStat] = await Promise.all([
|
|
1839
|
+
fs.stat(srcpath),
|
|
1840
|
+
fs.stat(dstpath)
|
|
1841
|
+
]);
|
|
1842
|
+
if (areIdentical(srcStat, dstStat))
|
|
1843
|
+
return;
|
|
1844
|
+
}
|
|
1845
|
+
const relative = await symlinkPaths(srcpath, dstpath);
|
|
1846
|
+
srcpath = relative.toDst;
|
|
1847
|
+
const toType = await symlinkType(relative.toCwd, type);
|
|
1848
|
+
const dir = path.dirname(dstpath);
|
|
1849
|
+
if (!await pathExists(dir)) {
|
|
1850
|
+
await mkdirs(dir);
|
|
1851
|
+
}
|
|
1852
|
+
return fs.symlink(srcpath, dstpath, toType);
|
|
1853
|
+
}
|
|
1854
|
+
function createSymlinkSync(srcpath, dstpath, type) {
|
|
1855
|
+
let stats;
|
|
1856
|
+
try {
|
|
1857
|
+
stats = fs.lstatSync(dstpath);
|
|
1858
|
+
} catch {
|
|
1859
|
+
}
|
|
1860
|
+
if (stats && stats.isSymbolicLink()) {
|
|
1861
|
+
const srcStat = fs.statSync(srcpath);
|
|
1862
|
+
const dstStat = fs.statSync(dstpath);
|
|
1863
|
+
if (areIdentical(srcStat, dstStat))
|
|
1864
|
+
return;
|
|
1865
|
+
}
|
|
1866
|
+
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
1867
|
+
srcpath = relative.toDst;
|
|
1868
|
+
type = symlinkTypeSync(relative.toCwd, type);
|
|
1869
|
+
const dir = path.dirname(dstpath);
|
|
1870
|
+
const exists = fs.existsSync(dir);
|
|
1871
|
+
if (exists)
|
|
1872
|
+
return fs.symlinkSync(srcpath, dstpath, type);
|
|
1873
|
+
mkdirsSync(dir);
|
|
1874
|
+
return fs.symlinkSync(srcpath, dstpath, type);
|
|
1875
|
+
}
|
|
1876
|
+
module.exports = {
|
|
1877
|
+
createSymlink: u(createSymlink),
|
|
1878
|
+
createSymlinkSync
|
|
1879
|
+
};
|
|
1880
|
+
}
|
|
1881
|
+
});
|
|
1882
|
+
|
|
1883
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/index.js
|
|
1884
|
+
var require_ensure = __commonJS({
|
|
1885
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/index.js"(exports, module) {
|
|
1886
|
+
"use strict";
|
|
1887
|
+
var { createFile, createFileSync } = require_file();
|
|
1888
|
+
var { createLink, createLinkSync } = require_link();
|
|
1889
|
+
var { createSymlink, createSymlinkSync } = require_symlink();
|
|
1890
|
+
module.exports = {
|
|
1891
|
+
// file
|
|
1892
|
+
createFile,
|
|
1893
|
+
createFileSync,
|
|
1894
|
+
ensureFile: createFile,
|
|
1895
|
+
ensureFileSync: createFileSync,
|
|
1896
|
+
// link
|
|
1897
|
+
createLink,
|
|
1898
|
+
createLinkSync,
|
|
1899
|
+
ensureLink: createLink,
|
|
1900
|
+
ensureLinkSync: createLinkSync,
|
|
1901
|
+
// symlink
|
|
1902
|
+
createSymlink,
|
|
1903
|
+
createSymlinkSync,
|
|
1904
|
+
ensureSymlink: createSymlink,
|
|
1905
|
+
ensureSymlinkSync: createSymlinkSync
|
|
1906
|
+
};
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
|
|
1910
|
+
// node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
|
|
1911
|
+
var require_utils2 = __commonJS({
|
|
1912
|
+
"node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module) {
|
|
1913
|
+
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
1914
|
+
const EOF = finalEOL ? EOL : "";
|
|
1915
|
+
const str = JSON.stringify(obj, replacer, spaces);
|
|
1916
|
+
return str.replace(/\n/g, EOL) + EOF;
|
|
1917
|
+
}
|
|
1918
|
+
function stripBom(content) {
|
|
1919
|
+
if (Buffer.isBuffer(content))
|
|
1920
|
+
content = content.toString("utf8");
|
|
1921
|
+
return content.replace(/^\uFEFF/, "");
|
|
1922
|
+
}
|
|
1923
|
+
module.exports = { stringify, stripBom };
|
|
1924
|
+
}
|
|
1925
|
+
});
|
|
1926
|
+
|
|
1927
|
+
// node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js
|
|
1928
|
+
var require_jsonfile = __commonJS({
|
|
1929
|
+
"node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports, module) {
|
|
1930
|
+
var _fs;
|
|
1931
|
+
try {
|
|
1932
|
+
_fs = require_graceful_fs();
|
|
1933
|
+
} catch (_) {
|
|
1934
|
+
_fs = __require("fs");
|
|
1935
|
+
}
|
|
1936
|
+
var universalify = require_universalify();
|
|
1937
|
+
var { stringify, stripBom } = require_utils2();
|
|
1938
|
+
async function _readFile(file, options = {}) {
|
|
1939
|
+
if (typeof options === "string") {
|
|
1940
|
+
options = { encoding: options };
|
|
1941
|
+
}
|
|
1942
|
+
const fs = options.fs || _fs;
|
|
1943
|
+
const shouldThrow = "throws" in options ? options.throws : true;
|
|
1944
|
+
let data = await universalify.fromCallback(fs.readFile)(file, options);
|
|
1945
|
+
data = stripBom(data);
|
|
1946
|
+
let obj;
|
|
1947
|
+
try {
|
|
1948
|
+
obj = JSON.parse(data, options ? options.reviver : null);
|
|
1949
|
+
} catch (err) {
|
|
1950
|
+
if (shouldThrow) {
|
|
1951
|
+
err.message = `${file}: ${err.message}`;
|
|
1952
|
+
throw err;
|
|
1953
|
+
} else {
|
|
1954
|
+
return null;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
return obj;
|
|
1958
|
+
}
|
|
1959
|
+
var readFile2 = universalify.fromPromise(_readFile);
|
|
1960
|
+
function readFileSync2(file, options = {}) {
|
|
1961
|
+
if (typeof options === "string") {
|
|
1962
|
+
options = { encoding: options };
|
|
1963
|
+
}
|
|
1964
|
+
const fs = options.fs || _fs;
|
|
1965
|
+
const shouldThrow = "throws" in options ? options.throws : true;
|
|
1966
|
+
try {
|
|
1967
|
+
let content = fs.readFileSync(file, options);
|
|
1968
|
+
content = stripBom(content);
|
|
1969
|
+
return JSON.parse(content, options.reviver);
|
|
1970
|
+
} catch (err) {
|
|
1971
|
+
if (shouldThrow) {
|
|
1972
|
+
err.message = `${file}: ${err.message}`;
|
|
1973
|
+
throw err;
|
|
1974
|
+
} else {
|
|
1975
|
+
return null;
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
async function _writeFile(file, obj, options = {}) {
|
|
1980
|
+
const fs = options.fs || _fs;
|
|
1981
|
+
const str = stringify(obj, options);
|
|
1982
|
+
await universalify.fromCallback(fs.writeFile)(file, str, options);
|
|
1983
|
+
}
|
|
1984
|
+
var writeFile = universalify.fromPromise(_writeFile);
|
|
1985
|
+
function writeFileSync(file, obj, options = {}) {
|
|
1986
|
+
const fs = options.fs || _fs;
|
|
1987
|
+
const str = stringify(obj, options);
|
|
1988
|
+
return fs.writeFileSync(file, str, options);
|
|
1989
|
+
}
|
|
1990
|
+
var jsonfile = {
|
|
1991
|
+
readFile: readFile2,
|
|
1992
|
+
readFileSync: readFileSync2,
|
|
1993
|
+
writeFile,
|
|
1994
|
+
writeFileSync
|
|
1995
|
+
};
|
|
1996
|
+
module.exports = jsonfile;
|
|
1997
|
+
}
|
|
1998
|
+
});
|
|
1999
|
+
|
|
2000
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/jsonfile.js
|
|
2001
|
+
var require_jsonfile2 = __commonJS({
|
|
2002
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module) {
|
|
2003
|
+
"use strict";
|
|
2004
|
+
var jsonFile = require_jsonfile();
|
|
2005
|
+
module.exports = {
|
|
2006
|
+
// jsonfile exports
|
|
2007
|
+
readJson: jsonFile.readFile,
|
|
2008
|
+
readJsonSync: jsonFile.readFileSync,
|
|
2009
|
+
writeJson: jsonFile.writeFile,
|
|
2010
|
+
writeJsonSync: jsonFile.writeFileSync
|
|
2011
|
+
};
|
|
2012
|
+
}
|
|
2013
|
+
});
|
|
2014
|
+
|
|
2015
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/output-file/index.js
|
|
2016
|
+
var require_output_file = __commonJS({
|
|
2017
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/output-file/index.js"(exports, module) {
|
|
2018
|
+
"use strict";
|
|
2019
|
+
var u = require_universalify().fromPromise;
|
|
2020
|
+
var fs = require_fs();
|
|
2021
|
+
var path = __require("path");
|
|
2022
|
+
var mkdir = require_mkdirs();
|
|
2023
|
+
var pathExists = require_path_exists().pathExists;
|
|
2024
|
+
async function outputFile(file, data, encoding = "utf-8") {
|
|
2025
|
+
const dir = path.dirname(file);
|
|
2026
|
+
if (!await pathExists(dir)) {
|
|
2027
|
+
await mkdir.mkdirs(dir);
|
|
2028
|
+
}
|
|
2029
|
+
return fs.writeFile(file, data, encoding);
|
|
2030
|
+
}
|
|
2031
|
+
function outputFileSync(file, ...args) {
|
|
2032
|
+
const dir = path.dirname(file);
|
|
2033
|
+
if (!fs.existsSync(dir)) {
|
|
2034
|
+
mkdir.mkdirsSync(dir);
|
|
2035
|
+
}
|
|
2036
|
+
fs.writeFileSync(file, ...args);
|
|
2037
|
+
}
|
|
2038
|
+
module.exports = {
|
|
2039
|
+
outputFile: u(outputFile),
|
|
2040
|
+
outputFileSync
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
});
|
|
2044
|
+
|
|
2045
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/output-json.js
|
|
2046
|
+
var require_output_json = __commonJS({
|
|
2047
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/output-json.js"(exports, module) {
|
|
2048
|
+
"use strict";
|
|
2049
|
+
var { stringify } = require_utils2();
|
|
2050
|
+
var { outputFile } = require_output_file();
|
|
2051
|
+
async function outputJson(file, data, options = {}) {
|
|
2052
|
+
const str = stringify(data, options);
|
|
2053
|
+
await outputFile(file, str, options);
|
|
2054
|
+
}
|
|
2055
|
+
module.exports = outputJson;
|
|
2056
|
+
}
|
|
2057
|
+
});
|
|
2058
|
+
|
|
2059
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/output-json-sync.js
|
|
2060
|
+
var require_output_json_sync = __commonJS({
|
|
2061
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) {
|
|
2062
|
+
"use strict";
|
|
2063
|
+
var { stringify } = require_utils2();
|
|
2064
|
+
var { outputFileSync } = require_output_file();
|
|
2065
|
+
function outputJsonSync(file, data, options) {
|
|
2066
|
+
const str = stringify(data, options);
|
|
2067
|
+
outputFileSync(file, str, options);
|
|
2068
|
+
}
|
|
2069
|
+
module.exports = outputJsonSync;
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
|
|
2073
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/index.js
|
|
2074
|
+
var require_json = __commonJS({
|
|
2075
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/json/index.js"(exports, module) {
|
|
2076
|
+
"use strict";
|
|
2077
|
+
var u = require_universalify().fromPromise;
|
|
2078
|
+
var jsonFile = require_jsonfile2();
|
|
2079
|
+
jsonFile.outputJson = u(require_output_json());
|
|
2080
|
+
jsonFile.outputJsonSync = require_output_json_sync();
|
|
2081
|
+
jsonFile.outputJSON = jsonFile.outputJson;
|
|
2082
|
+
jsonFile.outputJSONSync = jsonFile.outputJsonSync;
|
|
2083
|
+
jsonFile.writeJSON = jsonFile.writeJson;
|
|
2084
|
+
jsonFile.writeJSONSync = jsonFile.writeJsonSync;
|
|
2085
|
+
jsonFile.readJSON = jsonFile.readJson;
|
|
2086
|
+
jsonFile.readJSONSync = jsonFile.readJsonSync;
|
|
2087
|
+
module.exports = jsonFile;
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
|
|
2091
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js
|
|
2092
|
+
var require_move = __commonJS({
|
|
2093
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
2094
|
+
"use strict";
|
|
2095
|
+
var fs = require_fs();
|
|
2096
|
+
var path = __require("path");
|
|
2097
|
+
var { copy } = require_copy2();
|
|
2098
|
+
var { remove } = require_remove();
|
|
2099
|
+
var { mkdirp } = require_mkdirs();
|
|
2100
|
+
var { pathExists } = require_path_exists();
|
|
2101
|
+
var stat2 = require_stat();
|
|
2102
|
+
async function move(src, dest, opts = {}) {
|
|
2103
|
+
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2104
|
+
const { srcStat, isChangingCase = false } = await stat2.checkPaths(src, dest, "move", opts);
|
|
2105
|
+
await stat2.checkParentPaths(src, srcStat, dest, "move");
|
|
2106
|
+
const destParent = path.dirname(dest);
|
|
2107
|
+
const parsedParentPath = path.parse(destParent);
|
|
2108
|
+
if (parsedParentPath.root !== destParent) {
|
|
2109
|
+
await mkdirp(destParent);
|
|
2110
|
+
}
|
|
2111
|
+
return doRename(src, dest, overwrite, isChangingCase);
|
|
2112
|
+
}
|
|
2113
|
+
async function doRename(src, dest, overwrite, isChangingCase) {
|
|
2114
|
+
if (!isChangingCase) {
|
|
2115
|
+
if (overwrite) {
|
|
2116
|
+
await remove(dest);
|
|
2117
|
+
} else if (await pathExists(dest)) {
|
|
2118
|
+
throw new Error("dest already exists.");
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
try {
|
|
2122
|
+
await fs.rename(src, dest);
|
|
2123
|
+
} catch (err) {
|
|
2124
|
+
if (err.code !== "EXDEV") {
|
|
2125
|
+
throw err;
|
|
2126
|
+
}
|
|
2127
|
+
await moveAcrossDevice(src, dest, overwrite);
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
async function moveAcrossDevice(src, dest, overwrite) {
|
|
2131
|
+
const opts = {
|
|
2132
|
+
overwrite,
|
|
2133
|
+
errorOnExist: true,
|
|
2134
|
+
preserveTimestamps: true
|
|
2135
|
+
};
|
|
2136
|
+
await copy(src, dest, opts);
|
|
2137
|
+
return remove(src);
|
|
2138
|
+
}
|
|
2139
|
+
module.exports = move;
|
|
2140
|
+
}
|
|
2141
|
+
});
|
|
2142
|
+
|
|
2143
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js
|
|
2144
|
+
var require_move_sync = __commonJS({
|
|
2145
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
|
|
2146
|
+
"use strict";
|
|
2147
|
+
var fs = require_graceful_fs();
|
|
2148
|
+
var path = __require("path");
|
|
2149
|
+
var copySync = require_copy2().copySync;
|
|
2150
|
+
var removeSync = require_remove().removeSync;
|
|
2151
|
+
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
2152
|
+
var stat2 = require_stat();
|
|
2153
|
+
function moveSync(src, dest, opts) {
|
|
2154
|
+
opts = opts || {};
|
|
2155
|
+
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2156
|
+
const { srcStat, isChangingCase = false } = stat2.checkPathsSync(src, dest, "move", opts);
|
|
2157
|
+
stat2.checkParentPathsSync(src, srcStat, dest, "move");
|
|
2158
|
+
if (!isParentRoot(dest))
|
|
2159
|
+
mkdirpSync(path.dirname(dest));
|
|
2160
|
+
return doRename(src, dest, overwrite, isChangingCase);
|
|
2161
|
+
}
|
|
2162
|
+
function isParentRoot(dest) {
|
|
2163
|
+
const parent = path.dirname(dest);
|
|
2164
|
+
const parsedPath = path.parse(parent);
|
|
2165
|
+
return parsedPath.root === parent;
|
|
2166
|
+
}
|
|
2167
|
+
function doRename(src, dest, overwrite, isChangingCase) {
|
|
2168
|
+
if (isChangingCase)
|
|
2169
|
+
return rename(src, dest, overwrite);
|
|
2170
|
+
if (overwrite) {
|
|
2171
|
+
removeSync(dest);
|
|
2172
|
+
return rename(src, dest, overwrite);
|
|
2173
|
+
}
|
|
2174
|
+
if (fs.existsSync(dest))
|
|
2175
|
+
throw new Error("dest already exists.");
|
|
2176
|
+
return rename(src, dest, overwrite);
|
|
2177
|
+
}
|
|
2178
|
+
function rename(src, dest, overwrite) {
|
|
2179
|
+
try {
|
|
2180
|
+
fs.renameSync(src, dest);
|
|
2181
|
+
} catch (err) {
|
|
2182
|
+
if (err.code !== "EXDEV")
|
|
2183
|
+
throw err;
|
|
2184
|
+
return moveAcrossDevice(src, dest, overwrite);
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
function moveAcrossDevice(src, dest, overwrite) {
|
|
2188
|
+
const opts = {
|
|
2189
|
+
overwrite,
|
|
2190
|
+
errorOnExist: true,
|
|
2191
|
+
preserveTimestamps: true
|
|
2192
|
+
};
|
|
2193
|
+
copySync(src, dest, opts);
|
|
2194
|
+
return removeSync(src);
|
|
2195
|
+
}
|
|
2196
|
+
module.exports = moveSync;
|
|
2197
|
+
}
|
|
2198
|
+
});
|
|
2199
|
+
|
|
2200
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/index.js
|
|
2201
|
+
var require_move2 = __commonJS({
|
|
2202
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/index.js"(exports, module) {
|
|
2203
|
+
"use strict";
|
|
2204
|
+
var u = require_universalify().fromPromise;
|
|
2205
|
+
module.exports = {
|
|
2206
|
+
move: u(require_move()),
|
|
2207
|
+
moveSync: require_move_sync()
|
|
2208
|
+
};
|
|
2209
|
+
}
|
|
2210
|
+
});
|
|
2211
|
+
|
|
2212
|
+
// node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/index.js
|
|
2213
|
+
var require_lib = __commonJS({
|
|
2214
|
+
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/index.js"(exports, module) {
|
|
2215
|
+
"use strict";
|
|
2216
|
+
module.exports = {
|
|
2217
|
+
// Export promiseified graceful-fs:
|
|
2218
|
+
...require_fs(),
|
|
2219
|
+
// Export extra methods:
|
|
2220
|
+
...require_copy2(),
|
|
2221
|
+
...require_empty(),
|
|
2222
|
+
...require_ensure(),
|
|
2223
|
+
...require_json(),
|
|
2224
|
+
...require_mkdirs(),
|
|
2225
|
+
...require_move2(),
|
|
2226
|
+
...require_output_file(),
|
|
2227
|
+
...require_path_exists(),
|
|
2228
|
+
...require_remove()
|
|
2229
|
+
};
|
|
2230
|
+
}
|
|
2231
|
+
});
|
|
2232
|
+
|
|
34
2233
|
// node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
|
|
35
2234
|
var require_resolve_from = __commonJS({
|
|
36
2235
|
"node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js"(exports, module) {
|
|
@@ -593,7 +2792,7 @@ var require_keyword = __commonJS({
|
|
|
593
2792
|
});
|
|
594
2793
|
|
|
595
2794
|
// node_modules/.pnpm/@babel+helper-validator-identifier@7.22.20/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
596
|
-
var
|
|
2795
|
+
var require_lib2 = __commonJS({
|
|
597
2796
|
"node_modules/.pnpm/@babel+helper-validator-identifier@7.22.20/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
|
|
598
2797
|
"use strict";
|
|
599
2798
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -975,23 +3174,23 @@ var require_conversions = __commonJS({
|
|
|
975
3174
|
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
976
3175
|
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
977
3176
|
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
978
|
-
const
|
|
979
|
-
return [x * 100, y * 100,
|
|
3177
|
+
const z2 = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
3178
|
+
return [x * 100, y * 100, z2 * 100];
|
|
980
3179
|
};
|
|
981
3180
|
convert.rgb.lab = function(rgb) {
|
|
982
3181
|
const xyz = convert.rgb.xyz(rgb);
|
|
983
3182
|
let x = xyz[0];
|
|
984
3183
|
let y = xyz[1];
|
|
985
|
-
let
|
|
3184
|
+
let z2 = xyz[2];
|
|
986
3185
|
x /= 95.047;
|
|
987
3186
|
y /= 100;
|
|
988
|
-
|
|
3187
|
+
z2 /= 108.883;
|
|
989
3188
|
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
990
3189
|
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
991
|
-
|
|
3190
|
+
z2 = z2 > 8856e-6 ? z2 ** (1 / 3) : 7.787 * z2 + 16 / 116;
|
|
992
3191
|
const l = 116 * y - 16;
|
|
993
3192
|
const a = 500 * (x - y);
|
|
994
|
-
const b = 200 * (y -
|
|
3193
|
+
const b = 200 * (y - z2);
|
|
995
3194
|
return [l, a, b];
|
|
996
3195
|
};
|
|
997
3196
|
convert.hsl.rgb = function(hsl) {
|
|
@@ -1155,13 +3354,13 @@ var require_conversions = __commonJS({
|
|
|
1155
3354
|
convert.xyz.rgb = function(xyz) {
|
|
1156
3355
|
const x = xyz[0] / 100;
|
|
1157
3356
|
const y = xyz[1] / 100;
|
|
1158
|
-
const
|
|
3357
|
+
const z2 = xyz[2] / 100;
|
|
1159
3358
|
let r;
|
|
1160
3359
|
let g;
|
|
1161
3360
|
let b;
|
|
1162
|
-
r = x * 3.2406 + y * -1.5372 +
|
|
1163
|
-
g = x * -0.9689 + y * 1.8758 +
|
|
1164
|
-
b = x * 0.0557 + y * -0.204 +
|
|
3361
|
+
r = x * 3.2406 + y * -1.5372 + z2 * -0.4986;
|
|
3362
|
+
g = x * -0.9689 + y * 1.8758 + z2 * 0.0415;
|
|
3363
|
+
b = x * 0.0557 + y * -0.204 + z2 * 1.057;
|
|
1165
3364
|
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
|
1166
3365
|
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
1167
3366
|
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
@@ -1173,16 +3372,16 @@ var require_conversions = __commonJS({
|
|
|
1173
3372
|
convert.xyz.lab = function(xyz) {
|
|
1174
3373
|
let x = xyz[0];
|
|
1175
3374
|
let y = xyz[1];
|
|
1176
|
-
let
|
|
3375
|
+
let z2 = xyz[2];
|
|
1177
3376
|
x /= 95.047;
|
|
1178
3377
|
y /= 100;
|
|
1179
|
-
|
|
3378
|
+
z2 /= 108.883;
|
|
1180
3379
|
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
1181
3380
|
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
1182
|
-
|
|
3381
|
+
z2 = z2 > 8856e-6 ? z2 ** (1 / 3) : 7.787 * z2 + 16 / 116;
|
|
1183
3382
|
const l = 116 * y - 16;
|
|
1184
3383
|
const a = 500 * (x - y);
|
|
1185
|
-
const b = 200 * (y -
|
|
3384
|
+
const b = 200 * (y - z2);
|
|
1186
3385
|
return [l, a, b];
|
|
1187
3386
|
};
|
|
1188
3387
|
convert.lab.xyz = function(lab) {
|
|
@@ -1191,20 +3390,20 @@ var require_conversions = __commonJS({
|
|
|
1191
3390
|
const b = lab[2];
|
|
1192
3391
|
let x;
|
|
1193
3392
|
let y;
|
|
1194
|
-
let
|
|
3393
|
+
let z2;
|
|
1195
3394
|
y = (l + 16) / 116;
|
|
1196
3395
|
x = a / 500 + y;
|
|
1197
|
-
|
|
3396
|
+
z2 = y - b / 200;
|
|
1198
3397
|
const y2 = y ** 3;
|
|
1199
3398
|
const x2 = x ** 3;
|
|
1200
|
-
const
|
|
3399
|
+
const z22 = z2 ** 3;
|
|
1201
3400
|
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
|
1202
3401
|
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
|
1203
|
-
|
|
3402
|
+
z2 = z22 > 8856e-6 ? z22 : (z2 - 16 / 116) / 7.787;
|
|
1204
3403
|
x *= 95.047;
|
|
1205
3404
|
y *= 100;
|
|
1206
|
-
|
|
1207
|
-
return [x, y,
|
|
3405
|
+
z2 *= 108.883;
|
|
3406
|
+
return [x, y, z2];
|
|
1208
3407
|
};
|
|
1209
3408
|
convert.lab.lch = function(lab) {
|
|
1210
3409
|
const l = lab[0];
|
|
@@ -2200,7 +4399,7 @@ var require_source = __commonJS({
|
|
|
2200
4399
|
});
|
|
2201
4400
|
|
|
2202
4401
|
// node_modules/.pnpm/@babel+highlight@7.23.4/node_modules/@babel/highlight/lib/index.js
|
|
2203
|
-
var
|
|
4402
|
+
var require_lib3 = __commonJS({
|
|
2204
4403
|
"node_modules/.pnpm/@babel+highlight@7.23.4/node_modules/@babel/highlight/lib/index.js"(exports) {
|
|
2205
4404
|
"use strict";
|
|
2206
4405
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2209,7 +4408,7 @@ var require_lib2 = __commonJS({
|
|
|
2209
4408
|
exports.default = highlight;
|
|
2210
4409
|
exports.shouldHighlight = shouldHighlight;
|
|
2211
4410
|
var _jsTokens = require_js_tokens();
|
|
2212
|
-
var _helperValidatorIdentifier =
|
|
4411
|
+
var _helperValidatorIdentifier = require_lib2();
|
|
2213
4412
|
var _chalk = _interopRequireWildcard(require_source(), true);
|
|
2214
4413
|
function _getRequireWildcardCache(e) {
|
|
2215
4414
|
if ("function" != typeof WeakMap)
|
|
@@ -2330,7 +4529,7 @@ var require_lib2 = __commonJS({
|
|
|
2330
4529
|
});
|
|
2331
4530
|
|
|
2332
4531
|
// node_modules/.pnpm/@babel+code-frame@7.23.5/node_modules/@babel/code-frame/lib/index.js
|
|
2333
|
-
var
|
|
4532
|
+
var require_lib4 = __commonJS({
|
|
2334
4533
|
"node_modules/.pnpm/@babel+code-frame@7.23.5/node_modules/@babel/code-frame/lib/index.js"(exports) {
|
|
2335
4534
|
"use strict";
|
|
2336
4535
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -2338,7 +4537,7 @@ var require_lib3 = __commonJS({
|
|
|
2338
4537
|
});
|
|
2339
4538
|
exports.codeFrameColumns = codeFrameColumns;
|
|
2340
4539
|
exports.default = _default;
|
|
2341
|
-
var _highlight =
|
|
4540
|
+
var _highlight = require_lib3();
|
|
2342
4541
|
var _chalk = _interopRequireWildcard(require_source(), true);
|
|
2343
4542
|
function _getRequireWildcardCache(e) {
|
|
2344
4543
|
if ("function" != typeof WeakMap)
|
|
@@ -2519,7 +4718,7 @@ var require_parse_json = __commonJS({
|
|
|
2519
4718
|
var errorEx = require_error_ex();
|
|
2520
4719
|
var fallback = require_json_parse_even_better_errors();
|
|
2521
4720
|
var { default: LinesAndColumns } = require_build();
|
|
2522
|
-
var { codeFrameColumns } =
|
|
4721
|
+
var { codeFrameColumns } = require_lib4();
|
|
2523
4722
|
var JSONError = errorEx("JSONError", {
|
|
2524
4723
|
fileName: errorEx.append("in %s"),
|
|
2525
4724
|
codeFrame: errorEx.append("\n\n%s\n")
|
|
@@ -3253,7 +5452,7 @@ var require_float = __commonJS({
|
|
|
3253
5452
|
});
|
|
3254
5453
|
|
|
3255
5454
|
// node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/schema/json.js
|
|
3256
|
-
var
|
|
5455
|
+
var require_json2 = __commonJS({
|
|
3257
5456
|
"node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/schema/json.js"(exports, module) {
|
|
3258
5457
|
"use strict";
|
|
3259
5458
|
module.exports = require_failsafe().extend({
|
|
@@ -3271,7 +5470,7 @@ var require_json = __commonJS({
|
|
|
3271
5470
|
var require_core = __commonJS({
|
|
3272
5471
|
"node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/schema/core.js"(exports, module) {
|
|
3273
5472
|
"use strict";
|
|
3274
|
-
module.exports =
|
|
5473
|
+
module.exports = require_json2();
|
|
3275
5474
|
}
|
|
3276
5475
|
});
|
|
3277
5476
|
|
|
@@ -5400,7 +7599,7 @@ var require_js_yaml = __commonJS({
|
|
|
5400
7599
|
module.exports.Type = require_type();
|
|
5401
7600
|
module.exports.Schema = require_schema();
|
|
5402
7601
|
module.exports.FAILSAFE_SCHEMA = require_failsafe();
|
|
5403
|
-
module.exports.JSON_SCHEMA =
|
|
7602
|
+
module.exports.JSON_SCHEMA = require_json2();
|
|
5404
7603
|
module.exports.CORE_SCHEMA = require_core();
|
|
5405
7604
|
module.exports.DEFAULT_SCHEMA = require_default();
|
|
5406
7605
|
module.exports.load = loader.load;
|
|
@@ -5611,7 +7810,7 @@ var require_util2 = __commonJS({
|
|
|
5611
7810
|
return path;
|
|
5612
7811
|
}
|
|
5613
7812
|
exports.normalize = normalize;
|
|
5614
|
-
function
|
|
7813
|
+
function join4(aRoot, aPath) {
|
|
5615
7814
|
if (aRoot === "") {
|
|
5616
7815
|
aRoot = ".";
|
|
5617
7816
|
}
|
|
@@ -5643,7 +7842,7 @@ var require_util2 = __commonJS({
|
|
|
5643
7842
|
}
|
|
5644
7843
|
return joined;
|
|
5645
7844
|
}
|
|
5646
|
-
exports.join =
|
|
7845
|
+
exports.join = join4;
|
|
5647
7846
|
exports.isAbsolute = function(aPath) {
|
|
5648
7847
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
5649
7848
|
};
|
|
@@ -5816,7 +8015,7 @@ var require_util2 = __commonJS({
|
|
|
5816
8015
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
5817
8016
|
}
|
|
5818
8017
|
}
|
|
5819
|
-
sourceURL =
|
|
8018
|
+
sourceURL = join4(urlGenerate(parsed), sourceURL);
|
|
5820
8019
|
}
|
|
5821
8020
|
return normalize(sourceURL);
|
|
5822
8021
|
}
|
|
@@ -14131,7 +16330,7 @@ ${lanes.join("\n")}
|
|
|
14131
16330
|
writeOutputIsTTY() {
|
|
14132
16331
|
return process.stdout.isTTY;
|
|
14133
16332
|
},
|
|
14134
|
-
readFile,
|
|
16333
|
+
readFile: readFile2,
|
|
14135
16334
|
writeFile: writeFile2,
|
|
14136
16335
|
watchFile: watchFile2,
|
|
14137
16336
|
watchDirectory,
|
|
@@ -14171,9 +16370,9 @@ ${lanes.join("\n")}
|
|
|
14171
16370
|
},
|
|
14172
16371
|
getFileSize(path) {
|
|
14173
16372
|
try {
|
|
14174
|
-
const
|
|
14175
|
-
if (
|
|
14176
|
-
return
|
|
16373
|
+
const stat2 = statSync(path);
|
|
16374
|
+
if (stat2 == null ? void 0 : stat2.isFile()) {
|
|
16375
|
+
return stat2.size;
|
|
14177
16376
|
}
|
|
14178
16377
|
} catch {
|
|
14179
16378
|
}
|
|
@@ -14366,7 +16565,7 @@ ${lanes.join("\n")}
|
|
|
14366
16565
|
}
|
|
14367
16566
|
return buffer.toString("utf8");
|
|
14368
16567
|
}
|
|
14369
|
-
function
|
|
16568
|
+
function readFile2(fileName, _encoding) {
|
|
14370
16569
|
var _a, _b;
|
|
14371
16570
|
(_a = perfLogger) == null ? void 0 : _a.logStartReadFile(fileName);
|
|
14372
16571
|
const file = readFileWorker(fileName, _encoding);
|
|
@@ -14407,23 +16606,23 @@ ${lanes.join("\n")}
|
|
|
14407
16606
|
if (entry === "." || entry === "..") {
|
|
14408
16607
|
continue;
|
|
14409
16608
|
}
|
|
14410
|
-
let
|
|
16609
|
+
let stat2;
|
|
14411
16610
|
if (typeof dirent === "string" || dirent.isSymbolicLink()) {
|
|
14412
16611
|
const name = combinePaths(path, entry);
|
|
14413
16612
|
try {
|
|
14414
|
-
|
|
14415
|
-
if (!
|
|
16613
|
+
stat2 = statSync(name);
|
|
16614
|
+
if (!stat2) {
|
|
14416
16615
|
continue;
|
|
14417
16616
|
}
|
|
14418
16617
|
} catch (e) {
|
|
14419
16618
|
continue;
|
|
14420
16619
|
}
|
|
14421
16620
|
} else {
|
|
14422
|
-
|
|
16621
|
+
stat2 = dirent;
|
|
14423
16622
|
}
|
|
14424
|
-
if (
|
|
16623
|
+
if (stat2.isFile()) {
|
|
14425
16624
|
files.push(entry);
|
|
14426
|
-
} else if (
|
|
16625
|
+
} else if (stat2.isDirectory()) {
|
|
14427
16626
|
directories.push(entry);
|
|
14428
16627
|
}
|
|
14429
16628
|
}
|
|
@@ -14441,15 +16640,15 @@ ${lanes.join("\n")}
|
|
|
14441
16640
|
const originalStackTraceLimit = Error.stackTraceLimit;
|
|
14442
16641
|
Error.stackTraceLimit = 0;
|
|
14443
16642
|
try {
|
|
14444
|
-
const
|
|
14445
|
-
if (!
|
|
16643
|
+
const stat2 = statSync(path);
|
|
16644
|
+
if (!stat2) {
|
|
14446
16645
|
return false;
|
|
14447
16646
|
}
|
|
14448
16647
|
switch (entryKind) {
|
|
14449
16648
|
case 0:
|
|
14450
|
-
return
|
|
16649
|
+
return stat2.isFile();
|
|
14451
16650
|
case 1:
|
|
14452
|
-
return
|
|
16651
|
+
return stat2.isDirectory();
|
|
14453
16652
|
default:
|
|
14454
16653
|
return false;
|
|
14455
16654
|
}
|
|
@@ -46754,7 +48953,7 @@ ${lanes.join("\n")}
|
|
|
46754
48953
|
const possibleOption = getSpellingSuggestion(unknownOption, diagnostics.optionDeclarations, getOptionName);
|
|
46755
48954
|
return possibleOption ? createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownDidYouMeanDiagnostic, unknownOptionErrorText || unknownOption, possibleOption.name) : createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownOptionDiagnostic, unknownOptionErrorText || unknownOption);
|
|
46756
48955
|
}
|
|
46757
|
-
function parseCommandLineWorker(diagnostics, commandLine,
|
|
48956
|
+
function parseCommandLineWorker(diagnostics, commandLine, readFile2) {
|
|
46758
48957
|
const options = {};
|
|
46759
48958
|
let watchOptions;
|
|
46760
48959
|
const fileNames = [];
|
|
@@ -46802,7 +49001,7 @@ ${lanes.join("\n")}
|
|
|
46802
49001
|
}
|
|
46803
49002
|
}
|
|
46804
49003
|
function parseResponseFile(fileName) {
|
|
46805
|
-
const text = tryReadFile(fileName,
|
|
49004
|
+
const text = tryReadFile(fileName, readFile2 || ((fileName2) => sys.readFile(fileName2)));
|
|
46806
49005
|
if (!isString(text)) {
|
|
46807
49006
|
errors.push(text);
|
|
46808
49007
|
return;
|
|
@@ -46902,8 +49101,8 @@ ${lanes.join("\n")}
|
|
|
46902
49101
|
}
|
|
46903
49102
|
return i;
|
|
46904
49103
|
}
|
|
46905
|
-
function parseCommandLine(commandLine,
|
|
46906
|
-
return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine,
|
|
49104
|
+
function parseCommandLine(commandLine, readFile2) {
|
|
49105
|
+
return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine, readFile2);
|
|
46907
49106
|
}
|
|
46908
49107
|
function getOptionFromName(optionName, allowShort) {
|
|
46909
49108
|
return getOptionDeclarationFromName(getOptionsNameMap, optionName, allowShort);
|
|
@@ -46972,8 +49171,8 @@ ${lanes.join("\n")}
|
|
|
46972
49171
|
watchOptionsToExtend
|
|
46973
49172
|
);
|
|
46974
49173
|
}
|
|
46975
|
-
function readConfigFile(fileName,
|
|
46976
|
-
const textOrDiagnostic = tryReadFile(fileName,
|
|
49174
|
+
function readConfigFile(fileName, readFile2) {
|
|
49175
|
+
const textOrDiagnostic = tryReadFile(fileName, readFile2);
|
|
46977
49176
|
return isString(textOrDiagnostic) ? parseConfigFileTextToJson(fileName, textOrDiagnostic) : { config: {}, error: textOrDiagnostic };
|
|
46978
49177
|
}
|
|
46979
49178
|
function parseConfigFileTextToJson(fileName, jsonText) {
|
|
@@ -46988,14 +49187,14 @@ ${lanes.join("\n")}
|
|
|
46988
49187
|
error: jsonSourceFile.parseDiagnostics.length ? jsonSourceFile.parseDiagnostics[0] : void 0
|
|
46989
49188
|
};
|
|
46990
49189
|
}
|
|
46991
|
-
function readJsonConfigFile(fileName,
|
|
46992
|
-
const textOrDiagnostic = tryReadFile(fileName,
|
|
49190
|
+
function readJsonConfigFile(fileName, readFile2) {
|
|
49191
|
+
const textOrDiagnostic = tryReadFile(fileName, readFile2);
|
|
46993
49192
|
return isString(textOrDiagnostic) ? parseJsonText(fileName, textOrDiagnostic) : { fileName, parseDiagnostics: [textOrDiagnostic] };
|
|
46994
49193
|
}
|
|
46995
|
-
function tryReadFile(fileName,
|
|
49194
|
+
function tryReadFile(fileName, readFile2) {
|
|
46996
49195
|
let text;
|
|
46997
49196
|
try {
|
|
46998
|
-
text =
|
|
49197
|
+
text = readFile2(fileName);
|
|
46999
49198
|
} catch (e) {
|
|
47000
49199
|
return createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message);
|
|
47001
49200
|
}
|
|
@@ -134870,12 +137069,12 @@ ${lanes.join("\n")}
|
|
|
134870
137069
|
function createCompilerHost(options, setParentNodes) {
|
|
134871
137070
|
return createCompilerHostWorker(options, setParentNodes);
|
|
134872
137071
|
}
|
|
134873
|
-
function createGetSourceFile(
|
|
137072
|
+
function createGetSourceFile(readFile2, getCompilerOptions, setParentNodes) {
|
|
134874
137073
|
return (fileName, languageVersionOrOptions, onError) => {
|
|
134875
137074
|
let text;
|
|
134876
137075
|
try {
|
|
134877
137076
|
mark("beforeIORead");
|
|
134878
|
-
text =
|
|
137077
|
+
text = readFile2(fileName, getCompilerOptions().charset);
|
|
134879
137078
|
mark("afterIORead");
|
|
134880
137079
|
measure("I/O Read", "beforeIORead", "afterIORead");
|
|
134881
137080
|
} catch (e) {
|
|
@@ -135690,7 +137889,7 @@ ${lanes.join("\n")}
|
|
|
135690
137889
|
getSourceOfProjectReferenceRedirect,
|
|
135691
137890
|
forEachResolvedProjectReference: forEachResolvedProjectReference2
|
|
135692
137891
|
});
|
|
135693
|
-
const
|
|
137892
|
+
const readFile2 = host.readFile.bind(host);
|
|
135694
137893
|
(_e = tracing) == null ? void 0 : _e.push(tracing.Phase.Program, "shouldProgramCreateNewSourceFiles", { hasOldProgram: !!oldProgram });
|
|
135695
137894
|
const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options);
|
|
135696
137895
|
(_f = tracing) == null ? void 0 : _f.pop();
|
|
@@ -135907,7 +138106,7 @@ ${lanes.join("\n")}
|
|
|
135907
138106
|
isSourceOfProjectReferenceRedirect,
|
|
135908
138107
|
emitBuildInfo,
|
|
135909
138108
|
fileExists,
|
|
135910
|
-
readFile,
|
|
138109
|
+
readFile: readFile2,
|
|
135911
138110
|
directoryExists,
|
|
135912
138111
|
getSymlinkCache,
|
|
135913
138112
|
realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host),
|
|
@@ -138784,7 +140983,7 @@ ${lanes.join("\n")}
|
|
|
138784
140983
|
trace: host.trace ? (s) => host.trace(s) : void 0
|
|
138785
140984
|
};
|
|
138786
140985
|
}
|
|
138787
|
-
function createPrependNodes(projectReferences, getCommandLine,
|
|
140986
|
+
function createPrependNodes(projectReferences, getCommandLine, readFile2, host) {
|
|
138788
140987
|
if (!projectReferences)
|
|
138789
140988
|
return emptyArray;
|
|
138790
140989
|
let nodes;
|
|
@@ -138800,7 +140999,7 @@ ${lanes.join("\n")}
|
|
|
138800
140999
|
/*forceDtsPaths*/
|
|
138801
141000
|
true
|
|
138802
141001
|
);
|
|
138803
|
-
const node = createInputFilesWithFilePaths(
|
|
141002
|
+
const node = createInputFilesWithFilePaths(readFile2, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath, host, resolvedRefOpts.options);
|
|
138804
141003
|
(nodes || (nodes = [])).push(node);
|
|
138805
141004
|
}
|
|
138806
141005
|
}
|
|
@@ -208105,19 +210304,18 @@ ${e.message}`;
|
|
|
208105
210304
|
}
|
|
208106
210305
|
});
|
|
208107
210306
|
|
|
208108
|
-
// node_modules/.pnpm/cosmiconfig@9.0.
|
|
210307
|
+
// node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/loaders.js
|
|
208109
210308
|
var require_loaders = __commonJS({
|
|
208110
|
-
"node_modules/.pnpm/cosmiconfig@9.0.
|
|
210309
|
+
"node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/loaders.js"(exports) {
|
|
208111
210310
|
"use strict";
|
|
208112
210311
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
208113
210312
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
208114
210313
|
};
|
|
208115
210314
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
208116
210315
|
exports.loadTs = exports.loadTsSync = exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
|
|
208117
|
-
var
|
|
208118
|
-
var
|
|
208119
|
-
var
|
|
208120
|
-
var url_1 = __require("url");
|
|
210316
|
+
var fse = require_lib();
|
|
210317
|
+
var path_1 = __importDefault(__require("node:path"));
|
|
210318
|
+
var url_1 = __require("node:url");
|
|
208121
210319
|
var importFresh;
|
|
208122
210320
|
var loadJsSync = function loadJsSync2(filepath) {
|
|
208123
210321
|
if (importFresh === void 0) {
|
|
@@ -208134,7 +210332,7 @@ var require_loaders = __commonJS({
|
|
|
208134
210332
|
try {
|
|
208135
210333
|
return (0, exports.loadJsSync)(filepath, "");
|
|
208136
210334
|
} catch (requireError) {
|
|
208137
|
-
if (requireError.code === "
|
|
210335
|
+
if (requireError.code === "ERRrequire_ESM" || requireError instanceof SyntaxError && requireError.toString().includes("Cannot use import statement outside a module")) {
|
|
208138
210336
|
throw error;
|
|
208139
210337
|
}
|
|
208140
210338
|
throw requireError;
|
|
@@ -208186,15 +210384,15 @@ ${error.message}`;
|
|
|
208186
210384
|
noEmit: false
|
|
208187
210385
|
};
|
|
208188
210386
|
content = typescript.transpileModule(content, config).outputText;
|
|
208189
|
-
(0,
|
|
210387
|
+
(0, fse.writeFileSync)(compiledFilepath, content);
|
|
208190
210388
|
return (0, exports.loadJsSync)(compiledFilepath, content).default;
|
|
208191
210389
|
} catch (error) {
|
|
208192
210390
|
error.message = `TypeScript Error in ${filepath}:
|
|
208193
210391
|
${error.message}`;
|
|
208194
210392
|
throw error;
|
|
208195
210393
|
} finally {
|
|
208196
|
-
if ((0,
|
|
208197
|
-
(0,
|
|
210394
|
+
if ((0, fse.pathExistsSync)(compiledFilepath)) {
|
|
210395
|
+
(0, fse.removeSync)(compiledFilepath);
|
|
208198
210396
|
}
|
|
208199
210397
|
}
|
|
208200
210398
|
};
|
|
@@ -208216,7 +210414,7 @@ ${error.message}`;
|
|
|
208216
210414
|
noEmit: false
|
|
208217
210415
|
};
|
|
208218
210416
|
transpiledContent = typescript.transpileModule(content, config).outputText;
|
|
208219
|
-
await (0,
|
|
210417
|
+
await (0, fse.writeFile)(compiledFilepath, transpiledContent);
|
|
208220
210418
|
} catch (error) {
|
|
208221
210419
|
error.message = `TypeScript Error in ${filepath}:
|
|
208222
210420
|
${error.message}`;
|
|
@@ -208224,8 +210422,8 @@ ${error.message}`;
|
|
|
208224
210422
|
}
|
|
208225
210423
|
return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
|
|
208226
210424
|
} finally {
|
|
208227
|
-
if ((0,
|
|
208228
|
-
await (0,
|
|
210425
|
+
if ((0, fse.pathExistsSync)(compiledFilepath)) {
|
|
210426
|
+
await (0, fse.remove)(compiledFilepath);
|
|
208229
210427
|
}
|
|
208230
210428
|
}
|
|
208231
210429
|
};
|
|
@@ -208246,9 +210444,9 @@ ${error.message}`;
|
|
|
208246
210444
|
}
|
|
208247
210445
|
});
|
|
208248
210446
|
|
|
208249
|
-
// node_modules/.pnpm/cosmiconfig@9.0.
|
|
210447
|
+
// node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/defaults.js
|
|
208250
210448
|
var require_defaults = __commonJS({
|
|
208251
|
-
"node_modules/.pnpm/cosmiconfig@9.0.
|
|
210449
|
+
"node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/defaults.js"(exports) {
|
|
208252
210450
|
"use strict";
|
|
208253
210451
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
208254
210452
|
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
@@ -208417,9 +210615,9 @@ var require_env_paths = __commonJS({
|
|
|
208417
210615
|
}
|
|
208418
210616
|
});
|
|
208419
210617
|
|
|
208420
|
-
// node_modules/.pnpm/cosmiconfig@9.0.
|
|
210618
|
+
// node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/util.js
|
|
208421
210619
|
var require_util3 = __commonJS({
|
|
208422
|
-
"node_modules/.pnpm/cosmiconfig@9.0.
|
|
210620
|
+
"node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/util.js"(exports) {
|
|
208423
210621
|
"use strict";
|
|
208424
210622
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
208425
210623
|
if (k2 === void 0)
|
|
@@ -208485,8 +210683,8 @@ var require_util3 = __commonJS({
|
|
|
208485
210683
|
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
208486
210684
|
async function isDirectory(path) {
|
|
208487
210685
|
try {
|
|
208488
|
-
const
|
|
208489
|
-
return
|
|
210686
|
+
const stat2 = await fs_1.promises.stat(path);
|
|
210687
|
+
return stat2.isDirectory();
|
|
208490
210688
|
} catch (e) {
|
|
208491
210689
|
if (e.code === "ENOENT") {
|
|
208492
210690
|
return false;
|
|
@@ -208497,8 +210695,8 @@ var require_util3 = __commonJS({
|
|
|
208497
210695
|
exports.isDirectory = isDirectory;
|
|
208498
210696
|
function isDirectorySync(path) {
|
|
208499
210697
|
try {
|
|
208500
|
-
const
|
|
208501
|
-
return
|
|
210698
|
+
const stat2 = fs_1.default.statSync(path);
|
|
210699
|
+
return stat2.isDirectory();
|
|
208502
210700
|
} catch (e) {
|
|
208503
210701
|
if (e.code === "ENOENT") {
|
|
208504
210702
|
return false;
|
|
@@ -208510,9 +210708,9 @@ var require_util3 = __commonJS({
|
|
|
208510
210708
|
}
|
|
208511
210709
|
});
|
|
208512
210710
|
|
|
208513
|
-
// node_modules/.pnpm/cosmiconfig@9.0.
|
|
210711
|
+
// node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/ExplorerBase.js
|
|
208514
210712
|
var require_ExplorerBase = __commonJS({
|
|
208515
|
-
"node_modules/.pnpm/cosmiconfig@9.0.
|
|
210713
|
+
"node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/ExplorerBase.js"(exports) {
|
|
208516
210714
|
"use strict";
|
|
208517
210715
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
208518
210716
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -208628,9 +210826,9 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
|
|
|
208628
210826
|
}
|
|
208629
210827
|
});
|
|
208630
210828
|
|
|
208631
|
-
// node_modules/.pnpm/cosmiconfig@9.0.
|
|
210829
|
+
// node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/merge.js
|
|
208632
210830
|
var require_merge2 = __commonJS({
|
|
208633
|
-
"node_modules/.pnpm/cosmiconfig@9.0.
|
|
210831
|
+
"node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/merge.js"(exports) {
|
|
208634
210832
|
"use strict";
|
|
208635
210833
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
208636
210834
|
exports.mergeAll = exports.hasOwn = void 0;
|
|
@@ -208664,9 +210862,9 @@ var require_merge2 = __commonJS({
|
|
|
208664
210862
|
}
|
|
208665
210863
|
});
|
|
208666
210864
|
|
|
208667
|
-
// node_modules/.pnpm/cosmiconfig@9.0.
|
|
210865
|
+
// node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/Explorer.js
|
|
208668
210866
|
var require_Explorer = __commonJS({
|
|
208669
|
-
"node_modules/.pnpm/cosmiconfig@9.0.
|
|
210867
|
+
"node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/Explorer.js"(exports) {
|
|
208670
210868
|
"use strict";
|
|
208671
210869
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
208672
210870
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -208822,9 +211020,9 @@ var require_Explorer = __commonJS({
|
|
|
208822
211020
|
}
|
|
208823
211021
|
});
|
|
208824
211022
|
|
|
208825
|
-
// node_modules/.pnpm/cosmiconfig@9.0.
|
|
211023
|
+
// node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/ExplorerSync.js
|
|
208826
211024
|
var require_ExplorerSync = __commonJS({
|
|
208827
|
-
"node_modules/.pnpm/cosmiconfig@9.0.
|
|
211025
|
+
"node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/ExplorerSync.js"(exports) {
|
|
208828
211026
|
"use strict";
|
|
208829
211027
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
208830
211028
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -208994,9 +211192,9 @@ var require_ExplorerSync = __commonJS({
|
|
|
208994
211192
|
}
|
|
208995
211193
|
});
|
|
208996
211194
|
|
|
208997
|
-
// node_modules/.pnpm/cosmiconfig@9.0.
|
|
211195
|
+
// node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/index.js
|
|
208998
211196
|
var require_dist = __commonJS({
|
|
208999
|
-
"node_modules/.pnpm/cosmiconfig@9.0.
|
|
211197
|
+
"node_modules/.pnpm/cosmiconfig@9.0.0_patch_hash=kvwqsvntptc5dck76ulq454vwi_typescript@5.3.3/node_modules/cosmiconfig/dist/index.js"(exports) {
|
|
209000
211198
|
"use strict";
|
|
209001
211199
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
209002
211200
|
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
|
|
@@ -209158,39 +211356,7 @@ var require_dist = __commonJS({
|
|
|
209158
211356
|
});
|
|
209159
211357
|
|
|
209160
211358
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
209161
|
-
|
|
209162
|
-
var getConfigFileByName = async (fileName, filePath) => {
|
|
209163
|
-
const cosmiconfig = await Promise.resolve().then(() => __toESM(require_dist(), 1));
|
|
209164
|
-
return cosmiconfig?.cosmiconfig?.(fileName, { cache: true }).search(filePath);
|
|
209165
|
-
};
|
|
209166
|
-
var getConfigFile = async (filePath) => {
|
|
209167
|
-
if (_static_cache) {
|
|
209168
|
-
return _static_cache;
|
|
209169
|
-
}
|
|
209170
|
-
let cosmiconfigResult = await getConfigFileByName("storm", filePath);
|
|
209171
|
-
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
209172
|
-
cosmiconfigResult = await getConfigFileByName("storm-software", filePath);
|
|
209173
|
-
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
209174
|
-
cosmiconfigResult = await getConfigFileByName("storm-stack", filePath);
|
|
209175
|
-
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
209176
|
-
cosmiconfigResult = await getConfigFileByName("storm-cloud", filePath);
|
|
209177
|
-
}
|
|
209178
|
-
}
|
|
209179
|
-
}
|
|
209180
|
-
if (!cosmiconfigResult || Object.keys(cosmiconfigResult).length === 0 || cosmiconfigResult.isEmpty || !cosmiconfigResult.filepath) {
|
|
209181
|
-
return void 0;
|
|
209182
|
-
}
|
|
209183
|
-
const config = cosmiconfigResult.config ?? {};
|
|
209184
|
-
if (cosmiconfigResult.filepath) {
|
|
209185
|
-
config.configFile = cosmiconfigResult.filepath;
|
|
209186
|
-
}
|
|
209187
|
-
config.runtimeVersion = "0.0.1";
|
|
209188
|
-
_static_cache = config;
|
|
209189
|
-
return config;
|
|
209190
|
-
};
|
|
209191
|
-
|
|
209192
|
-
// packages/config-tools/src/config-file/define-config.ts
|
|
209193
|
-
var defineConfig = (input) => input;
|
|
211359
|
+
import { join as join2 } from "node:path";
|
|
209194
211360
|
|
|
209195
211361
|
// packages/config-tools/src/utilities/find-up.ts
|
|
209196
211362
|
import { existsSync } from "node:fs";
|
|
@@ -209261,9 +211427,74 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
209261
211427
|
return result;
|
|
209262
211428
|
}
|
|
209263
211429
|
|
|
211430
|
+
// packages/config-tools/src/config-file/get-config-file.ts
|
|
211431
|
+
import { readFile, stat } from "node:fs/promises";
|
|
211432
|
+
var _cosmiconfig = void 0;
|
|
211433
|
+
var defaultExplorer;
|
|
211434
|
+
var getConfigFileExplorer = async (fileName) => {
|
|
211435
|
+
if (!_cosmiconfig) {
|
|
211436
|
+
const mod = await Promise.resolve().then(() => __toESM(require_dist(), 1));
|
|
211437
|
+
if (mod?.cosmiconfig) {
|
|
211438
|
+
_cosmiconfig = mod.cosmiconfig;
|
|
211439
|
+
}
|
|
211440
|
+
if (!_cosmiconfig) {
|
|
211441
|
+
return void 0;
|
|
211442
|
+
}
|
|
211443
|
+
}
|
|
211444
|
+
return _cosmiconfig(fileName, { cache: true });
|
|
211445
|
+
};
|
|
211446
|
+
var getConfigFileByName = async (fileName, filePath) => {
|
|
211447
|
+
return (await getConfigFileExplorer(fileName))?.search(filePath);
|
|
211448
|
+
};
|
|
211449
|
+
var getJsonConfigFile = async (fileName, filePath) => {
|
|
211450
|
+
const jsonPath = join2(
|
|
211451
|
+
filePath ?? process.cwd(),
|
|
211452
|
+
fileName.endsWith(".json") ? fileName : `${fileName}.json`
|
|
211453
|
+
);
|
|
211454
|
+
const isEmpty = !!await stat(jsonPath).catch((_) => false);
|
|
211455
|
+
return isEmpty ? {
|
|
211456
|
+
config: JSON.parse(await readFile(jsonPath, "utf-8")),
|
|
211457
|
+
filepath: jsonPath,
|
|
211458
|
+
isEmpty
|
|
211459
|
+
} : { config: {}, filepath: jsonPath, isEmpty };
|
|
211460
|
+
};
|
|
211461
|
+
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
211462
|
+
const workspacePath = filePath ? filePath : findWorkspaceRootSafe(filePath);
|
|
211463
|
+
let cosmiconfigResult = await getJsonConfigFile("storm", workspacePath);
|
|
211464
|
+
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
211465
|
+
if (!defaultExplorer) {
|
|
211466
|
+
defaultExplorer = await getConfigFileExplorer("storm");
|
|
211467
|
+
}
|
|
211468
|
+
if (defaultExplorer) {
|
|
211469
|
+
cosmiconfigResult = await defaultExplorer.search(workspacePath);
|
|
211470
|
+
}
|
|
211471
|
+
if ((!cosmiconfigResult || cosmiconfigResult.isEmpty) && additionalFileNames.length > 0) {
|
|
211472
|
+
for (const additionalFileName of additionalFileNames) {
|
|
211473
|
+
cosmiconfigResult = await getJsonConfigFile(additionalFileName, workspacePath);
|
|
211474
|
+
if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
|
|
211475
|
+
break;
|
|
211476
|
+
}
|
|
211477
|
+
cosmiconfigResult = await getConfigFileByName(additionalFileName, workspacePath);
|
|
211478
|
+
if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
|
|
211479
|
+
break;
|
|
211480
|
+
}
|
|
211481
|
+
}
|
|
211482
|
+
}
|
|
211483
|
+
}
|
|
211484
|
+
if (!cosmiconfigResult || Object.keys(cosmiconfigResult).length === 0 || cosmiconfigResult.isEmpty || !cosmiconfigResult.filepath) {
|
|
211485
|
+
return void 0;
|
|
211486
|
+
}
|
|
211487
|
+
const config = cosmiconfigResult.config ?? {};
|
|
211488
|
+
if (cosmiconfigResult.filepath) {
|
|
211489
|
+
config.configFile = cosmiconfigResult.filepath;
|
|
211490
|
+
}
|
|
211491
|
+
config.runtimeVersion = "0.0.1";
|
|
211492
|
+
return config;
|
|
211493
|
+
};
|
|
211494
|
+
|
|
209264
211495
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
209265
211496
|
import { existsSync as existsSync2, readFileSync } from "node:fs";
|
|
209266
|
-
import { join as
|
|
211497
|
+
import { join as join3 } from "node:path";
|
|
209267
211498
|
|
|
209268
211499
|
// node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
|
|
209269
211500
|
var util;
|
|
@@ -209415,6 +211646,10 @@ var ZodIssueCode = util.arrayToEnum([
|
|
|
209415
211646
|
"not_multiple_of",
|
|
209416
211647
|
"not_finite"
|
|
209417
211648
|
]);
|
|
211649
|
+
var quotelessJson = (obj) => {
|
|
211650
|
+
const json = JSON.stringify(obj, null, 2);
|
|
211651
|
+
return json.replace(/"([^"]+)":/g, "$1:");
|
|
211652
|
+
};
|
|
209418
211653
|
var ZodError = class extends Error {
|
|
209419
211654
|
constructor(issues) {
|
|
209420
211655
|
super();
|
|
@@ -209602,6 +211837,9 @@ var errorMap = (issue, _ctx) => {
|
|
|
209602
211837
|
return { message };
|
|
209603
211838
|
};
|
|
209604
211839
|
var overrideErrorMap = errorMap;
|
|
211840
|
+
function setErrorMap(map) {
|
|
211841
|
+
overrideErrorMap = map;
|
|
211842
|
+
}
|
|
209605
211843
|
function getErrorMap() {
|
|
209606
211844
|
return overrideErrorMap;
|
|
209607
211845
|
}
|
|
@@ -209623,6 +211861,7 @@ var makeIssue = (params) => {
|
|
|
209623
211861
|
message: issueData.message || errorMessage
|
|
209624
211862
|
};
|
|
209625
211863
|
};
|
|
211864
|
+
var EMPTY_PATH = [];
|
|
209626
211865
|
function addIssueToContext(ctx, issueData) {
|
|
209627
211866
|
const issue = makeIssue({
|
|
209628
211867
|
issueData,
|
|
@@ -212768,6 +215007,19 @@ ZodReadonly.create = (type, params) => {
|
|
|
212768
215007
|
...processCreateParams(params)
|
|
212769
215008
|
});
|
|
212770
215009
|
};
|
|
215010
|
+
var custom = (check, params = {}, fatal) => {
|
|
215011
|
+
if (check)
|
|
215012
|
+
return ZodAny.create().superRefine((data, ctx) => {
|
|
215013
|
+
var _a, _b;
|
|
215014
|
+
if (!check(data)) {
|
|
215015
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
215016
|
+
const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
|
|
215017
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
215018
|
+
ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });
|
|
215019
|
+
}
|
|
215020
|
+
});
|
|
215021
|
+
return ZodAny.create();
|
|
215022
|
+
};
|
|
212771
215023
|
var late = {
|
|
212772
215024
|
object: ZodObject.lazycreate
|
|
212773
215025
|
};
|
|
@@ -212810,6 +215062,9 @@ var ZodFirstPartyTypeKind;
|
|
|
212810
215062
|
ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
|
|
212811
215063
|
ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
|
|
212812
215064
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
215065
|
+
var instanceOfType = (cls, params = {
|
|
215066
|
+
message: `Input not instance of ${cls.name}`
|
|
215067
|
+
}) => custom((data) => data instanceof cls, params);
|
|
212813
215068
|
var stringType = ZodString.create;
|
|
212814
215069
|
var numberType = ZodNumber.create;
|
|
212815
215070
|
var nanType = ZodNaN.create;
|
|
@@ -212844,57 +215099,187 @@ var optionalType = ZodOptional.create;
|
|
|
212844
215099
|
var nullableType = ZodNullable.create;
|
|
212845
215100
|
var preprocessType = ZodEffects.createWithPreprocess;
|
|
212846
215101
|
var pipelineType = ZodPipeline.create;
|
|
215102
|
+
var ostring = () => stringType().optional();
|
|
215103
|
+
var onumber = () => numberType().optional();
|
|
215104
|
+
var oboolean = () => booleanType().optional();
|
|
215105
|
+
var coerce = {
|
|
215106
|
+
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
215107
|
+
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
215108
|
+
boolean: (arg) => ZodBoolean.create({
|
|
215109
|
+
...arg,
|
|
215110
|
+
coerce: true
|
|
215111
|
+
}),
|
|
215112
|
+
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
215113
|
+
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
215114
|
+
};
|
|
215115
|
+
var NEVER = INVALID;
|
|
215116
|
+
var z = /* @__PURE__ */ Object.freeze({
|
|
215117
|
+
__proto__: null,
|
|
215118
|
+
defaultErrorMap: errorMap,
|
|
215119
|
+
setErrorMap,
|
|
215120
|
+
getErrorMap,
|
|
215121
|
+
makeIssue,
|
|
215122
|
+
EMPTY_PATH,
|
|
215123
|
+
addIssueToContext,
|
|
215124
|
+
ParseStatus,
|
|
215125
|
+
INVALID,
|
|
215126
|
+
DIRTY,
|
|
215127
|
+
OK,
|
|
215128
|
+
isAborted,
|
|
215129
|
+
isDirty,
|
|
215130
|
+
isValid,
|
|
215131
|
+
isAsync,
|
|
215132
|
+
get util() {
|
|
215133
|
+
return util;
|
|
215134
|
+
},
|
|
215135
|
+
get objectUtil() {
|
|
215136
|
+
return objectUtil;
|
|
215137
|
+
},
|
|
215138
|
+
ZodParsedType,
|
|
215139
|
+
getParsedType,
|
|
215140
|
+
ZodType,
|
|
215141
|
+
ZodString,
|
|
215142
|
+
ZodNumber,
|
|
215143
|
+
ZodBigInt,
|
|
215144
|
+
ZodBoolean,
|
|
215145
|
+
ZodDate,
|
|
215146
|
+
ZodSymbol,
|
|
215147
|
+
ZodUndefined,
|
|
215148
|
+
ZodNull,
|
|
215149
|
+
ZodAny,
|
|
215150
|
+
ZodUnknown,
|
|
215151
|
+
ZodNever,
|
|
215152
|
+
ZodVoid,
|
|
215153
|
+
ZodArray,
|
|
215154
|
+
ZodObject,
|
|
215155
|
+
ZodUnion,
|
|
215156
|
+
ZodDiscriminatedUnion,
|
|
215157
|
+
ZodIntersection,
|
|
215158
|
+
ZodTuple,
|
|
215159
|
+
ZodRecord,
|
|
215160
|
+
ZodMap,
|
|
215161
|
+
ZodSet,
|
|
215162
|
+
ZodFunction,
|
|
215163
|
+
ZodLazy,
|
|
215164
|
+
ZodLiteral,
|
|
215165
|
+
ZodEnum,
|
|
215166
|
+
ZodNativeEnum,
|
|
215167
|
+
ZodPromise,
|
|
215168
|
+
ZodEffects,
|
|
215169
|
+
ZodTransformer: ZodEffects,
|
|
215170
|
+
ZodOptional,
|
|
215171
|
+
ZodNullable,
|
|
215172
|
+
ZodDefault,
|
|
215173
|
+
ZodCatch,
|
|
215174
|
+
ZodNaN,
|
|
215175
|
+
BRAND,
|
|
215176
|
+
ZodBranded,
|
|
215177
|
+
ZodPipeline,
|
|
215178
|
+
ZodReadonly,
|
|
215179
|
+
custom,
|
|
215180
|
+
Schema: ZodType,
|
|
215181
|
+
ZodSchema: ZodType,
|
|
215182
|
+
late,
|
|
215183
|
+
get ZodFirstPartyTypeKind() {
|
|
215184
|
+
return ZodFirstPartyTypeKind;
|
|
215185
|
+
},
|
|
215186
|
+
coerce,
|
|
215187
|
+
any: anyType,
|
|
215188
|
+
array: arrayType,
|
|
215189
|
+
bigint: bigIntType,
|
|
215190
|
+
boolean: booleanType,
|
|
215191
|
+
date: dateType,
|
|
215192
|
+
discriminatedUnion: discriminatedUnionType,
|
|
215193
|
+
effect: effectsType,
|
|
215194
|
+
"enum": enumType,
|
|
215195
|
+
"function": functionType,
|
|
215196
|
+
"instanceof": instanceOfType,
|
|
215197
|
+
intersection: intersectionType,
|
|
215198
|
+
lazy: lazyType,
|
|
215199
|
+
literal: literalType,
|
|
215200
|
+
map: mapType,
|
|
215201
|
+
nan: nanType,
|
|
215202
|
+
nativeEnum: nativeEnumType,
|
|
215203
|
+
never: neverType,
|
|
215204
|
+
"null": nullType,
|
|
215205
|
+
nullable: nullableType,
|
|
215206
|
+
number: numberType,
|
|
215207
|
+
object: objectType,
|
|
215208
|
+
oboolean,
|
|
215209
|
+
onumber,
|
|
215210
|
+
optional: optionalType,
|
|
215211
|
+
ostring,
|
|
215212
|
+
pipeline: pipelineType,
|
|
215213
|
+
preprocess: preprocessType,
|
|
215214
|
+
promise: promiseType,
|
|
215215
|
+
record: recordType,
|
|
215216
|
+
set: setType,
|
|
215217
|
+
strictObject: strictObjectType,
|
|
215218
|
+
string: stringType,
|
|
215219
|
+
symbol: symbolType,
|
|
215220
|
+
transformer: effectsType,
|
|
215221
|
+
tuple: tupleType,
|
|
215222
|
+
"undefined": undefinedType,
|
|
215223
|
+
union: unionType,
|
|
215224
|
+
unknown: unknownType,
|
|
215225
|
+
"void": voidType,
|
|
215226
|
+
NEVER,
|
|
215227
|
+
ZodIssueCode,
|
|
215228
|
+
quotelessJson,
|
|
215229
|
+
ZodError
|
|
215230
|
+
});
|
|
212847
215231
|
|
|
212848
215232
|
// packages/config/src/schema.ts
|
|
212849
|
-
var ColorConfigSchema =
|
|
212850
|
-
primary:
|
|
212851
|
-
background:
|
|
212852
|
-
success:
|
|
212853
|
-
info:
|
|
212854
|
-
warning:
|
|
212855
|
-
error:
|
|
212856
|
-
fatal:
|
|
215233
|
+
var ColorConfigSchema = z.object({
|
|
215234
|
+
primary: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The primary color of the workspace"),
|
|
215235
|
+
background: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The background color of the workspace"),
|
|
215236
|
+
success: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace"),
|
|
215237
|
+
info: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace"),
|
|
215238
|
+
warning: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace"),
|
|
215239
|
+
error: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#990000").describe("The error color of the workspace"),
|
|
215240
|
+
fatal: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
212857
215241
|
}).describe("Colors used for various workspace elements");
|
|
212858
|
-
var StormConfigSchema =
|
|
212859
|
-
|
|
212860
|
-
|
|
212861
|
-
|
|
212862
|
-
|
|
212863
|
-
|
|
212864
|
-
|
|
212865
|
-
|
|
212866
|
-
|
|
212867
|
-
|
|
212868
|
-
|
|
215242
|
+
var StormConfigSchema = z.object({
|
|
215243
|
+
extends: z.string().trim().optional().describe("The path to a base JSON file to use as a configuration preset file"),
|
|
215244
|
+
name: z.string().trim().toLowerCase().optional().describe("The name of the package"),
|
|
215245
|
+
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
215246
|
+
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
215247
|
+
repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
215248
|
+
license: z.string().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
215249
|
+
homepage: z.string().trim().url().default("https://stormsoftware.org").describe("The homepage of the workspace"),
|
|
215250
|
+
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
215251
|
+
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
215252
|
+
owner: z.string().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
215253
|
+
worker: z.string().trim().default("Stormie-Bot").describe(
|
|
212869
215254
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
212870
215255
|
),
|
|
212871
|
-
env:
|
|
212872
|
-
ci:
|
|
212873
|
-
workspaceRoot:
|
|
212874
|
-
packageDirectory:
|
|
212875
|
-
externalPackagePatterns:
|
|
215256
|
+
env: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
215257
|
+
ci: z.boolean().default(true).describe("An indicator specifying if the current environment is a CI environment"),
|
|
215258
|
+
workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
|
|
215259
|
+
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
215260
|
+
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
212876
215261
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
212877
215262
|
),
|
|
212878
|
-
skipCache:
|
|
212879
|
-
cacheDirectory:
|
|
212880
|
-
buildDirectory:
|
|
212881
|
-
runtimeDirectory:
|
|
212882
|
-
runtimeVersion:
|
|
215263
|
+
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
215264
|
+
cacheDirectory: z.string().trim().default("node_modules/.cache/storm").describe("The directory used to store the workspace's cached file data"),
|
|
215265
|
+
buildDirectory: z.string().trim().default("dist").describe("The build directory for the workspace"),
|
|
215266
|
+
runtimeDirectory: z.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
215267
|
+
runtimeVersion: z.string().trim().regex(
|
|
212883
215268
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
212884
215269
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
212885
|
-
packageManager:
|
|
212886
|
-
timezone:
|
|
212887
|
-
locale:
|
|
212888
|
-
logLevel:
|
|
215270
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
215271
|
+
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
215272
|
+
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
215273
|
+
logLevel: z.enum(["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]).default("debug").describe(
|
|
212889
215274
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
212890
215275
|
),
|
|
212891
|
-
configFile:
|
|
215276
|
+
configFile: z.string().trim().nullable().default(null).describe(
|
|
212892
215277
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
212893
215278
|
),
|
|
212894
215279
|
colors: ColorConfigSchema.describe(
|
|
212895
215280
|
"Storm theme config values used for styling various package elements"
|
|
212896
215281
|
),
|
|
212897
|
-
extensions:
|
|
215282
|
+
extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
212898
215283
|
}).describe(
|
|
212899
215284
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
212900
215285
|
);
|
|
@@ -212938,8 +215323,8 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
212938
215323
|
let license = DEFAULT_STORM_CONFIG.license;
|
|
212939
215324
|
let homepage = DEFAULT_STORM_CONFIG.homepage;
|
|
212940
215325
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
212941
|
-
if (existsSync2(
|
|
212942
|
-
const file = readFileSync(
|
|
215326
|
+
if (existsSync2(join3(workspaceRoot, "package.json"))) {
|
|
215327
|
+
const file = readFileSync(join3(workspaceRoot, "package.json"), {
|
|
212943
215328
|
encoding: "utf-8"
|
|
212944
215329
|
});
|
|
212945
215330
|
if (file) {
|
|
@@ -213072,7 +215457,8 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
213072
215457
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
213073
215458
|
_chalk = chalkDefault;
|
|
213074
215459
|
}
|
|
213075
|
-
|
|
215460
|
+
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
215461
|
+
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
213076
215462
|
return (_) => {
|
|
213077
215463
|
};
|
|
213078
215464
|
}
|
|
@@ -213222,7 +215608,7 @@ Stacktrace: ${error.stack}`
|
|
|
213222
215608
|
// packages/config-tools/src/utilities/run.ts
|
|
213223
215609
|
import { execSync } from "node:child_process";
|
|
213224
215610
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
213225
|
-
var run = (config, command, cwd = config.workspaceRoot) => {
|
|
215611
|
+
var run = (config, command, cwd = config.workspaceRoot ?? process.cwd()) => {
|
|
213226
215612
|
return execSync(command, {
|
|
213227
215613
|
cwd,
|
|
213228
215614
|
env: {
|
|
@@ -213239,9 +215625,7 @@ var run = (config, command, cwd = config.workspaceRoot) => {
|
|
|
213239
215625
|
var getExtensionEnv = (extensionName) => {
|
|
213240
215626
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
213241
215627
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
213242
|
-
const name = key.replace(prefix, "").split("_").map(
|
|
213243
|
-
(i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : ""
|
|
213244
|
-
).join("");
|
|
215628
|
+
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
213245
215629
|
if (name) {
|
|
213246
215630
|
ret[name] = process.env[key];
|
|
213247
215631
|
}
|
|
@@ -213251,6 +215635,7 @@ var getExtensionEnv = (extensionName) => {
|
|
|
213251
215635
|
var getConfigEnv = () => {
|
|
213252
215636
|
const prefix = "STORM_";
|
|
213253
215637
|
let config = {
|
|
215638
|
+
extends: process.env[`${prefix}EXTENDS`],
|
|
213254
215639
|
name: process.env[`${prefix}NAME`],
|
|
213255
215640
|
namespace: process.env[`${prefix}NAMESPACE`],
|
|
213256
215641
|
owner: process.env[`${prefix}OWNER`],
|
|
@@ -213285,9 +215670,7 @@ var getConfigEnv = () => {
|
|
|
213285
215670
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
213286
215671
|
branch: process.env[`${prefix}BRANCH`],
|
|
213287
215672
|
preid: process.env[`${prefix}PRE_ID`],
|
|
213288
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
213289
|
-
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
213290
|
-
) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
215673
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
213291
215674
|
};
|
|
213292
215675
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
213293
215676
|
if (serializedConfig) {
|
|
@@ -213327,6 +215710,9 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
213327
215710
|
};
|
|
213328
215711
|
var setConfigEnv = (config) => {
|
|
213329
215712
|
const prefix = "STORM_";
|
|
215713
|
+
if (config.extends) {
|
|
215714
|
+
process.env[`${prefix}EXTENDS`] = config.extends;
|
|
215715
|
+
}
|
|
213330
215716
|
if (config.name) {
|
|
213331
215717
|
process.env[`${prefix}NAME`] = config.name;
|
|
213332
215718
|
}
|
|
@@ -213448,13 +215834,13 @@ var setConfigEnv = (config) => {
|
|
|
213448
215834
|
|
|
213449
215835
|
// packages/config-tools/src/create-storm-config.ts
|
|
213450
215836
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
213451
|
-
var
|
|
215837
|
+
var _static_cache = void 0;
|
|
213452
215838
|
var createConfig = (workspaceRoot) => {
|
|
213453
215839
|
return createStormConfig(void 0, void 0, workspaceRoot);
|
|
213454
215840
|
};
|
|
213455
215841
|
var createStormConfig = (extensionName, schema, workspaceRoot) => {
|
|
213456
215842
|
let result;
|
|
213457
|
-
if (!
|
|
215843
|
+
if (!_static_cache) {
|
|
213458
215844
|
const config = getConfigEnv();
|
|
213459
215845
|
const defaultConfig = getDefaultConfig(config, workspaceRoot);
|
|
213460
215846
|
result = StormConfigSchema.parse({
|
|
@@ -213466,7 +215852,7 @@ var createStormConfig = (extensionName, schema, workspaceRoot) => {
|
|
|
213466
215852
|
}
|
|
213467
215853
|
});
|
|
213468
215854
|
} else {
|
|
213469
|
-
result =
|
|
215855
|
+
result = _static_cache;
|
|
213470
215856
|
}
|
|
213471
215857
|
if (schema && extensionName) {
|
|
213472
215858
|
result.extensions = {
|
|
@@ -213477,7 +215863,7 @@ var createStormConfig = (extensionName, schema, workspaceRoot) => {
|
|
|
213477
215863
|
)
|
|
213478
215864
|
};
|
|
213479
215865
|
}
|
|
213480
|
-
|
|
215866
|
+
_static_cache = result;
|
|
213481
215867
|
return result;
|
|
213482
215868
|
};
|
|
213483
215869
|
var createConfigExtension = (extensionName, schema) => {
|
|
@@ -213526,7 +215912,6 @@ export {
|
|
|
213526
215912
|
createConfig,
|
|
213527
215913
|
createConfigExtension,
|
|
213528
215914
|
createStormConfig,
|
|
213529
|
-
defineConfig,
|
|
213530
215915
|
exitWithError,
|
|
213531
215916
|
exitWithSuccess,
|
|
213532
215917
|
findWorkspaceRoot,
|
|
@@ -213534,8 +215919,10 @@ export {
|
|
|
213534
215919
|
getConfigEnv,
|
|
213535
215920
|
getConfigFile,
|
|
213536
215921
|
getConfigFileByName,
|
|
215922
|
+
getConfigFileExplorer,
|
|
213537
215923
|
getDefaultConfig,
|
|
213538
215924
|
getExtensionEnv,
|
|
215925
|
+
getJsonConfigFile,
|
|
213539
215926
|
getLogFn,
|
|
213540
215927
|
getLogLevel,
|
|
213541
215928
|
getLogLevelLabel,
|