@voidzero-dev/vite-plus-core 0.1.17-alpha.3 → 0.1.17-alpha.5
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/tsdown/build-y6nUUkVJ-CXW65uEP.js +2 -0
- package/dist/tsdown/{build-DU-BFLB1-C3nlWMI9.js → build-y6nUUkVJ-DChPSMiT.js} +233 -227
- package/dist/tsdown/{debug-BmAPbhgA-x0WPncIH.js → debug-CLlnG64L-CvIUyX2c.js} +2 -2
- package/dist/tsdown/{detect-h8ZFBH96-CQo7h2I_.js → detect-DN3DXXYt-DDr6LAmT.js} +1 -1
- package/dist/tsdown/{dist-CtsD24R6.js → dist-C4l5avio.js} +1 -1
- package/dist/tsdown/{dist-CxeZzY9B.js → dist-CbhZqEsp.js} +7 -7
- package/dist/tsdown/{dist-Cqme3mtE.js → dist-_IXstuie.js} +12 -12
- package/dist/tsdown/index-types.d.ts +1628 -1616
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-CSVR9Fv3.js → main-Ccx2FDJq.js} +95 -94
- package/dist/tsdown/run.js +5 -5
- package/dist/vite/node/chunks/node.js +127 -135
- package/package.json +8 -8
- package/dist/tsdown/build-DU-BFLB1-B93ygiSG.js +0 -2
|
@@ -27,8 +27,8 @@ import isModuleSyncConditionEnabled from "#module-sync-enabled";
|
|
|
27
27
|
import assert from "node:assert";
|
|
28
28
|
import process$1 from "node:process";
|
|
29
29
|
import v8 from "node:v8";
|
|
30
|
-
import * as nativeFs
|
|
31
|
-
import
|
|
30
|
+
import * as nativeFs from "fs";
|
|
31
|
+
import { readdir, readdirSync, realpath, realpathSync, stat, statSync } from "fs";
|
|
32
32
|
import { fileURLToPath as fileURLToPath$1 } from "url";
|
|
33
33
|
import { createRequire as createRequire$1 } from "module";
|
|
34
34
|
import { EventEmitter } from "node:events";
|
|
@@ -5828,7 +5828,7 @@ var Walker = class {
|
|
|
5828
5828
|
symlinks: /* @__PURE__ */ new Map(),
|
|
5829
5829
|
visited: [""].slice(0, 0),
|
|
5830
5830
|
controller: new Aborter(),
|
|
5831
|
-
fs: options.fs || nativeFs
|
|
5831
|
+
fs: options.fs || nativeFs
|
|
5832
5832
|
};
|
|
5833
5833
|
this.joinPath = build$7(this.root, options);
|
|
5834
5834
|
this.pushDirectory = build$6(this.root, options);
|
|
@@ -6035,37 +6035,38 @@ var Builder = class {
|
|
|
6035
6035
|
}
|
|
6036
6036
|
};
|
|
6037
6037
|
//#endregion
|
|
6038
|
-
//#region ../../node_modules/.pnpm/tinyglobby@0.2.
|
|
6038
|
+
//#region ../../node_modules/.pnpm/tinyglobby@0.2.16/node_modules/tinyglobby/dist/index.mjs
|
|
6039
6039
|
const isReadonlyArray = Array.isArray;
|
|
6040
|
+
const BACKSLASHES = /\\/g;
|
|
6040
6041
|
const isWin = process.platform === "win32";
|
|
6041
6042
|
const ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
|
|
6042
6043
|
function getPartialMatcher(patterns, options = {}) {
|
|
6043
6044
|
const patternsCount = patterns.length;
|
|
6044
6045
|
const patternsParts = Array(patternsCount);
|
|
6045
6046
|
const matchers = Array(patternsCount);
|
|
6046
|
-
|
|
6047
|
-
for (
|
|
6047
|
+
let i, j;
|
|
6048
|
+
for (i = 0; i < patternsCount; i++) {
|
|
6048
6049
|
const parts = splitPattern(patterns[i]);
|
|
6049
6050
|
patternsParts[i] = parts;
|
|
6050
6051
|
const partsCount = parts.length;
|
|
6051
6052
|
const partMatchers = Array(partsCount);
|
|
6052
|
-
for (
|
|
6053
|
+
for (j = 0; j < partsCount; j++) partMatchers[j] = (0, import_picomatch.default)(parts[j], options);
|
|
6053
6054
|
matchers[i] = partMatchers;
|
|
6054
6055
|
}
|
|
6055
6056
|
return (input) => {
|
|
6056
6057
|
const inputParts = input.split("/");
|
|
6057
6058
|
if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) return true;
|
|
6058
|
-
for (
|
|
6059
|
+
for (i = 0; i < patternsCount; i++) {
|
|
6059
6060
|
const patternParts = patternsParts[i];
|
|
6060
6061
|
const matcher = matchers[i];
|
|
6061
6062
|
const inputPatternCount = inputParts.length;
|
|
6062
6063
|
const minParts = Math.min(inputPatternCount, patternParts.length);
|
|
6063
|
-
|
|
6064
|
+
j = 0;
|
|
6064
6065
|
while (j < minParts) {
|
|
6065
6066
|
const part = patternParts[j];
|
|
6066
6067
|
if (part.includes("/")) return true;
|
|
6067
6068
|
if (!matcher[j](inputParts[j])) break;
|
|
6068
|
-
if (
|
|
6069
|
+
if (!options.noglobstar && part === "**") return true;
|
|
6069
6070
|
j++;
|
|
6070
6071
|
}
|
|
6071
6072
|
if (j === inputPatternCount) return true;
|
|
@@ -6079,7 +6080,7 @@ const isRoot = isWin ? (p) => WIN32_ROOT_DIR.test(p) : (p) => p === "/";
|
|
|
6079
6080
|
function buildFormat(cwd, root, absolute) {
|
|
6080
6081
|
if (cwd === root || root.startsWith(`${cwd}/`)) {
|
|
6081
6082
|
if (absolute) {
|
|
6082
|
-
const start =
|
|
6083
|
+
const start = cwd.length + +!isRoot(cwd);
|
|
6083
6084
|
return (p, isDir) => p.slice(start, isDir ? -1 : void 0) || ".";
|
|
6084
6085
|
}
|
|
6085
6086
|
const prefix = root.slice(cwd.length + 1);
|
|
@@ -6100,20 +6101,19 @@ function buildRelative(cwd, root) {
|
|
|
6100
6101
|
}
|
|
6101
6102
|
return (p) => {
|
|
6102
6103
|
const result = posix$1.relative(cwd, `${root}/${p}`);
|
|
6103
|
-
|
|
6104
|
-
return result || ".";
|
|
6104
|
+
return p[p.length - 1] === "/" && result !== "" ? `${result}/` : result || ".";
|
|
6105
6105
|
};
|
|
6106
6106
|
}
|
|
6107
6107
|
const splitPatternOptions = { parts: true };
|
|
6108
|
-
function splitPattern(path
|
|
6108
|
+
function splitPattern(path) {
|
|
6109
6109
|
var _result$parts;
|
|
6110
|
-
const result = import_picomatch.default.scan(path
|
|
6111
|
-
return ((_result$parts = result.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result.parts : [path
|
|
6110
|
+
const result = import_picomatch.default.scan(path, splitPatternOptions);
|
|
6111
|
+
return ((_result$parts = result.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result.parts : [path];
|
|
6112
6112
|
}
|
|
6113
6113
|
const POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
|
|
6114
6114
|
const WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
6115
|
-
const escapePosixPath = (path
|
|
6116
|
-
const escapeWin32Path = (path
|
|
6115
|
+
const escapePosixPath = (path) => path.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
|
|
6116
|
+
const escapeWin32Path = (path) => path.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
|
|
6117
6117
|
/**
|
|
6118
6118
|
* Escapes a path's special characters depending on the platform.
|
|
6119
6119
|
* @see {@link https://superchupu.dev/tinyglobby/documentation#escapePath}
|
|
@@ -6140,28 +6140,31 @@ function isDynamicPattern(pattern, options) {
|
|
|
6140
6140
|
function log(...tasks) {
|
|
6141
6141
|
console.log(`[tinyglobby ${(/* @__PURE__ */ new Date()).toLocaleTimeString("es")}]`, ...tasks);
|
|
6142
6142
|
}
|
|
6143
|
+
function ensureStringArray(value) {
|
|
6144
|
+
return typeof value === "string" ? [value] : value !== null && value !== void 0 ? value : [];
|
|
6145
|
+
}
|
|
6143
6146
|
const PARENT_DIRECTORY = /^(\/?\.\.)+/;
|
|
6144
6147
|
const ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
|
|
6145
|
-
|
|
6146
|
-
|
|
6148
|
+
function normalizePattern(pattern, opts, props, isIgnore) {
|
|
6149
|
+
var _PARENT_DIRECTORY$exe;
|
|
6150
|
+
const cwd = opts.cwd;
|
|
6147
6151
|
let result = pattern;
|
|
6148
|
-
if (pattern.
|
|
6149
|
-
if (
|
|
6152
|
+
if (pattern[pattern.length - 1] === "/") result = pattern.slice(0, -1);
|
|
6153
|
+
if (result[result.length - 1] !== "*" && opts.expandDirectories) result += "/**";
|
|
6150
6154
|
const escapedCwd = escapePath(cwd);
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
const parentDirectoryMatch = PARENT_DIRECTORY.exec(result);
|
|
6155
|
+
result = isAbsolute$1(result.replace(ESCAPING_BACKSLASHES, "")) ? posix$1.relative(escapedCwd, result) : posix$1.normalize(result);
|
|
6156
|
+
const parentDir = (_PARENT_DIRECTORY$exe = PARENT_DIRECTORY.exec(result)) === null || _PARENT_DIRECTORY$exe === void 0 ? void 0 : _PARENT_DIRECTORY$exe[0];
|
|
6154
6157
|
const parts = splitPattern(result);
|
|
6155
|
-
if (
|
|
6156
|
-
const n = (
|
|
6158
|
+
if (parentDir) {
|
|
6159
|
+
const n = (parentDir.length + 1) / 3;
|
|
6157
6160
|
let i = 0;
|
|
6158
6161
|
const cwdParts = escapedCwd.split("/");
|
|
6159
6162
|
while (i < n && parts[i + n] === cwdParts[cwdParts.length + i - n]) {
|
|
6160
6163
|
result = result.slice(0, (n - i - 1) * 3) + result.slice((n - i) * 3 + parts[i + n].length + 1) || ".";
|
|
6161
6164
|
i++;
|
|
6162
6165
|
}
|
|
6163
|
-
const potentialRoot = posix$1.join(cwd,
|
|
6164
|
-
if (
|
|
6166
|
+
const potentialRoot = posix$1.join(cwd, parentDir.slice(i * 3));
|
|
6167
|
+
if (potentialRoot[0] !== "." && props.root.length > potentialRoot.length) {
|
|
6165
6168
|
props.root = potentialRoot;
|
|
6166
6169
|
props.depthOffset = -n + i;
|
|
6167
6170
|
}
|
|
@@ -6177,7 +6180,7 @@ function normalizePattern(pattern, expandDirectories, cwd, props, isIgnore) {
|
|
|
6177
6180
|
newCommonPath.pop();
|
|
6178
6181
|
break;
|
|
6179
6182
|
}
|
|
6180
|
-
if (part !== props.commonPath[i] || isDynamicPattern(part)
|
|
6183
|
+
if (i === parts.length - 1 || part !== props.commonPath[i] || isDynamicPattern(part)) break;
|
|
6181
6184
|
newCommonPath.push(part);
|
|
6182
6185
|
}
|
|
6183
6186
|
props.depthOffset = newCommonPath.length;
|
|
@@ -6186,141 +6189,130 @@ function normalizePattern(pattern, expandDirectories, cwd, props, isIgnore) {
|
|
|
6186
6189
|
}
|
|
6187
6190
|
return result;
|
|
6188
6191
|
}
|
|
6189
|
-
function processPatterns(
|
|
6190
|
-
if (typeof patterns === "string") patterns = [patterns];
|
|
6191
|
-
if (typeof ignore === "string") ignore = [ignore];
|
|
6192
|
+
function processPatterns(options, patterns, props) {
|
|
6192
6193
|
const matchPatterns = [];
|
|
6193
6194
|
const ignorePatterns = [];
|
|
6194
|
-
for (const pattern of ignore) {
|
|
6195
|
+
for (const pattern of options.ignore) {
|
|
6195
6196
|
if (!pattern) continue;
|
|
6196
|
-
if (pattern[0] !== "!" || pattern[1] === "(") ignorePatterns.push(normalizePattern(pattern,
|
|
6197
|
+
if (pattern[0] !== "!" || pattern[1] === "(") ignorePatterns.push(normalizePattern(pattern, options, props, true));
|
|
6197
6198
|
}
|
|
6198
6199
|
for (const pattern of patterns) {
|
|
6199
6200
|
if (!pattern) continue;
|
|
6200
|
-
if (pattern[0] !== "!" || pattern[1] === "(") matchPatterns.push(normalizePattern(pattern,
|
|
6201
|
-
else if (pattern[1] !== "!" || pattern[2] === "(") ignorePatterns.push(normalizePattern(pattern.slice(1),
|
|
6201
|
+
if (pattern[0] !== "!" || pattern[1] === "(") matchPatterns.push(normalizePattern(pattern, options, props, false));
|
|
6202
|
+
else if (pattern[1] !== "!" || pattern[2] === "(") ignorePatterns.push(normalizePattern(pattern.slice(1), options, props, true));
|
|
6202
6203
|
}
|
|
6203
6204
|
return {
|
|
6204
6205
|
match: matchPatterns,
|
|
6205
6206
|
ignore: ignorePatterns
|
|
6206
6207
|
};
|
|
6207
6208
|
}
|
|
6208
|
-
function
|
|
6209
|
-
|
|
6210
|
-
const path$1 = paths[i];
|
|
6211
|
-
paths[i] = relative(path$1);
|
|
6212
|
-
}
|
|
6213
|
-
return paths;
|
|
6214
|
-
}
|
|
6215
|
-
function normalizeCwd(cwd) {
|
|
6216
|
-
if (!cwd) return process.cwd().replace(BACKSLASHES, "/");
|
|
6217
|
-
if (cwd instanceof URL) return fileURLToPath$1(cwd).replace(BACKSLASHES, "/");
|
|
6218
|
-
return path$1.resolve(cwd).replace(BACKSLASHES, "/");
|
|
6219
|
-
}
|
|
6220
|
-
function getCrawler(patterns, inputOptions = {}) {
|
|
6221
|
-
const options = process.env.TINYGLOBBY_DEBUG ? {
|
|
6222
|
-
...inputOptions,
|
|
6223
|
-
debug: true
|
|
6224
|
-
} : inputOptions;
|
|
6225
|
-
const cwd = normalizeCwd(options.cwd);
|
|
6226
|
-
if (options.debug) log("globbing with:", {
|
|
6227
|
-
patterns,
|
|
6228
|
-
options,
|
|
6229
|
-
cwd
|
|
6230
|
-
});
|
|
6231
|
-
if (Array.isArray(patterns) && patterns.length === 0) return [{
|
|
6232
|
-
sync: () => [],
|
|
6233
|
-
withPromise: async () => []
|
|
6234
|
-
}, false];
|
|
6209
|
+
function buildCrawler(options, patterns) {
|
|
6210
|
+
const cwd = options.cwd;
|
|
6235
6211
|
const props = {
|
|
6236
6212
|
root: cwd,
|
|
6237
|
-
commonPath: null,
|
|
6238
6213
|
depthOffset: 0
|
|
6239
6214
|
};
|
|
6240
|
-
const processed = processPatterns(
|
|
6241
|
-
...options,
|
|
6242
|
-
patterns
|
|
6243
|
-
}, cwd, props);
|
|
6215
|
+
const processed = processPatterns(options, patterns, props);
|
|
6244
6216
|
if (options.debug) log("internal processing patterns:", processed);
|
|
6217
|
+
const { absolute, caseSensitiveMatch, debug, dot, followSymbolicLinks, onlyDirectories } = options;
|
|
6218
|
+
const root = props.root.replace(BACKSLASHES, "");
|
|
6245
6219
|
const matchOptions = {
|
|
6246
|
-
dot
|
|
6220
|
+
dot,
|
|
6247
6221
|
nobrace: options.braceExpansion === false,
|
|
6248
|
-
nocase:
|
|
6222
|
+
nocase: !caseSensitiveMatch,
|
|
6249
6223
|
noextglob: options.extglob === false,
|
|
6250
6224
|
noglobstar: options.globstar === false,
|
|
6251
6225
|
posix: true
|
|
6252
6226
|
};
|
|
6253
|
-
const matcher = (0, import_picomatch.default)(processed.match,
|
|
6254
|
-
...matchOptions,
|
|
6255
|
-
ignore: processed.ignore
|
|
6256
|
-
});
|
|
6227
|
+
const matcher = (0, import_picomatch.default)(processed.match, matchOptions);
|
|
6257
6228
|
const ignore = (0, import_picomatch.default)(processed.ignore, matchOptions);
|
|
6258
6229
|
const partialMatcher = getPartialMatcher(processed.match, matchOptions);
|
|
6259
|
-
const format = buildFormat(cwd,
|
|
6260
|
-
const
|
|
6261
|
-
const
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6230
|
+
const format = buildFormat(cwd, root, absolute);
|
|
6231
|
+
const excludeFormatter = absolute ? format : buildFormat(cwd, root, true);
|
|
6232
|
+
const excludePredicate = (_, p) => {
|
|
6233
|
+
const relativePath = excludeFormatter(p, true);
|
|
6234
|
+
return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
|
|
6235
|
+
};
|
|
6236
|
+
let maxDepth;
|
|
6237
|
+
if (options.deep !== void 0) maxDepth = Math.round(options.deep - props.depthOffset);
|
|
6238
|
+
const crawler = new Builder({
|
|
6239
|
+
filters: [debug ? (p, isDirectory) => {
|
|
6240
|
+
const path = format(p, isDirectory);
|
|
6241
|
+
const matches = matcher(path) && !ignore(path);
|
|
6242
|
+
if (matches) log(`matched ${path}`);
|
|
6266
6243
|
return matches;
|
|
6267
|
-
} : (p, isDirectory) =>
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6244
|
+
} : (p, isDirectory) => {
|
|
6245
|
+
const path = format(p, isDirectory);
|
|
6246
|
+
return matcher(path) && !ignore(path);
|
|
6247
|
+
}],
|
|
6248
|
+
exclude: debug ? (_, p) => {
|
|
6249
|
+
const skipped = excludePredicate(_, p);
|
|
6250
|
+
log(`${skipped ? "skipped" : "crawling"} ${p}`);
|
|
6273
6251
|
return skipped;
|
|
6274
|
-
} :
|
|
6275
|
-
|
|
6276
|
-
return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
|
|
6277
|
-
},
|
|
6278
|
-
fs: options.fs ? {
|
|
6279
|
-
readdir: options.fs.readdir || nativeFs.readdir,
|
|
6280
|
-
readdirSync: options.fs.readdirSync || nativeFs.readdirSync,
|
|
6281
|
-
realpath: options.fs.realpath || nativeFs.realpath,
|
|
6282
|
-
realpathSync: options.fs.realpathSync || nativeFs.realpathSync,
|
|
6283
|
-
stat: options.fs.stat || nativeFs.stat,
|
|
6284
|
-
statSync: options.fs.statSync || nativeFs.statSync
|
|
6285
|
-
} : void 0,
|
|
6252
|
+
} : excludePredicate,
|
|
6253
|
+
fs: options.fs,
|
|
6286
6254
|
pathSeparator: "/",
|
|
6287
|
-
relativePaths:
|
|
6288
|
-
|
|
6255
|
+
relativePaths: !absolute,
|
|
6256
|
+
resolvePaths: absolute,
|
|
6257
|
+
includeBasePath: absolute,
|
|
6258
|
+
resolveSymlinks: followSymbolicLinks,
|
|
6259
|
+
excludeSymlinks: !followSymbolicLinks,
|
|
6260
|
+
excludeFiles: onlyDirectories,
|
|
6261
|
+
includeDirs: onlyDirectories || !options.onlyFiles,
|
|
6262
|
+
maxDepth,
|
|
6289
6263
|
signal: options.signal
|
|
6264
|
+
}).crawl(root);
|
|
6265
|
+
if (options.debug) log("internal properties:", {
|
|
6266
|
+
...props,
|
|
6267
|
+
root
|
|
6268
|
+
});
|
|
6269
|
+
return [crawler, cwd !== root && !absolute && buildRelative(cwd, root)];
|
|
6270
|
+
}
|
|
6271
|
+
function formatPaths(paths, mapper) {
|
|
6272
|
+
if (mapper) for (let i = paths.length - 1; i >= 0; i--) paths[i] = mapper(paths[i]);
|
|
6273
|
+
return paths;
|
|
6274
|
+
}
|
|
6275
|
+
const defaultOptions = {
|
|
6276
|
+
caseSensitiveMatch: true,
|
|
6277
|
+
cwd: process.cwd(),
|
|
6278
|
+
debug: !!process.env.TINYGLOBBY_DEBUG,
|
|
6279
|
+
expandDirectories: true,
|
|
6280
|
+
followSymbolicLinks: true,
|
|
6281
|
+
onlyFiles: true
|
|
6282
|
+
};
|
|
6283
|
+
function getOptions(options) {
|
|
6284
|
+
const opts = {
|
|
6285
|
+
...defaultOptions,
|
|
6286
|
+
...options
|
|
6290
6287
|
};
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
}
|
|
6301
|
-
if (
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
const
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
const
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
if (patternsOrOptions && (options === null || options === void 0 ? void 0 : options.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
|
|
6320
|
-
const isModern = isReadonlyArray(patternsOrOptions) || typeof patternsOrOptions === "string";
|
|
6321
|
-
const [crawler, relative] = getCrawler(isModern ? patternsOrOptions : patternsOrOptions.patterns, isModern ? options : patternsOrOptions);
|
|
6322
|
-
if (!relative) return crawler.sync();
|
|
6323
|
-
return formatPaths(crawler.sync(), relative);
|
|
6288
|
+
opts.cwd = (opts.cwd instanceof URL ? fileURLToPath$1(opts.cwd) : resolve$1(opts.cwd)).replace(BACKSLASHES, "/");
|
|
6289
|
+
opts.ignore = ensureStringArray(opts.ignore);
|
|
6290
|
+
opts.fs && (opts.fs = {
|
|
6291
|
+
readdir: opts.fs.readdir || readdir,
|
|
6292
|
+
readdirSync: opts.fs.readdirSync || readdirSync,
|
|
6293
|
+
realpath: opts.fs.realpath || realpath,
|
|
6294
|
+
realpathSync: opts.fs.realpathSync || realpathSync,
|
|
6295
|
+
stat: opts.fs.stat || stat,
|
|
6296
|
+
statSync: opts.fs.statSync || statSync
|
|
6297
|
+
});
|
|
6298
|
+
if (opts.debug) log("globbing with options:", opts);
|
|
6299
|
+
return opts;
|
|
6300
|
+
}
|
|
6301
|
+
function getCrawler(globInput, inputOptions = {}) {
|
|
6302
|
+
var _ref;
|
|
6303
|
+
if (globInput && (inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
|
|
6304
|
+
const isModern = isReadonlyArray(globInput) || typeof globInput === "string";
|
|
6305
|
+
const patterns = ensureStringArray((_ref = isModern ? globInput : globInput.patterns) !== null && _ref !== void 0 ? _ref : "**/*");
|
|
6306
|
+
const options = getOptions(isModern ? inputOptions : globInput);
|
|
6307
|
+
return patterns.length > 0 ? buildCrawler(options, patterns) : [];
|
|
6308
|
+
}
|
|
6309
|
+
async function glob(globInput, options) {
|
|
6310
|
+
const [crawler, relative] = getCrawler(globInput, options);
|
|
6311
|
+
return crawler ? formatPaths(await crawler.withPromise(), relative) : [];
|
|
6312
|
+
}
|
|
6313
|
+
function globSync(globInput, options) {
|
|
6314
|
+
const [crawler, relative] = getCrawler(globInput, options);
|
|
6315
|
+
return crawler ? formatPaths(crawler.sync(), relative) : [];
|
|
6324
6316
|
}
|
|
6325
6317
|
//#endregion
|
|
6326
6318
|
//#region ../../vite/packages/vite/src/node/plugins/oxc.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voidzero-dev/vite-plus-core",
|
|
3
|
-
"version": "0.1.17-alpha.
|
|
3
|
+
"version": "0.1.17-alpha.5",
|
|
4
4
|
"description": "The Unified Toolchain for the Web",
|
|
5
5
|
"homepage": "https://viteplus.dev/guide",
|
|
6
6
|
"bugs": {
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"hookable": "^6.0.1",
|
|
118
118
|
"magic-string": "^0.30.21",
|
|
119
119
|
"oxc-parser": "=0.124.0",
|
|
120
|
-
"oxfmt": "=0.
|
|
120
|
+
"oxfmt": "=0.45.0",
|
|
121
121
|
"picocolors": "^1.1.1",
|
|
122
122
|
"picomatch": "^4.0.3",
|
|
123
123
|
"pkg-types": "^2.3.0",
|
|
@@ -127,14 +127,14 @@
|
|
|
127
127
|
"semver": "^7.7.3",
|
|
128
128
|
"tinyglobby": "^0.2.15",
|
|
129
129
|
"tree-kill": "^1.2.2",
|
|
130
|
-
"tsdown": "^0.21.
|
|
131
|
-
"
|
|
132
|
-
"
|
|
130
|
+
"tsdown": "^0.21.8",
|
|
131
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.17-alpha.5",
|
|
132
|
+
"rolldown": "1.0.0-rc.15"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
135
|
"@arethetypeswrong/core": "^0.18.1",
|
|
136
|
-
"@tsdown/css": "0.21.
|
|
137
|
-
"@tsdown/exe": "0.21.
|
|
136
|
+
"@tsdown/css": "0.21.8",
|
|
137
|
+
"@tsdown/exe": "0.21.8",
|
|
138
138
|
"@types/node": "^20.19.0 || >=22.12.0",
|
|
139
139
|
"@vitejs/devtools": "^0.1.0",
|
|
140
140
|
"esbuild": "^0.27.0 || ^0.28.0",
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"bundledVersions": {
|
|
217
217
|
"vite": "8.0.8",
|
|
218
218
|
"rolldown": "1.0.0-rc.15",
|
|
219
|
-
"tsdown": "0.21.
|
|
219
|
+
"tsdown": "0.21.8"
|
|
220
220
|
},
|
|
221
221
|
"scripts": {
|
|
222
222
|
"build": "oxnode -C dev ./build.ts"
|