create-tamagui 1.101.7 → 1.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +140 -101
- package/dist/index.js.map +3 -3
- package/dist/index.native.js +522 -347
- package/dist/index.native.js.map +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -19677,7 +19677,7 @@ var require_lib5 = __commonJS({
|
|
|
19677
19677
|
var t = _getRequireWildcardCache(r);
|
|
19678
19678
|
if (t && t.has(e)) return t.get(e);
|
|
19679
19679
|
var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
19680
|
-
for (var u in e) if (u !== "default" &&
|
|
19680
|
+
for (var u in e) if (u !== "default" && {}.hasOwnProperty.call(e, u)) {
|
|
19681
19681
|
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
19682
19682
|
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
19683
19683
|
}
|
|
@@ -19703,7 +19703,7 @@ var require_lib5 = __commonJS({
|
|
|
19703
19703
|
if (token.type === "name") {
|
|
19704
19704
|
if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isStrictReservedWord)(token.value, !0) || sometimesKeywords.has(token.value))
|
|
19705
19705
|
return "keyword";
|
|
19706
|
-
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset)
|
|
19706
|
+
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</"))
|
|
19707
19707
|
return "jsxIdentifier";
|
|
19708
19708
|
if (token.value[0] !== token.value[0].toLowerCase())
|
|
19709
19709
|
return "capitalized";
|
|
@@ -24985,7 +24985,7 @@ var require_build = __commonJS({
|
|
|
24985
24985
|
});
|
|
24986
24986
|
|
|
24987
24987
|
// src/index.ts
|
|
24988
|
-
var import_node_child_process3 = require("node:child_process"), import_node_fs3 = __toESM(require("node:fs")),
|
|
24988
|
+
var import_node_child_process3 = require("node:child_process"), import_node_fs3 = __toESM(require("node:fs")), import_node_path5 = __toESM(require("node:path")), import_node_process3 = require("node:process"), import_chalk15 = __toESM(require_source()), import_commander = __toESM(require_commander());
|
|
24989
24989
|
|
|
24990
24990
|
// ../../../node_modules/detect-package-manager/dist/index.mjs
|
|
24991
24991
|
var import_fs = require("fs"), import_path = require("path"), import_execa = __toESM(require_execa(), 1);
|
|
@@ -26062,7 +26062,7 @@ var globby2 = Object.assign(function(patterns, options) {
|
|
|
26062
26062
|
// package.json
|
|
26063
26063
|
var package_default = {
|
|
26064
26064
|
name: "create-tamagui",
|
|
26065
|
-
version: "1.101.
|
|
26065
|
+
version: "1.101.7",
|
|
26066
26066
|
bin: "./run.js",
|
|
26067
26067
|
main: "dist",
|
|
26068
26068
|
files: [
|
|
@@ -26085,7 +26085,7 @@ var package_default = {
|
|
|
26085
26085
|
devDependencies: {
|
|
26086
26086
|
"@expo/package-manager": "^1.1.2",
|
|
26087
26087
|
"@playwright/test": "^1.40.1",
|
|
26088
|
-
"@tamagui/build": "1.101.
|
|
26088
|
+
"@tamagui/build": "1.101.7",
|
|
26089
26089
|
"@types/async-retry": "1.4.2",
|
|
26090
26090
|
"@types/cross-spawn": "^6.0.2",
|
|
26091
26091
|
"@types/node": "^16.11.9",
|
|
@@ -26160,7 +26160,7 @@ ${char0_2}\u2003${char1_2}\u2003${char2_2}\u2003${char3_2}\u2003${char4_2}\u2003
|
|
|
26160
26160
|
\u2588\u2588 \u2588\u2588 `;
|
|
26161
26161
|
|
|
26162
26162
|
// src/helpers/cloneStarter.ts
|
|
26163
|
-
var import_node_child_process2 = require("node:child_process"), import_node_os2 = require("node:os"),
|
|
26163
|
+
var import_node_child_process2 = require("node:child_process"), import_node_os2 = require("node:os"), import_node_path4 = require("node:path"), import_chalk7 = __toESM(require_source()), import_fs_extra = __toESM(require_lib());
|
|
26164
26164
|
|
|
26165
26165
|
// ../../../node_modules/rimraf/dist/mjs/opt-arg.js
|
|
26166
26166
|
var optArgT = (opt) => {
|
|
@@ -26227,10 +26227,10 @@ var pathArg = (path6, opt = {}) => {
|
|
|
26227
26227
|
return path6;
|
|
26228
26228
|
}, path_arg_default = pathArg;
|
|
26229
26229
|
|
|
26230
|
-
// ../../../node_modules/rimraf/node_modules/minimatch/dist/
|
|
26230
|
+
// ../../../node_modules/rimraf/node_modules/minimatch/dist/esm/index.js
|
|
26231
26231
|
var import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
26232
26232
|
|
|
26233
|
-
// ../../../node_modules/rimraf/node_modules/minimatch/dist/
|
|
26233
|
+
// ../../../node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
26234
26234
|
var assertValidPattern = (pattern) => {
|
|
26235
26235
|
if (typeof pattern != "string")
|
|
26236
26236
|
throw new TypeError("invalid pattern");
|
|
@@ -26238,7 +26238,7 @@ var assertValidPattern = (pattern) => {
|
|
|
26238
26238
|
throw new TypeError("pattern is too long");
|
|
26239
26239
|
};
|
|
26240
26240
|
|
|
26241
|
-
// ../../../node_modules/rimraf/node_modules/minimatch/dist/
|
|
26241
|
+
// ../../../node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.js
|
|
26242
26242
|
var posixClasses = {
|
|
26243
26243
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0],
|
|
26244
26244
|
"[:alpha:]": ["\\p{L}\\p{Nl}", !0],
|
|
@@ -26308,10 +26308,10 @@ var posixClasses = {
|
|
|
26308
26308
|
return [ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs, uflag, endPos - pos, !0];
|
|
26309
26309
|
};
|
|
26310
26310
|
|
|
26311
|
-
// ../../../node_modules/rimraf/node_modules/minimatch/dist/
|
|
26311
|
+
// ../../../node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.js
|
|
26312
26312
|
var unescape = (s, { windowsPathsNoEscape = !1 } = {}) => windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
26313
26313
|
|
|
26314
|
-
// ../../../node_modules/rimraf/node_modules/minimatch/dist/
|
|
26314
|
+
// ../../../node_modules/rimraf/node_modules/minimatch/dist/esm/ast.js
|
|
26315
26315
|
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType = (c) => types.has(c), startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))", startNoDot = "(?!\\.)", addPatternStart = /* @__PURE__ */ new Set(["[", "."]), justDots = /* @__PURE__ */ new Set(["..", "."]), reSpecials = new Set("().*{}+?[]^$\\!"), regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), qmark = "[^/]", star = qmark + "*?", starNoEmpty = qmark + "+?", AST = class _AST {
|
|
26316
26316
|
type;
|
|
26317
26317
|
#root;
|
|
@@ -26486,6 +26486,9 @@ var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType =
|
|
|
26486
26486
|
_glob: glob2
|
|
26487
26487
|
});
|
|
26488
26488
|
}
|
|
26489
|
+
get options() {
|
|
26490
|
+
return this.#options;
|
|
26491
|
+
}
|
|
26489
26492
|
// returns the string match, the regexp source, whether there's magic
|
|
26490
26493
|
// in the regexp (so a regular expression is required) and whether or
|
|
26491
26494
|
// not the uflag is needed for the regular expression (for posix classes)
|
|
@@ -26644,10 +26647,10 @@ var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType =
|
|
|
26644
26647
|
}
|
|
26645
26648
|
};
|
|
26646
26649
|
|
|
26647
|
-
// ../../../node_modules/rimraf/node_modules/minimatch/dist/
|
|
26650
|
+
// ../../../node_modules/rimraf/node_modules/minimatch/dist/esm/escape.js
|
|
26648
26651
|
var escape = (s, { windowsPathsNoEscape = !1 } = {}) => windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
26649
26652
|
|
|
26650
|
-
// ../../../node_modules/rimraf/node_modules/minimatch/dist/
|
|
26653
|
+
// ../../../node_modules/rimraf/node_modules/minimatch/dist/esm/index.js
|
|
26651
26654
|
var minimatch = (p, pattern, options = {}) => (assertValidPattern(pattern), !options.nocomment && pattern.charAt(0) === "#" ? !1 : new Minimatch(pattern, options).match(p)), starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/, starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2), starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2), starDotExtTestNocase = (ext2) => (ext2 = ext2.toLowerCase(), (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2)), starDotExtTestNocaseDot = (ext2) => (ext2 = ext2.toLowerCase(), (f) => f.toLowerCase().endsWith(ext2)), starDotStarRE = /^\*+\.\*+$/, starDotStarTest = (f) => !f.startsWith(".") && f.includes("."), starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes("."), dotStarRE = /^\.\*+$/, dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith("."), starRE = /^\*+$/, starTest = (f) => f.length !== 0 && !f.startsWith("."), starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..", qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/, qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
26652
26655
|
let noext = qmarksTestNoExt([$0]);
|
|
26653
26656
|
return ext2 ? (ext2 = ext2.toLowerCase(), (f) => noext(f) && f.toLowerCase().endsWith(ext2)) : noext;
|
|
@@ -26900,7 +26903,10 @@ var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/, regExpEscape2 = (s) => s.replace(/[-[
|
|
|
26900
26903
|
for (let i = 0; i < globParts.length - 1; i++)
|
|
26901
26904
|
for (let j = i + 1; j < globParts.length; j++) {
|
|
26902
26905
|
let matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
|
|
26903
|
-
|
|
26906
|
+
if (matched) {
|
|
26907
|
+
globParts[i] = [], globParts[j] = matched;
|
|
26908
|
+
break;
|
|
26909
|
+
}
|
|
26904
26910
|
}
|
|
26905
26911
|
return globParts.filter((gs) => gs.length);
|
|
26906
26912
|
}
|
|
@@ -27002,7 +27008,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
27002
27008
|
let m, fastTest = null;
|
|
27003
27009
|
(m = pattern.match(starRE)) ? fastTest = options.dot ? starTestDot : starTest : (m = pattern.match(starDotExtRE)) ? fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]) : (m = pattern.match(qmarksRE)) ? fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m) : (m = pattern.match(starDotStarRE)) ? fastTest = options.dot ? starDotStarTestDot : starDotStarTest : (m = pattern.match(dotStarRE)) && (fastTest = dotStarTest);
|
|
27004
27010
|
let re = AST.fromGlob(pattern, this.options).toMMPattern();
|
|
27005
|
-
return fastTest
|
|
27011
|
+
return fastTest && typeof re == "object" && Reflect.defineProperty(re, "test", { value: fastTest }), re;
|
|
27006
27012
|
}
|
|
27007
27013
|
makeRe() {
|
|
27008
27014
|
if (this.regexp || this.regexp === !1)
|
|
@@ -27066,6 +27072,9 @@ minimatch.Minimatch = Minimatch;
|
|
|
27066
27072
|
minimatch.escape = escape;
|
|
27067
27073
|
minimatch.unescape = unescape;
|
|
27068
27074
|
|
|
27075
|
+
// ../../../node_modules/rimraf/node_modules/glob/dist/esm/glob.js
|
|
27076
|
+
var import_node_url3 = require("node:url");
|
|
27077
|
+
|
|
27069
27078
|
// ../../../node_modules/lru-cache/dist/esm/index.js
|
|
27070
27079
|
var perf = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, warned = /* @__PURE__ */ new Set(), PROCESS = typeof process == "object" && process ? process : {}, emitWarning = (msg, type, code, fn) => {
|
|
27071
27080
|
typeof PROCESS.emitWarning == "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
|
|
@@ -27881,14 +27890,14 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
|
|
|
27881
27890
|
};
|
|
27882
27891
|
|
|
27883
27892
|
// ../../../node_modules/path-scurry/dist/esm/index.js
|
|
27884
|
-
var
|
|
27893
|
+
var import_node_path3 = require("node:path"), import_node_url2 = require("node:url"), import_fs2 = require("fs"), actualFS = __toESM(require("node:fs"), 1), import_promises = require("node:fs/promises");
|
|
27885
27894
|
|
|
27886
27895
|
// ../../../node_modules/path-scurry/node_modules/minipass/dist/esm/index.js
|
|
27887
|
-
var
|
|
27896
|
+
var import_node_events = require("node:events"), import_node_stream2 = __toESM(require("node:stream"), 1), import_node_string_decoder = require("node:string_decoder"), proc = typeof process == "object" && process ? process : {
|
|
27888
27897
|
stdout: null,
|
|
27889
27898
|
stderr: null
|
|
27890
|
-
}, isStream = (s) => !!s && typeof s == "object" && (s instanceof Minipass || s instanceof
|
|
27891
|
-
s.pipe !==
|
|
27899
|
+
}, isStream = (s) => !!s && typeof s == "object" && (s instanceof Minipass || s instanceof import_node_stream2.default || isReadable(s) || isWritable(s)), isReadable = (s) => !!s && typeof s == "object" && s instanceof import_node_events.EventEmitter && typeof s.pipe == "function" && // node core Writable streams have a pipe() method, but it throws
|
|
27900
|
+
s.pipe !== import_node_stream2.default.Writable.prototype.pipe, isWritable = (s) => !!s && typeof s == "object" && s instanceof import_node_events.EventEmitter && typeof s.write == "function" && typeof s.end == "function", EOF = Symbol("EOF"), MAYBE_EMIT_END = Symbol("maybeEmitEnd"), EMITTED_END = Symbol("emittedEnd"), EMITTING_END = Symbol("emittingEnd"), EMITTED_ERROR = Symbol("emittedError"), CLOSED = Symbol("closed"), READ = Symbol("read"), FLUSH = Symbol("flush"), FLUSHCHUNK = Symbol("flushChunk"), ENCODING = Symbol("encoding"), DECODER = Symbol("decoder"), FLOWING = Symbol("flowing"), PAUSED = Symbol("paused"), RESUME = Symbol("resume"), BUFFER = Symbol("buffer"), PIPES = Symbol("pipes"), BUFFERLENGTH = Symbol("bufferLength"), BUFFERPUSH = Symbol("bufferPush"), BUFFERSHIFT = Symbol("bufferShift"), OBJECTMODE = Symbol("objectMode"), DESTROYED = Symbol("destroyed"), ERROR = Symbol("error"), EMITDATA = Symbol("emitData"), EMITEND = Symbol("emitEnd"), EMITEND2 = Symbol("emitEnd2"), ASYNC = Symbol("async"), ABORT = Symbol("abort"), ABORTED = Symbol("aborted"), SIGNAL = Symbol("signal"), DATALISTENERS = Symbol("dataListeners"), DISCARDED = Symbol("discarded"), defer = (fn) => Promise.resolve().then(fn), nodefer = (fn) => fn(), isEndish = (ev) => ev === "end" || ev === "finish" || ev === "prefinish", isArrayBufferLike = (b) => b instanceof ArrayBuffer || !!b && typeof b == "object" && b.constructor && b.constructor.name === "ArrayBuffer" && b.byteLength >= 0, isArrayBufferView = (b) => !Buffer.isBuffer(b) && ArrayBuffer.isView(b), Pipe = class {
|
|
27892
27901
|
src;
|
|
27893
27902
|
dest;
|
|
27894
27903
|
opts;
|
|
@@ -27914,7 +27923,7 @@ s.pipe !== import_stream.default.Writable.prototype.pipe, isWritable = (s) => !!
|
|
|
27914
27923
|
constructor(src, dest, opts) {
|
|
27915
27924
|
super(src, dest, opts), this.proxyErrors = (er) => dest.emit("error", er), src.on("error", this.proxyErrors);
|
|
27916
27925
|
}
|
|
27917
|
-
}, isObjectModeOptions = (o) => !!o.objectMode, isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer", Minipass = class extends
|
|
27926
|
+
}, isObjectModeOptions = (o) => !!o.objectMode, isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer", Minipass = class extends import_node_events.EventEmitter {
|
|
27918
27927
|
[FLOWING] = !1;
|
|
27919
27928
|
[PAUSED] = !1;
|
|
27920
27929
|
[PIPES] = [];
|
|
@@ -27952,7 +27961,7 @@ s.pipe !== import_stream.default.Writable.prototype.pipe, isWritable = (s) => !!
|
|
|
27952
27961
|
let options = args[0] || {};
|
|
27953
27962
|
if (super(), options.objectMode && typeof options.encoding == "string")
|
|
27954
27963
|
throw new TypeError("Encoding and objectMode may not be used together");
|
|
27955
|
-
isObjectModeOptions(options) ? (this[OBJECTMODE] = !0, this[ENCODING] = null) : isEncodingOptions(options) ? (this[ENCODING] = options.encoding, this[OBJECTMODE] = !1) : (this[OBJECTMODE] = !1, this[ENCODING] = null), this[ASYNC] = !!options.async, this[DECODER] = this[ENCODING] ? new
|
|
27964
|
+
isObjectModeOptions(options) ? (this[OBJECTMODE] = !0, this[ENCODING] = null) : isEncodingOptions(options) ? (this[ENCODING] = options.encoding, this[OBJECTMODE] = !1) : (this[OBJECTMODE] = !1, this[ENCODING] = null), this[ASYNC] = !!options.async, this[DECODER] = this[ENCODING] ? new import_node_string_decoder.StringDecoder(this[ENCODING]) : null, options && options.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[BUFFER] }), options && options.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[PIPES] });
|
|
27956
27965
|
let { signal } = options;
|
|
27957
27966
|
signal && (this[SIGNAL] = signal, signal.aborted ? this[ABORT]() : signal.addEventListener("abort", () => this[ABORT]()));
|
|
27958
27967
|
}
|
|
@@ -28517,6 +28526,11 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
28517
28526
|
* @internal
|
|
28518
28527
|
*/
|
|
28519
28528
|
nocase;
|
|
28529
|
+
/**
|
|
28530
|
+
* boolean indicating that this path is the current working directory
|
|
28531
|
+
* of the PathScurry collection that contains it.
|
|
28532
|
+
*/
|
|
28533
|
+
isCWD = !1;
|
|
28520
28534
|
// potential default fs override
|
|
28521
28535
|
#fs;
|
|
28522
28536
|
// Stats fields
|
|
@@ -28604,14 +28618,20 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
28604
28618
|
#realpath;
|
|
28605
28619
|
/**
|
|
28606
28620
|
* This property is for compatibility with the Dirent class as of
|
|
28607
|
-
* Node v20, where Dirent['
|
|
28608
|
-
* that was passed to readdir.
|
|
28609
|
-
*
|
|
28610
|
-
* For root entries, it's the path to the entry itself.
|
|
28621
|
+
* Node v20, where Dirent['parentPath'] refers to the path of the
|
|
28622
|
+
* directory that was passed to readdir. For root entries, it's the path
|
|
28623
|
+
* to the entry itself.
|
|
28611
28624
|
*/
|
|
28612
|
-
get
|
|
28625
|
+
get parentPath() {
|
|
28613
28626
|
return (this.parent || this).fullpath();
|
|
28614
28627
|
}
|
|
28628
|
+
/**
|
|
28629
|
+
* Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
|
|
28630
|
+
* this property refers to the *parent* path, not the path object itself.
|
|
28631
|
+
*/
|
|
28632
|
+
get path() {
|
|
28633
|
+
return this.parentPath;
|
|
28634
|
+
}
|
|
28615
28635
|
/**
|
|
28616
28636
|
* Do not create new Path objects directly. They should always be accessed
|
|
28617
28637
|
* via the PathScurry class or other methods on the Path class.
|
|
@@ -28699,6 +28719,8 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
28699
28719
|
* the cwd, then this ends up being equivalent to the fullpath()
|
|
28700
28720
|
*/
|
|
28701
28721
|
relative() {
|
|
28722
|
+
if (this.isCWD)
|
|
28723
|
+
return "";
|
|
28702
28724
|
if (this.#relative !== void 0)
|
|
28703
28725
|
return this.#relative;
|
|
28704
28726
|
let name = this.name, p = this.parent;
|
|
@@ -28716,6 +28738,8 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
28716
28738
|
relativePosix() {
|
|
28717
28739
|
if (this.sep === "/")
|
|
28718
28740
|
return this.relative();
|
|
28741
|
+
if (this.isCWD)
|
|
28742
|
+
return "";
|
|
28719
28743
|
if (this.#relativePosix !== void 0)
|
|
28720
28744
|
return this.#relativePosix;
|
|
28721
28745
|
let name = this.name, p = this.parent;
|
|
@@ -29194,6 +29218,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
29194
29218
|
[setAsCwd](oldCwd) {
|
|
29195
29219
|
if (oldCwd === this)
|
|
29196
29220
|
return;
|
|
29221
|
+
oldCwd.isCWD = !1, this.isCWD = !0;
|
|
29197
29222
|
let changed = /* @__PURE__ */ new Set([]), rp = [], p = this;
|
|
29198
29223
|
for (; p && p.parent; )
|
|
29199
29224
|
changed.add(p), p.#relative = rp.join(this.sep), p.#relativePosix = rp.join("/"), p = p.parent, rp.push("..");
|
|
@@ -29228,7 +29253,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
29228
29253
|
* @internal
|
|
29229
29254
|
*/
|
|
29230
29255
|
getRootString(path6) {
|
|
29231
|
-
return
|
|
29256
|
+
return import_node_path3.win32.parse(path6).root;
|
|
29232
29257
|
}
|
|
29233
29258
|
/**
|
|
29234
29259
|
* @internal
|
|
@@ -29318,7 +29343,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
29318
29343
|
* @internal
|
|
29319
29344
|
*/
|
|
29320
29345
|
constructor(cwd2 = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs7 = defaultFS } = {}) {
|
|
29321
|
-
this.#fs = fsFromOption(fs7), (cwd2 instanceof URL || cwd2.startsWith("file://")) && (cwd2 = (0,
|
|
29346
|
+
this.#fs = fsFromOption(fs7), (cwd2 instanceof URL || cwd2.startsWith("file://")) && (cwd2 = (0, import_node_url2.fileURLToPath)(cwd2));
|
|
29322
29347
|
let cwdPath = pathImpl.resolve(cwd2);
|
|
29323
29348
|
this.roots = /* @__PURE__ */ Object.create(null), this.rootPath = this.parseRootPath(cwdPath), this.#resolveCache = new ResolveCache(), this.#resolvePosixCache = new ResolveCache(), this.#children = new ChildrenCache(childrenCacheSize);
|
|
29324
29349
|
let split = cwdPath.substring(this.rootPath.length).split(sep2);
|
|
@@ -29661,7 +29686,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
29661
29686
|
sep = "\\";
|
|
29662
29687
|
constructor(cwd2 = process.cwd(), opts = {}) {
|
|
29663
29688
|
let { nocase = !0 } = opts;
|
|
29664
|
-
super(cwd2,
|
|
29689
|
+
super(cwd2, import_node_path3.win32, "\\", { ...opts, nocase }), this.nocase = nocase;
|
|
29665
29690
|
for (let p = this.cwd; p; p = p.parent)
|
|
29666
29691
|
p.nocase = this.nocase;
|
|
29667
29692
|
}
|
|
@@ -29669,7 +29694,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
29669
29694
|
* @internal
|
|
29670
29695
|
*/
|
|
29671
29696
|
parseRootPath(dir) {
|
|
29672
|
-
return
|
|
29697
|
+
return import_node_path3.win32.parse(dir).root.toUpperCase();
|
|
29673
29698
|
}
|
|
29674
29699
|
/**
|
|
29675
29700
|
* @internal
|
|
@@ -29690,7 +29715,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
29690
29715
|
sep = "/";
|
|
29691
29716
|
constructor(cwd2 = process.cwd(), opts = {}) {
|
|
29692
29717
|
let { nocase = !1 } = opts;
|
|
29693
|
-
super(cwd2,
|
|
29718
|
+
super(cwd2, import_node_path3.posix, "/", { ...opts, nocase }), this.nocase = nocase;
|
|
29694
29719
|
}
|
|
29695
29720
|
/**
|
|
29696
29721
|
* @internal
|
|
@@ -29717,9 +29742,6 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
|
|
|
29717
29742
|
}
|
|
29718
29743
|
}, Path = process.platform === "win32" ? PathWin32 : PathPosix, PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
29719
29744
|
|
|
29720
|
-
// ../../../node_modules/rimraf/node_modules/glob/dist/esm/glob.js
|
|
29721
|
-
var import_url2 = require("url");
|
|
29722
|
-
|
|
29723
29745
|
// ../../../node_modules/rimraf/node_modules/glob/dist/esm/pattern.js
|
|
29724
29746
|
var isPatternList = (pl) => pl.length >= 1, isGlobList = (gl) => gl.length >= 1, Pattern = class _Pattern {
|
|
29725
29747
|
#patternList;
|
|
@@ -29850,11 +29872,11 @@ var isPatternList = (pl) => pl.length >= 1, isGlobList = (gl) => gl.length >= 1,
|
|
|
29850
29872
|
};
|
|
29851
29873
|
|
|
29852
29874
|
// ../../../node_modules/rimraf/node_modules/minipass/dist/esm/index.js
|
|
29853
|
-
var
|
|
29875
|
+
var import_node_events2 = require("node:events"), import_node_stream3 = __toESM(require("node:stream"), 1), import_node_string_decoder2 = require("node:string_decoder"), proc2 = typeof process == "object" && process ? process : {
|
|
29854
29876
|
stdout: null,
|
|
29855
29877
|
stderr: null
|
|
29856
|
-
}, isStream2 = (s) => !!s && typeof s == "object" && (s instanceof Minipass2 || s instanceof
|
|
29857
|
-
s.pipe !==
|
|
29878
|
+
}, isStream2 = (s) => !!s && typeof s == "object" && (s instanceof Minipass2 || s instanceof import_node_stream3.default || isReadable2(s) || isWritable2(s)), isReadable2 = (s) => !!s && typeof s == "object" && s instanceof import_node_events2.EventEmitter && typeof s.pipe == "function" && // node core Writable streams have a pipe() method, but it throws
|
|
29879
|
+
s.pipe !== import_node_stream3.default.Writable.prototype.pipe, isWritable2 = (s) => !!s && typeof s == "object" && s instanceof import_node_events2.EventEmitter && typeof s.write == "function" && typeof s.end == "function", EOF2 = Symbol("EOF"), MAYBE_EMIT_END2 = Symbol("maybeEmitEnd"), EMITTED_END2 = Symbol("emittedEnd"), EMITTING_END2 = Symbol("emittingEnd"), EMITTED_ERROR2 = Symbol("emittedError"), CLOSED2 = Symbol("closed"), READ2 = Symbol("read"), FLUSH2 = Symbol("flush"), FLUSHCHUNK2 = Symbol("flushChunk"), ENCODING2 = Symbol("encoding"), DECODER2 = Symbol("decoder"), FLOWING2 = Symbol("flowing"), PAUSED2 = Symbol("paused"), RESUME2 = Symbol("resume"), BUFFER2 = Symbol("buffer"), PIPES2 = Symbol("pipes"), BUFFERLENGTH2 = Symbol("bufferLength"), BUFFERPUSH2 = Symbol("bufferPush"), BUFFERSHIFT2 = Symbol("bufferShift"), OBJECTMODE2 = Symbol("objectMode"), DESTROYED2 = Symbol("destroyed"), ERROR2 = Symbol("error"), EMITDATA2 = Symbol("emitData"), EMITEND3 = Symbol("emitEnd"), EMITEND22 = Symbol("emitEnd2"), ASYNC2 = Symbol("async"), ABORT2 = Symbol("abort"), ABORTED2 = Symbol("aborted"), SIGNAL2 = Symbol("signal"), DATALISTENERS2 = Symbol("dataListeners"), DISCARDED2 = Symbol("discarded"), defer2 = (fn) => Promise.resolve().then(fn), nodefer2 = (fn) => fn(), isEndish2 = (ev) => ev === "end" || ev === "finish" || ev === "prefinish", isArrayBufferLike2 = (b) => b instanceof ArrayBuffer || !!b && typeof b == "object" && b.constructor && b.constructor.name === "ArrayBuffer" && b.byteLength >= 0, isArrayBufferView2 = (b) => !Buffer.isBuffer(b) && ArrayBuffer.isView(b), Pipe2 = class {
|
|
29858
29880
|
src;
|
|
29859
29881
|
dest;
|
|
29860
29882
|
opts;
|
|
@@ -29880,7 +29902,7 @@ s.pipe !== import_stream2.default.Writable.prototype.pipe, isWritable2 = (s) =>
|
|
|
29880
29902
|
constructor(src, dest, opts) {
|
|
29881
29903
|
super(src, dest, opts), this.proxyErrors = (er) => dest.emit("error", er), src.on("error", this.proxyErrors);
|
|
29882
29904
|
}
|
|
29883
|
-
}, isObjectModeOptions2 = (o) => !!o.objectMode, isEncodingOptions2 = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer", Minipass2 = class extends
|
|
29905
|
+
}, isObjectModeOptions2 = (o) => !!o.objectMode, isEncodingOptions2 = (o) => !o.objectMode && !!o.encoding && o.encoding !== "buffer", Minipass2 = class extends import_node_events2.EventEmitter {
|
|
29884
29906
|
[FLOWING2] = !1;
|
|
29885
29907
|
[PAUSED2] = !1;
|
|
29886
29908
|
[PIPES2] = [];
|
|
@@ -29918,7 +29940,7 @@ s.pipe !== import_stream2.default.Writable.prototype.pipe, isWritable2 = (s) =>
|
|
|
29918
29940
|
let options = args[0] || {};
|
|
29919
29941
|
if (super(), options.objectMode && typeof options.encoding == "string")
|
|
29920
29942
|
throw new TypeError("Encoding and objectMode may not be used together");
|
|
29921
|
-
isObjectModeOptions2(options) ? (this[OBJECTMODE2] = !0, this[ENCODING2] = null) : isEncodingOptions2(options) ? (this[ENCODING2] = options.encoding, this[OBJECTMODE2] = !1) : (this[OBJECTMODE2] = !1, this[ENCODING2] = null), this[ASYNC2] = !!options.async, this[DECODER2] = this[ENCODING2] ? new
|
|
29943
|
+
isObjectModeOptions2(options) ? (this[OBJECTMODE2] = !0, this[ENCODING2] = null) : isEncodingOptions2(options) ? (this[ENCODING2] = options.encoding, this[OBJECTMODE2] = !1) : (this[OBJECTMODE2] = !1, this[ENCODING2] = null), this[ASYNC2] = !!options.async, this[DECODER2] = this[ENCODING2] ? new import_node_string_decoder2.StringDecoder(this[ENCODING2]) : null, options && options.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[BUFFER2] }), options && options.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[PIPES2] });
|
|
29922
29944
|
let { signal } = options;
|
|
29923
29945
|
signal && (this[SIGNAL2] = signal, signal.aborted ? this[ABORT2]() : signal.addEventListener("abort", () => this[ABORT2]()));
|
|
29924
29946
|
}
|
|
@@ -30411,9 +30433,10 @@ var defaultPlatform2 = typeof process == "object" && process && typeof process.p
|
|
|
30411
30433
|
relativeChildren;
|
|
30412
30434
|
absolute;
|
|
30413
30435
|
absoluteChildren;
|
|
30436
|
+
platform;
|
|
30437
|
+
mmopts;
|
|
30414
30438
|
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform2 }) {
|
|
30415
|
-
this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = []
|
|
30416
|
-
let mmopts = {
|
|
30439
|
+
this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = platform, this.mmopts = {
|
|
30417
30440
|
dot: !0,
|
|
30418
30441
|
nobrace,
|
|
30419
30442
|
nocase,
|
|
@@ -30424,17 +30447,19 @@ var defaultPlatform2 = typeof process == "object" && process && typeof process.p
|
|
|
30424
30447
|
nocomment: !0,
|
|
30425
30448
|
nonegate: !0
|
|
30426
30449
|
};
|
|
30427
|
-
for (let ign of ignored)
|
|
30428
|
-
|
|
30429
|
-
|
|
30430
|
-
|
|
30431
|
-
|
|
30432
|
-
|
|
30433
|
-
|
|
30434
|
-
|
|
30435
|
-
|
|
30436
|
-
|
|
30437
|
-
|
|
30450
|
+
for (let ign of ignored)
|
|
30451
|
+
this.add(ign);
|
|
30452
|
+
}
|
|
30453
|
+
add(ign) {
|
|
30454
|
+
let mm = new Minimatch(ign, this.mmopts);
|
|
30455
|
+
for (let i = 0; i < mm.set.length; i++) {
|
|
30456
|
+
let parsed = mm.set[i], globParts = mm.globParts[i];
|
|
30457
|
+
if (!parsed || !globParts)
|
|
30458
|
+
throw new Error("invalid pattern object");
|
|
30459
|
+
for (; parsed[0] === "." && globParts[0] === "."; )
|
|
30460
|
+
parsed.shift(), globParts.shift();
|
|
30461
|
+
let p = new Pattern(parsed, globParts, 0, this.platform), m = new Minimatch(p.globString(), this.mmopts), children = globParts[globParts.length - 1] === "**", absolute = p.isAbsolute();
|
|
30462
|
+
absolute ? this.absolute.push(m) : this.relative.push(m), children && (absolute ? this.absoluteChildren.push(m) : this.relativeChildren.push(m));
|
|
30438
30463
|
}
|
|
30439
30464
|
}
|
|
30440
30465
|
ignored(p) {
|
|
@@ -30615,8 +30640,13 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
|
|
|
30615
30640
|
#sep;
|
|
30616
30641
|
signal;
|
|
30617
30642
|
maxDepth;
|
|
30643
|
+
includeChildMatches;
|
|
30618
30644
|
constructor(patterns, path6, opts) {
|
|
30619
|
-
this.patterns = patterns, this.path = path6, this.opts = opts, this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/", opts.ignore && (this.#ignore = makeIgnore(opts.ignore, opts)
|
|
30645
|
+
if (this.patterns = patterns, this.path = path6, this.opts = opts, this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/", this.includeChildMatches = opts.includeChildMatches !== !1, (opts.ignore || !this.includeChildMatches) && (this.#ignore = makeIgnore(opts.ignore ?? [], opts), !this.includeChildMatches && typeof this.#ignore.add != "function")) {
|
|
30646
|
+
let m = "cannot ignore child matches, ignore lacks add() method.";
|
|
30647
|
+
throw new Error(m);
|
|
30648
|
+
}
|
|
30649
|
+
this.maxDepth = opts.maxDepth || 1 / 0, opts.signal && (this.signal = opts.signal, this.signal.addEventListener("abort", () => {
|
|
30620
30650
|
this.#onResume.length = 0;
|
|
30621
30651
|
}));
|
|
30622
30652
|
}
|
|
@@ -30681,6 +30711,10 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
|
|
|
30681
30711
|
matchFinish(e, absolute) {
|
|
30682
30712
|
if (this.#ignored(e))
|
|
30683
30713
|
return;
|
|
30714
|
+
if (!this.includeChildMatches && this.#ignore?.add) {
|
|
30715
|
+
let ign = `${e.relativePosix()}/**`;
|
|
30716
|
+
this.#ignore.add(ign);
|
|
30717
|
+
}
|
|
30684
30718
|
let abs = this.opts.absolute === void 0 ? absolute : this.opts.absolute;
|
|
30685
30719
|
this.seen.add(e);
|
|
30686
30720
|
let mark = this.opts.mark && e.isDirectory() ? this.#sep : "";
|
|
@@ -30775,9 +30809,9 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
|
|
|
30775
30809
|
next();
|
|
30776
30810
|
}
|
|
30777
30811
|
}, GlobWalker = class extends GlobUtil {
|
|
30778
|
-
matches;
|
|
30812
|
+
matches = /* @__PURE__ */ new Set();
|
|
30779
30813
|
constructor(patterns, path6, opts) {
|
|
30780
|
-
super(patterns, path6, opts)
|
|
30814
|
+
super(patterns, path6, opts);
|
|
30781
30815
|
}
|
|
30782
30816
|
matchEmit(e) {
|
|
30783
30817
|
this.matches.add(e);
|
|
@@ -30847,6 +30881,7 @@ var defaultPlatform3 = typeof process == "object" && process && typeof process.p
|
|
|
30847
30881
|
signal;
|
|
30848
30882
|
windowsPathsNoEscape;
|
|
30849
30883
|
withFileTypes;
|
|
30884
|
+
includeChildMatches;
|
|
30850
30885
|
/**
|
|
30851
30886
|
* The options provided to the constructor.
|
|
30852
30887
|
*/
|
|
@@ -30870,7 +30905,7 @@ var defaultPlatform3 = typeof process == "object" && process && typeof process.p
|
|
|
30870
30905
|
constructor(pattern, opts) {
|
|
30871
30906
|
if (!opts)
|
|
30872
30907
|
throw new TypeError("glob options required");
|
|
30873
|
-
if (this.withFileTypes = !!opts.withFileTypes, this.signal = opts.signal, this.follow = !!opts.follow, this.dot = !!opts.dot, this.dotRelative = !!opts.dotRelative, this.nodir = !!opts.nodir, this.mark = !!opts.mark, opts.cwd ? (opts.cwd instanceof URL || opts.cwd.startsWith("file://")) && (opts.cwd = (0,
|
|
30908
|
+
if (this.withFileTypes = !!opts.withFileTypes, this.signal = opts.signal, this.follow = !!opts.follow, this.dot = !!opts.dot, this.dotRelative = !!opts.dotRelative, this.nodir = !!opts.nodir, this.mark = !!opts.mark, opts.cwd ? (opts.cwd instanceof URL || opts.cwd.startsWith("file://")) && (opts.cwd = (0, import_node_url3.fileURLToPath)(opts.cwd)) : this.cwd = "", this.cwd = opts.cwd || "", this.root = opts.root, this.magicalBraces = !!opts.magicalBraces, this.nobrace = !!opts.nobrace, this.noext = !!opts.noext, this.realpath = !!opts.realpath, this.absolute = opts.absolute, this.includeChildMatches = opts.includeChildMatches !== !1, this.noglobstar = !!opts.noglobstar, this.matchBase = !!opts.matchBase, this.maxDepth = typeof opts.maxDepth == "number" ? opts.maxDepth : 1 / 0, this.stat = !!opts.stat, this.ignore = opts.ignore, this.withFileTypes && this.absolute !== void 0)
|
|
30874
30909
|
throw new Error("cannot set absolute and withFileTypes:true");
|
|
30875
30910
|
if (typeof pattern == "string" && (pattern = [pattern]), this.windowsPathsNoEscape = !!opts.windowsPathsNoEscape || opts.allowWindowsEscape === !1, this.windowsPathsNoEscape && (pattern = pattern.map((p) => p.replace(/\\/g, "/"))), this.matchBase) {
|
|
30876
30911
|
if (opts.noglobstar)
|
|
@@ -30917,7 +30952,8 @@ var defaultPlatform3 = typeof process == "object" && process && typeof process.p
|
|
|
30917
30952
|
...this.opts,
|
|
30918
30953
|
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
30919
30954
|
platform: this.platform,
|
|
30920
|
-
nocase: this.nocase
|
|
30955
|
+
nocase: this.nocase,
|
|
30956
|
+
includeChildMatches: this.includeChildMatches
|
|
30921
30957
|
}).walk()
|
|
30922
30958
|
];
|
|
30923
30959
|
}
|
|
@@ -30927,7 +30963,8 @@ var defaultPlatform3 = typeof process == "object" && process && typeof process.p
|
|
|
30927
30963
|
...this.opts,
|
|
30928
30964
|
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
30929
30965
|
platform: this.platform,
|
|
30930
|
-
nocase: this.nocase
|
|
30966
|
+
nocase: this.nocase,
|
|
30967
|
+
includeChildMatches: this.includeChildMatches
|
|
30931
30968
|
}).walkSync()
|
|
30932
30969
|
];
|
|
30933
30970
|
}
|
|
@@ -30936,7 +30973,8 @@ var defaultPlatform3 = typeof process == "object" && process && typeof process.p
|
|
|
30936
30973
|
...this.opts,
|
|
30937
30974
|
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
30938
30975
|
platform: this.platform,
|
|
30939
|
-
nocase: this.nocase
|
|
30976
|
+
nocase: this.nocase,
|
|
30977
|
+
includeChildMatches: this.includeChildMatches
|
|
30940
30978
|
}).stream();
|
|
30941
30979
|
}
|
|
30942
30980
|
streamSync() {
|
|
@@ -30944,7 +30982,8 @@ var defaultPlatform3 = typeof process == "object" && process && typeof process.p
|
|
|
30944
30982
|
...this.opts,
|
|
30945
30983
|
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
30946
30984
|
platform: this.platform,
|
|
30947
|
-
nocase: this.nocase
|
|
30985
|
+
nocase: this.nocase,
|
|
30986
|
+
includeChildMatches: this.includeChildMatches
|
|
30948
30987
|
}).streamSync();
|
|
30949
30988
|
}
|
|
30950
30989
|
/**
|
|
@@ -31035,7 +31074,7 @@ var import_fs3 = __toESM(require("fs"), 1), import_fs4 = require("fs"), import_f
|
|
|
31035
31074
|
};
|
|
31036
31075
|
|
|
31037
31076
|
// ../../../node_modules/rimraf/dist/mjs/rimraf-posix.js
|
|
31038
|
-
var
|
|
31077
|
+
var import_path3 = require("path");
|
|
31039
31078
|
|
|
31040
31079
|
// ../../../node_modules/rimraf/dist/mjs/readdir-or-error.js
|
|
31041
31080
|
var { readdir: readdir3 } = promises, readdirOrError = (path6) => readdir3(path6).catch((er) => er), readdirOrErrorSync = (path6) => {
|
|
@@ -31093,7 +31132,7 @@ var { lstat: lstat3, rmdir: rmdir2, unlink: unlink2 } = promises, rimrafPosix =
|
|
|
31093
31132
|
}
|
|
31094
31133
|
return opt.filter && !await opt.filter(path6, ent) ? !1 : (await ignoreENOENT(unlink2(path6)), !0);
|
|
31095
31134
|
}
|
|
31096
|
-
return !(await Promise.all(entries.map((ent2) => rimrafPosixDir((0,
|
|
31135
|
+
return !(await Promise.all(entries.map((ent2) => rimrafPosixDir((0, import_path3.resolve)(path6, ent2.name), opt, ent2)))).reduce((a, b) => a && b, !0) || opt.preserveRoot === !1 && path6 === (0, import_path3.parse)(path6).root || opt.filter && !await opt.filter(path6, ent) ? !1 : (await ignoreENOENT(rmdir2(path6)), !0);
|
|
31097
31136
|
}, rimrafPosixDirSync = (path6, opt, ent) => {
|
|
31098
31137
|
if (opt?.signal?.aborted)
|
|
31099
31138
|
throw opt.signal.reason;
|
|
@@ -31109,14 +31148,14 @@ var { lstat: lstat3, rmdir: rmdir2, unlink: unlink2 } = promises, rimrafPosix =
|
|
|
31109
31148
|
}
|
|
31110
31149
|
let removedAll = !0;
|
|
31111
31150
|
for (let ent2 of entries) {
|
|
31112
|
-
let p = (0,
|
|
31151
|
+
let p = (0, import_path3.resolve)(path6, ent2.name);
|
|
31113
31152
|
removedAll = rimrafPosixDirSync(p, opt, ent2) && removedAll;
|
|
31114
31153
|
}
|
|
31115
|
-
return opt.preserveRoot === !1 && path6 === (0,
|
|
31154
|
+
return opt.preserveRoot === !1 && path6 === (0, import_path3.parse)(path6).root || !removedAll || opt.filter && !opt.filter(path6, ent) ? !1 : (ignoreENOENTSync(() => (0, import_fs4.rmdirSync)(path6)), !0);
|
|
31116
31155
|
};
|
|
31117
31156
|
|
|
31118
31157
|
// ../../../node_modules/rimraf/dist/mjs/rimraf-windows.js
|
|
31119
|
-
var
|
|
31158
|
+
var import_path6 = require("path");
|
|
31120
31159
|
|
|
31121
31160
|
// ../../../node_modules/rimraf/dist/mjs/fix-eperm.js
|
|
31122
31161
|
var { chmod: chmod2 } = promises, fixEPERM = (fn) => async (path6) => {
|
|
@@ -31200,10 +31239,10 @@ var codes = /* @__PURE__ */ new Set(["EMFILE", "ENFILE", "EBUSY"]), retryBusy =
|
|
|
31200
31239
|
};
|
|
31201
31240
|
|
|
31202
31241
|
// ../../../node_modules/rimraf/dist/mjs/rimraf-move-remove.js
|
|
31203
|
-
var
|
|
31242
|
+
var import_path5 = require("path");
|
|
31204
31243
|
|
|
31205
31244
|
// ../../../node_modules/rimraf/dist/mjs/default-tmp.js
|
|
31206
|
-
var import_os = require("os"),
|
|
31245
|
+
var import_os = require("os"), import_path4 = require("path");
|
|
31207
31246
|
var { stat: stat2 } = promises, isDirSync = (path6) => {
|
|
31208
31247
|
try {
|
|
31209
31248
|
return (0, import_fs4.statSync)(path6).isDirectory();
|
|
@@ -31211,21 +31250,21 @@ var { stat: stat2 } = promises, isDirSync = (path6) => {
|
|
|
31211
31250
|
return !1;
|
|
31212
31251
|
}
|
|
31213
31252
|
}, isDir = (path6) => stat2(path6).then((st) => st.isDirectory(), () => !1), win32DefaultTmp = async (path6) => {
|
|
31214
|
-
let { root } = (0,
|
|
31253
|
+
let { root } = (0, import_path4.parse)(path6), tmp = (0, import_os.tmpdir)(), { root: tmpRoot } = (0, import_path4.parse)(tmp);
|
|
31215
31254
|
if (root.toLowerCase() === tmpRoot.toLowerCase())
|
|
31216
31255
|
return tmp;
|
|
31217
|
-
let driveTmp = (0,
|
|
31256
|
+
let driveTmp = (0, import_path4.resolve)(root, "/temp");
|
|
31218
31257
|
return await isDir(driveTmp) ? driveTmp : root;
|
|
31219
31258
|
}, win32DefaultTmpSync = (path6) => {
|
|
31220
|
-
let { root } = (0,
|
|
31259
|
+
let { root } = (0, import_path4.parse)(path6), tmp = (0, import_os.tmpdir)(), { root: tmpRoot } = (0, import_path4.parse)(tmp);
|
|
31221
31260
|
if (root.toLowerCase() === tmpRoot.toLowerCase())
|
|
31222
31261
|
return tmp;
|
|
31223
|
-
let driveTmp = (0,
|
|
31262
|
+
let driveTmp = (0, import_path4.resolve)(root, "/temp");
|
|
31224
31263
|
return isDirSync(driveTmp) ? driveTmp : root;
|
|
31225
31264
|
}, posixDefaultTmp = async () => (0, import_os.tmpdir)(), posixDefaultTmpSync = () => (0, import_os.tmpdir)(), defaultTmp = platform_default === "win32" ? win32DefaultTmp : posixDefaultTmp, defaultTmpSync = platform_default === "win32" ? win32DefaultTmpSync : posixDefaultTmpSync;
|
|
31226
31265
|
|
|
31227
31266
|
// ../../../node_modules/rimraf/dist/mjs/rimraf-move-remove.js
|
|
31228
|
-
var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chmod3 } = promises, uniqueFilename = (path6) => `.${(0,
|
|
31267
|
+
var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chmod3 } = promises, uniqueFilename = (path6) => `.${(0, import_path5.basename)(path6)}.${Math.random()}`, unlinkFixEPERM = async (path6) => unlink3(path6).catch((er) => {
|
|
31229
31268
|
if (er.code === "EPERM")
|
|
31230
31269
|
return chmod3(path6, 438).then(() => unlink3(path6), (er2) => {
|
|
31231
31270
|
if (er2.code !== "ENOENT")
|
|
@@ -31265,7 +31304,7 @@ var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chm
|
|
|
31265
31304
|
throw opt.signal.reason;
|
|
31266
31305
|
if (!opt.tmp)
|
|
31267
31306
|
return rimrafMoveRemoveDir(path6, { ...opt, tmp: await defaultTmp(path6) }, ent);
|
|
31268
|
-
if (path6 === opt.tmp && (0,
|
|
31307
|
+
if (path6 === opt.tmp && (0, import_path5.parse)(path6).root !== path6)
|
|
31269
31308
|
throw new Error("cannot delete temp directory used for deletion");
|
|
31270
31309
|
let entries = ent.isDirectory() ? await readdirOrError(path6) : null;
|
|
31271
31310
|
if (!Array.isArray(entries)) {
|
|
@@ -31277,9 +31316,9 @@ var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chm
|
|
|
31277
31316
|
}
|
|
31278
31317
|
return opt.filter && !await opt.filter(path6, ent) ? !1 : (await ignoreENOENT(tmpUnlink(path6, opt.tmp, unlinkFixEPERM)), !0);
|
|
31279
31318
|
}
|
|
31280
|
-
return !(await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir((0,
|
|
31319
|
+
return !(await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir((0, import_path5.resolve)(path6, ent2.name), opt, ent2)))).reduce((a, b) => a && b, !0) || opt.preserveRoot === !1 && path6 === (0, import_path5.parse)(path6).root || opt.filter && !await opt.filter(path6, ent) ? !1 : (await ignoreENOENT(tmpUnlink(path6, opt.tmp, rmdir3)), !0);
|
|
31281
31320
|
}, tmpUnlink = async (path6, tmp, rm3) => {
|
|
31282
|
-
let tmpFile = (0,
|
|
31321
|
+
let tmpFile = (0, import_path5.resolve)(tmp, uniqueFilename(path6));
|
|
31283
31322
|
return await rename2(path6, tmpFile), await rm3(tmpFile);
|
|
31284
31323
|
}, rimrafMoveRemoveSync = (path6, opt) => {
|
|
31285
31324
|
if (opt?.signal?.aborted)
|
|
@@ -31297,7 +31336,7 @@ var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chm
|
|
|
31297
31336
|
if (!opt.tmp)
|
|
31298
31337
|
return rimrafMoveRemoveDirSync(path6, { ...opt, tmp: defaultTmpSync(path6) }, ent);
|
|
31299
31338
|
let tmp = opt.tmp;
|
|
31300
|
-
if (path6 === opt.tmp && (0,
|
|
31339
|
+
if (path6 === opt.tmp && (0, import_path5.parse)(path6).root !== path6)
|
|
31301
31340
|
throw new Error("cannot delete temp directory used for deletion");
|
|
31302
31341
|
let entries = ent.isDirectory() ? readdirOrErrorSync(path6) : null;
|
|
31303
31342
|
if (!Array.isArray(entries)) {
|
|
@@ -31311,12 +31350,12 @@ var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chm
|
|
|
31311
31350
|
}
|
|
31312
31351
|
let removedAll = !0;
|
|
31313
31352
|
for (let ent2 of entries) {
|
|
31314
|
-
let p = (0,
|
|
31353
|
+
let p = (0, import_path5.resolve)(path6, ent2.name);
|
|
31315
31354
|
removedAll = rimrafMoveRemoveDirSync(p, opt, ent2) && removedAll;
|
|
31316
31355
|
}
|
|
31317
|
-
return !removedAll || opt.preserveRoot === !1 && path6 === (0,
|
|
31356
|
+
return !removedAll || opt.preserveRoot === !1 && path6 === (0, import_path5.parse)(path6).root || opt.filter && !opt.filter(path6, ent) ? !1 : (ignoreENOENTSync(() => tmpUnlinkSync(path6, tmp, import_fs4.rmdirSync)), !0);
|
|
31318
31357
|
}, tmpUnlinkSync = (path6, tmp, rmSync2) => {
|
|
31319
|
-
let tmpFile = (0,
|
|
31358
|
+
let tmpFile = (0, import_path5.resolve)(tmp, uniqueFilename(path6));
|
|
31320
31359
|
return (0, import_fs4.renameSync)(path6, tmpFile), rmSync2(tmpFile);
|
|
31321
31360
|
};
|
|
31322
31361
|
|
|
@@ -31376,11 +31415,11 @@ var { unlink: unlink4, rmdir: rmdir4, lstat: lstat5 } = promises, rimrafWindowsF
|
|
|
31376
31415
|
}
|
|
31377
31416
|
return opt.filter && !await opt.filter(path6, ent) ? !1 : (await ignoreENOENT(rimrafWindowsFile(path6, opt)), !0);
|
|
31378
31417
|
}
|
|
31379
|
-
let s = state === START ? CHILD : state, removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir((0,
|
|
31418
|
+
let s = state === START ? CHILD : state, removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir((0, import_path6.resolve)(path6, ent2.name), opt, ent2, s)))).reduce((a, b) => a && b, !0);
|
|
31380
31419
|
if (state === START)
|
|
31381
31420
|
return rimrafWindowsDir(path6, opt, ent, FINISH);
|
|
31382
31421
|
if (state === FINISH) {
|
|
31383
|
-
if (opt.preserveRoot === !1 && path6 === (0,
|
|
31422
|
+
if (opt.preserveRoot === !1 && path6 === (0, import_path6.parse)(path6).root || !removedAll || opt.filter && !await opt.filter(path6, ent))
|
|
31384
31423
|
return !1;
|
|
31385
31424
|
await ignoreENOENT(rimrafWindowsDirMoveRemoveFallback(path6, opt));
|
|
31386
31425
|
}
|
|
@@ -31398,13 +31437,13 @@ var { unlink: unlink4, rmdir: rmdir4, lstat: lstat5 } = promises, rimrafWindowsF
|
|
|
31398
31437
|
}
|
|
31399
31438
|
let removedAll = !0;
|
|
31400
31439
|
for (let ent2 of entries) {
|
|
31401
|
-
let s = state === START ? CHILD : state, p = (0,
|
|
31440
|
+
let s = state === START ? CHILD : state, p = (0, import_path6.resolve)(path6, ent2.name);
|
|
31402
31441
|
removedAll = rimrafWindowsDirSync(p, opt, ent2, s) && removedAll;
|
|
31403
31442
|
}
|
|
31404
31443
|
if (state === START)
|
|
31405
31444
|
return rimrafWindowsDirSync(path6, opt, ent, FINISH);
|
|
31406
31445
|
if (state === FINISH) {
|
|
31407
|
-
if (opt.preserveRoot === !1 && path6 === (0,
|
|
31446
|
+
if (opt.preserveRoot === !1 && path6 === (0, import_path6.parse)(path6).root || !removedAll || opt.filter && !opt.filter(path6, ent))
|
|
31408
31447
|
return !1;
|
|
31409
31448
|
ignoreENOENTSync(() => {
|
|
31410
31449
|
rimrafWindowsDirMoveRemoveFallbackSync(path6, opt);
|
|
@@ -31464,27 +31503,27 @@ rimraf.rimraf = rimraf;
|
|
|
31464
31503
|
var open = require_opener(), exec = (cmd, options) => (0, import_node_child_process2.execSync)(cmd, {
|
|
31465
31504
|
stdio: process.env.DEBUG ? "inherit" : "ignore",
|
|
31466
31505
|
...options
|
|
31467
|
-
}), home = (0, import_node_os2.homedir)(), tamaguiDir = (0,
|
|
31468
|
-
targetGitDir = IS_TEST ? (0,
|
|
31469
|
-
let starterDir = (0,
|
|
31506
|
+
}), home = (0, import_node_os2.homedir)(), tamaguiDir = (0, import_node_path4.join)(home, ".tamagui"), targetGitDir = "", cloneStarter = async (template, resolvedProjectPath, projectName) => {
|
|
31507
|
+
targetGitDir = IS_TEST ? (0, import_node_path4.join)(tamaguiDir, "tamagui-test", template.repo.url.split("/").at(-1)) : (0, import_node_path4.join)(tamaguiDir, "tamagui", template.repo.url.split("/").at(-1)), console.info(), await setupTamaguiDotDir(template);
|
|
31508
|
+
let starterDir = (0, import_node_path4.join)(targetGitDir, ...template.repo.dir);
|
|
31470
31509
|
console.info(), console.info(
|
|
31471
31510
|
`Copying starter from ${starterDir} into ${import_chalk7.default.blueBright(projectName)}...`
|
|
31472
31511
|
), console.info(), await (0, import_fs_extra.copy)(starterDir, resolvedProjectPath), await rimraf(`${resolvedProjectPath}/.git`), console.info(import_chalk7.default.green(`${projectName} created!`)), console.info();
|
|
31473
31512
|
};
|
|
31474
31513
|
async function setupTamaguiDotDir(template, isRetry = !1) {
|
|
31475
|
-
let repoRoot2 = (0,
|
|
31514
|
+
let repoRoot2 = (0, import_node_path4.join)(__dirname, "..", "..", "..");
|
|
31476
31515
|
if (console.info(`Setting up ${import_chalk7.default.blueBright(targetGitDir)}...`), IS_TEST && cd(repoRoot2), process.env.GITHUB_HEAD_REF)
|
|
31477
31516
|
try {
|
|
31478
31517
|
await $`git switch -c ${process.env.GITHUB_HEAD_REF}`;
|
|
31479
31518
|
} catch {
|
|
31480
31519
|
}
|
|
31481
31520
|
let branch = template.repo.branch;
|
|
31482
|
-
if (IS_TEST && (console.info("Test mode: cleaning old tamagui git dir"), await (0, import_fs_extra.remove)(targetGitDir), !await (0, import_fs_extra.pathExists)((0,
|
|
31521
|
+
if (IS_TEST && (console.info("Test mode: cleaning old tamagui git dir"), await (0, import_fs_extra.remove)(targetGitDir), !await (0, import_fs_extra.pathExists)((0, import_node_path4.join)(repoRoot2, ".git"))))
|
|
31483
31522
|
throw new Error("Not in a git folder");
|
|
31484
31523
|
await (0, import_fs_extra.ensureDir)(tamaguiDir), cd(tamaguiDir);
|
|
31485
31524
|
let isInSubDir = template.repo.dir.length > 0;
|
|
31486
31525
|
if (await (0, import_fs_extra.pathExists)(targetGitDir))
|
|
31487
|
-
await (0, import_fs_extra.pathExists)((0,
|
|
31526
|
+
await (0, import_fs_extra.pathExists)((0, import_node_path4.join)(targetGitDir, ".git")) || (console.error(`Corrupt Tamagui directory, please delete ${targetGitDir} and re-run`), process.exit(1));
|
|
31488
31527
|
else {
|
|
31489
31528
|
console.info("Cloning tamagui base directory"), console.info();
|
|
31490
31529
|
let sourceGitRepo = template.repo.url, sourceGitRepoSshFallback = template.repo.sshFallback, cmd = `git clone --branch ${branch} ${isInSubDir ? "--depth 1 --sparse --filter=blob:none " : ""}${sourceGitRepo} "${targetGitDir}"`;
|
|
@@ -31527,7 +31566,7 @@ ${err.stack}` : "trying from fresh."}`
|
|
|
31527
31566
|
}
|
|
31528
31567
|
|
|
31529
31568
|
// src/helpers/getProjectName.ts
|
|
31530
|
-
var
|
|
31569
|
+
var import_path7 = __toESM(require("path")), import_chalk8 = __toESM(require_source()), import_prompts = __toESM(require_prompts3());
|
|
31531
31570
|
|
|
31532
31571
|
// src/helpers/validateNpmPackage.ts
|
|
31533
31572
|
var import_validate_npm_package_name = __toESM(require_validate_npm_package_name());
|
|
@@ -31548,7 +31587,7 @@ var getProjectName = async (projectPath2) => {
|
|
|
31548
31587
|
message: "Project name:",
|
|
31549
31588
|
initial: "myapp",
|
|
31550
31589
|
validate: (name) => {
|
|
31551
|
-
let validation = validateNpmName(
|
|
31590
|
+
let validation = validateNpmName(import_path7.default.basename(import_path7.default.resolve(name)));
|
|
31552
31591
|
return validation.valid ? !0 : "Invalid project name: " + validation.problems[0];
|
|
31553
31592
|
}
|
|
31554
31593
|
});
|
|
@@ -31563,7 +31602,7 @@ var getProjectName = async (projectPath2) => {
|
|
|
31563
31602
|
var import_prompts3 = __toESM(require_prompts3());
|
|
31564
31603
|
|
|
31565
31604
|
// src/templates.ts
|
|
31566
|
-
var import_fs14 = require("fs"),
|
|
31605
|
+
var import_fs14 = require("fs"), import_path9 = require("path"), import_chalk14 = __toESM(require_source());
|
|
31567
31606
|
|
|
31568
31607
|
// src/steps/simple-web.ts
|
|
31569
31608
|
var import_chalk9 = __toESM(require_source()), packageManager = "yarn", useYarn = packageManager === "yarn", runCommand = (scriptName) => `${packageManager} ${useYarn ? "" : "run "}${scriptName}`, main = async ({ isFullClone, projectName }) => {
|
|
@@ -31630,7 +31669,7 @@ visit your project:
|
|
|
31630
31669
|
}, remix_default = main4;
|
|
31631
31670
|
|
|
31632
31671
|
// src/steps/takeout.ts
|
|
31633
|
-
var import_child_process = require("child_process"), import_fs13 = require("fs"), import_promises2 = __toESM(require("fs/promises")),
|
|
31672
|
+
var import_child_process = require("child_process"), import_fs13 = require("fs"), import_promises2 = __toESM(require("fs/promises")), import_path8 = __toESM(require("path")), import_chalk13 = __toESM(require_source()), import_prompts2 = __toESM(require_prompts3());
|
|
31634
31673
|
var packageManager4 = "yarn", useYarn4 = packageManager4 === "yarn", runCommand4 = (scriptName) => `${packageManager4} ${useYarn4 ? "" : "run "}${scriptName}`, main5 = async ({ isFullClone, projectName, projectPath: projectPath2 }) => {
|
|
31635
31674
|
console.info(`
|
|
31636
31675
|
${tamaguiRainbowAsciiArt.split(`
|
|
@@ -31664,10 +31703,10 @@ ${takeoutAsciiArt}
|
|
|
31664
31703
|
if (setUpSupabaseEnv) {
|
|
31665
31704
|
let envs = getEnvFromSupabaseStatus((0, import_child_process.execSync)("yarn supa status").toString()), newEnvContent = Object.entries(envs).map(([key, value]) => `${key}=${value}`).join(`
|
|
31666
31705
|
`);
|
|
31667
|
-
(0, import_fs13.existsSync)(
|
|
31668
|
-
|
|
31669
|
-
|
|
31670
|
-
), await import_promises2.default.writeFile(
|
|
31706
|
+
(0, import_fs13.existsSync)(import_path8.default.join(projectPath2, ".env.local")) && (0, import_fs13.readFileSync)(import_path8.default.join(projectPath2, ".env.local")).toString() !== newEnvContent && (0, import_fs13.renameSync)(
|
|
31707
|
+
import_path8.default.join(projectPath2, ".env.local"),
|
|
31708
|
+
import_path8.default.join(projectPath2, `.env.local.old-${Number(/* @__PURE__ */ new Date())}`)
|
|
31709
|
+
), await import_promises2.default.writeFile(import_path8.default.join(projectPath2, "./.env.local"), newEnvContent);
|
|
31671
31710
|
}
|
|
31672
31711
|
}
|
|
31673
31712
|
console.info();
|
|
@@ -31772,7 +31811,7 @@ function getEnvFromSupabaseStatus(status) {
|
|
|
31772
31811
|
}
|
|
31773
31812
|
|
|
31774
31813
|
// src/templates.ts
|
|
31775
|
-
var repoRoot = (0,
|
|
31814
|
+
var repoRoot = (0, import_path9.join)(__dirname, "..", "..", ".."), starterFreeRoot = (0, import_path9.join)(__dirname, "..", "..", "..", "..", "starter-free"), starterExists = (0, import_fs14.existsSync)(starterFreeRoot), templates = [
|
|
31776
31815
|
{
|
|
31777
31816
|
title: "Free - Expo + Next in a production ready monorepo",
|
|
31778
31817
|
value: "starter-free",
|
|
@@ -31889,7 +31928,7 @@ async function run() {
|
|
|
31889
31928
|
if (info) {
|
|
31890
31929
|
await (await getTemplateInfo(program.template)).extraSteps({
|
|
31891
31930
|
isFullClone: !1,
|
|
31892
|
-
projectName:
|
|
31931
|
+
projectName: import_node_path5.default.basename((0, import_node_process3.cwd)()),
|
|
31893
31932
|
projectPath: (0, import_node_process3.cwd)()
|
|
31894
31933
|
});
|
|
31895
31934
|
return;
|
|
@@ -31915,7 +31954,7 @@ async function run() {
|
|
|
31915
31954
|
Opening Takeout website - once you purchase you can restart the create process. Thank you!
|
|
31916
31955
|
`
|
|
31917
31956
|
), process.exit(0))), console.info();
|
|
31918
|
-
let resolvedProjectPath =
|
|
31957
|
+
let resolvedProjectPath = import_node_path5.default.resolve(process.cwd(), projectPath), projectName = import_node_path5.default.basename(resolvedProjectPath), { valid, problems } = validateNpmName(projectName);
|
|
31919
31958
|
valid || (console.error(
|
|
31920
31959
|
`Could not create a project called ${import_chalk15.default.red(
|
|
31921
31960
|
`"${projectName}"`
|
|
@@ -31952,7 +31991,7 @@ ${e}`), process.exit(1);
|
|
|
31952
31991
|
}), console.info(), console.info(import_chalk15.default.gray(tamaguiDuckAsciiArt));
|
|
31953
31992
|
}
|
|
31954
31993
|
function updatePackageJsonName(projectName, dir) {
|
|
31955
|
-
let packageJsonPath =
|
|
31994
|
+
let packageJsonPath = import_node_path5.default.join(dir, "package.json");
|
|
31956
31995
|
if ((0, import_fs_extra2.existsSync)(packageJsonPath)) {
|
|
31957
31996
|
let contentWithUpdatedName = (0, import_fs_extra2.readFileSync)(packageJsonPath).toString().replace(
|
|
31958
31997
|
/("name": ")(.*)(",)/,
|