tailwind-styled-v4 5.0.40 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyzer.js +43 -16
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +104 -72
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +33 -7
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +55 -22
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +39 -10
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +56 -23
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +222 -38
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +321 -203
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +57 -14
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +71 -28
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +0 -1
- package/dist/dashboard.js.map +1 -1
- package/dist/devtools.js +16 -2
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +21 -2
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +141 -51
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +238 -148
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +50 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -29
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +98 -37
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +177 -115
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +0 -1
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-registry.js +6 -2
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +9 -2
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.js +0 -1
- package/dist/plugin.js.map +1 -1
- package/dist/preset.js +0 -1
- package/dist/preset.js.map +1 -1
- package/dist/rspack.js +89 -6
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +39 -18
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +0 -1
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime.js +0 -1
- package/dist/runtime.js.map +1 -1
- package/dist/scanner.js +29 -11
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +84 -61
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.js +91 -35
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +122 -64
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +0 -1
- package/dist/storybook-addon.js.map +1 -1
- package/dist/svelte.js +40 -8
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +57 -28
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +7 -3
- package/dist/syntax.js.map +1 -1
- package/dist/syntax.mjs +30 -23
- package/dist/syntax.mjs.map +1 -1
- package/dist/testing.js +0 -1
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +23 -5
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +41 -17
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +58 -14
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +89 -45
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +224 -38
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +321 -203
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +132 -50
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +226 -143
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +40 -8
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +57 -28
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +40 -10
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +59 -27
- package/dist/webpackLoader.mjs.map +1 -1
- package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
- package/native/tailwind-styled-native.node +0 -0
- package/package.json +1 -1
package/dist/scanner.mjs
CHANGED
|
@@ -20,11 +20,25 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
};
|
|
21
21
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
22
|
|
|
23
|
+
// node_modules/tsup/assets/esm_shims.js
|
|
24
|
+
import path from "path";
|
|
25
|
+
import { fileURLToPath } from "url";
|
|
26
|
+
var getFilename, getDirname, __dirname, __filename;
|
|
27
|
+
var init_esm_shims = __esm({
|
|
28
|
+
"node_modules/tsup/assets/esm_shims.js"() {
|
|
29
|
+
"use strict";
|
|
30
|
+
getFilename = () => fileURLToPath(import.meta.url);
|
|
31
|
+
getDirname = () => path.dirname(getFilename());
|
|
32
|
+
__dirname = /* @__PURE__ */ getDirname();
|
|
33
|
+
__filename = /* @__PURE__ */ getFilename();
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
23
37
|
// packages/domain/shared/src/index.ts
|
|
24
38
|
import { createHash } from "crypto";
|
|
25
39
|
import fs from "fs";
|
|
26
|
-
import
|
|
27
|
-
import { fileURLToPath } from "url";
|
|
40
|
+
import path2 from "path";
|
|
41
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
28
42
|
import { createRequire } from "module";
|
|
29
43
|
function createLogger(namespace) {
|
|
30
44
|
const prefix = `[${namespace}]`;
|
|
@@ -55,9 +69,9 @@ function createDebugLogger(namespace, label) {
|
|
|
55
69
|
}
|
|
56
70
|
};
|
|
57
71
|
}
|
|
58
|
-
function formatIssuePath(
|
|
59
|
-
if (!
|
|
60
|
-
return
|
|
72
|
+
function formatIssuePath(path7) {
|
|
73
|
+
if (!path7 || path7.length === 0) return "(root)";
|
|
74
|
+
return path7.map(
|
|
61
75
|
(segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
|
|
62
76
|
).join(".");
|
|
63
77
|
}
|
|
@@ -65,7 +79,7 @@ function loadNativeBinding(options) {
|
|
|
65
79
|
const { runtimeDir, candidates, isValid } = options;
|
|
66
80
|
const loadErrors = [];
|
|
67
81
|
for (const candidate of candidates) {
|
|
68
|
-
const candidatePath =
|
|
82
|
+
const candidatePath = path2.resolve(runtimeDir, candidate);
|
|
69
83
|
try {
|
|
70
84
|
if (!fs.existsSync(candidatePath) && !fs.existsSync(candidatePath + ".node")) {
|
|
71
85
|
continue;
|
|
@@ -110,15 +124,15 @@ function resolveNativeBindingCandidates(options) {
|
|
|
110
124
|
const BINARY_NAMES = ["tailwind-styled-native", "tailwind_styled_parser"];
|
|
111
125
|
const napiPlatform = process.platform === "linux" && process.arch === "x64" ? "linux-x64-gnu" : process.platform === "linux" && process.arch === "arm64" ? "linux-arm64-gnu" : `${process.platform}-${process.arch}`;
|
|
112
126
|
for (const bin of BINARY_NAMES) {
|
|
113
|
-
candidates.push(
|
|
114
|
-
candidates.push(
|
|
115
|
-
candidates.push(
|
|
116
|
-
candidates.push(
|
|
117
|
-
candidates.push(
|
|
118
|
-
candidates.push(
|
|
119
|
-
candidates.push(
|
|
120
|
-
candidates.push(
|
|
121
|
-
candidates.push(
|
|
127
|
+
candidates.push(path2.resolve(runtimeDir, `${bin}.node`));
|
|
128
|
+
candidates.push(path2.resolve(runtimeDir, `${bin}.${napiPlatform}.node`));
|
|
129
|
+
candidates.push(path2.resolve(runtimeDir, "..", "native", `${bin}.node`));
|
|
130
|
+
candidates.push(path2.resolve(runtimeDir, "..", "native", `${bin}.${napiPlatform}.node`));
|
|
131
|
+
candidates.push(path2.resolve(process.cwd(), "native", `${bin}.node`));
|
|
132
|
+
candidates.push(path2.resolve(process.cwd(), "native", `${bin}.${napiPlatform}.node`));
|
|
133
|
+
candidates.push(path2.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.node`));
|
|
134
|
+
candidates.push(path2.resolve(runtimeDir, "..", "..", "..", "..", "native", `${bin}.${napiPlatform}.node`));
|
|
135
|
+
candidates.push(path2.resolve(runtimeDir, "..", "..", "..", "native", `${bin}.node`));
|
|
122
136
|
}
|
|
123
137
|
return Array.from(new Set(candidates));
|
|
124
138
|
}
|
|
@@ -126,6 +140,7 @@ var TwError, _require;
|
|
|
126
140
|
var init_src = __esm({
|
|
127
141
|
"packages/domain/shared/src/index.ts"() {
|
|
128
142
|
"use strict";
|
|
143
|
+
init_esm_shims();
|
|
129
144
|
TwError = class _TwError extends Error {
|
|
130
145
|
/** @deprecated Gunakan source */
|
|
131
146
|
domain;
|
|
@@ -159,8 +174,8 @@ var init_src = __esm({
|
|
|
159
174
|
/** Buat TwError dari ZodError — dukung shape Zod v3 (`errors`) dan v4 (`issues`). */
|
|
160
175
|
static fromZod(err) {
|
|
161
176
|
const first = err.issues?.[0] ?? err.errors?.[0];
|
|
162
|
-
const
|
|
163
|
-
const message = first ? `${
|
|
177
|
+
const path7 = formatIssuePath(first?.path);
|
|
178
|
+
const message = first ? `${path7}: ${first.message}` : "Schema validation failed";
|
|
164
179
|
return new _TwError("validation", "SCHEMA_VALIDATION_FAILED", message, err);
|
|
165
180
|
}
|
|
166
181
|
static wrap(source, code, err) {
|
|
@@ -213,14 +228,14 @@ __export(native_bridge_exports, {
|
|
|
213
228
|
startWatchNative: () => startWatchNative,
|
|
214
229
|
stopWatchNative: () => stopWatchNative
|
|
215
230
|
});
|
|
216
|
-
import
|
|
217
|
-
import { fileURLToPath as
|
|
218
|
-
function
|
|
231
|
+
import path3 from "path";
|
|
232
|
+
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
233
|
+
function getDirname2() {
|
|
219
234
|
if (typeof __dirname !== "undefined") {
|
|
220
235
|
return __dirname;
|
|
221
236
|
}
|
|
222
237
|
if (typeof import.meta !== "undefined" && import.meta.url) {
|
|
223
|
-
return
|
|
238
|
+
return path3.dirname(fileURLToPath3(import.meta.url));
|
|
224
239
|
}
|
|
225
240
|
return process.cwd();
|
|
226
241
|
}
|
|
@@ -429,6 +444,7 @@ var log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader,
|
|
|
429
444
|
var init_native_bridge = __esm({
|
|
430
445
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
431
446
|
"use strict";
|
|
447
|
+
init_esm_shims();
|
|
432
448
|
init_src();
|
|
433
449
|
log = createDebugLogger("scanner:native");
|
|
434
450
|
isValidScannerBinding = (module) => {
|
|
@@ -471,7 +487,7 @@ var init_native_bridge = __esm({
|
|
|
471
487
|
}
|
|
472
488
|
return throwNativeBindingError();
|
|
473
489
|
}
|
|
474
|
-
const runtimeDir =
|
|
490
|
+
const runtimeDir = getDirname2();
|
|
475
491
|
const candidates = resolveNativeBindingCandidates({
|
|
476
492
|
runtimeDir,
|
|
477
493
|
includeDefaultCandidates: true
|
|
@@ -510,26 +526,31 @@ var init_native_bridge = __esm({
|
|
|
510
526
|
}
|
|
511
527
|
});
|
|
512
528
|
|
|
529
|
+
// src/umbrella/scanner.ts
|
|
530
|
+
init_esm_shims();
|
|
531
|
+
|
|
513
532
|
// packages/domain/scanner/src/index.ts
|
|
533
|
+
init_esm_shims();
|
|
514
534
|
init_src();
|
|
515
535
|
import fs3 from "fs";
|
|
516
536
|
import { createRequire as createRequire2 } from "module";
|
|
517
|
-
import
|
|
518
|
-
import { fileURLToPath as
|
|
537
|
+
import path6 from "path";
|
|
538
|
+
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
519
539
|
import { Worker as Worker2 } from "worker_threads";
|
|
520
540
|
|
|
521
541
|
// packages/domain/scanner/src/cache-native.ts
|
|
542
|
+
init_esm_shims();
|
|
522
543
|
init_native_bridge();
|
|
523
544
|
import fs2 from "fs";
|
|
524
|
-
import
|
|
545
|
+
import path4 from "path";
|
|
525
546
|
function defaultCachePath(rootDir, cacheDir) {
|
|
526
|
-
const dir = cacheDir ?
|
|
527
|
-
return
|
|
547
|
+
const dir = cacheDir ? path4.resolve(rootDir, cacheDir) : path4.join(process.cwd(), ".cache", "tailwind-styled");
|
|
548
|
+
return path4.join(dir, "scanner-cache.json");
|
|
528
549
|
}
|
|
529
550
|
var STALE_THRESHOLD_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
530
551
|
function readCache(rootDir, cacheDir) {
|
|
531
552
|
const cachePath = defaultCachePath(rootDir, cacheDir);
|
|
532
|
-
fs2.mkdirSync(
|
|
553
|
+
fs2.mkdirSync(path4.dirname(cachePath), { recursive: true });
|
|
533
554
|
const result = cacheReadNative(cachePath);
|
|
534
555
|
if (!result) return [];
|
|
535
556
|
return result.entries.map((e) => ({
|
|
@@ -544,7 +565,7 @@ function readCache(rootDir, cacheDir) {
|
|
|
544
565
|
}
|
|
545
566
|
function writeCache(rootDir, entries, cacheDir) {
|
|
546
567
|
const cachePath = defaultCachePath(rootDir, cacheDir);
|
|
547
|
-
fs2.mkdirSync(
|
|
568
|
+
fs2.mkdirSync(path4.dirname(cachePath), { recursive: true });
|
|
548
569
|
const success = cacheWriteNative(cachePath, entries);
|
|
549
570
|
if (!success) {
|
|
550
571
|
throw new Error(
|
|
@@ -568,10 +589,11 @@ function filePriority(mtimeMs, size, cached, nowMs = Date.now()) {
|
|
|
568
589
|
init_native_bridge();
|
|
569
590
|
|
|
570
591
|
// packages/domain/scanner/src/parallel-scanner.ts
|
|
592
|
+
init_esm_shims();
|
|
571
593
|
import { Worker, isMainThread, parentPort, workerData } from "worker_threads";
|
|
572
|
-
import
|
|
594
|
+
import path5 from "path";
|
|
573
595
|
import { availableParallelism } from "os";
|
|
574
|
-
import { fileURLToPath as
|
|
596
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
575
597
|
init_native_bridge();
|
|
576
598
|
var PARALLEL_THRESHOLD = 50;
|
|
577
599
|
var DEFAULT_CHUNK_SIZE = 150;
|
|
@@ -604,7 +626,7 @@ if (!isMainThread && parentPort) {
|
|
|
604
626
|
parentPort.postMessage(msg);
|
|
605
627
|
}
|
|
606
628
|
}
|
|
607
|
-
var _workerFilename = typeof __filename !== "undefined" ? __filename :
|
|
629
|
+
var _workerFilename = typeof __filename !== "undefined" ? __filename : fileURLToPath4(import.meta.url);
|
|
608
630
|
function runChunkInWorker(filePaths) {
|
|
609
631
|
return new Promise((resolve, reject) => {
|
|
610
632
|
const worker = new Worker(_workerFilename, {
|
|
@@ -630,7 +652,7 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
|
|
|
630
652
|
maxWorkers = Math.max(1, availableParallelism() - 1),
|
|
631
653
|
chunkSize = DEFAULT_CHUNK_SIZE
|
|
632
654
|
} = options;
|
|
633
|
-
const files = collectFiles(
|
|
655
|
+
const files = collectFiles(path5.resolve(rootDir), extensions, ignoreDirs);
|
|
634
656
|
if (files.length < PARALLEL_THRESHOLD) {
|
|
635
657
|
return mergeResults(batchExtractClassesNative(files));
|
|
636
658
|
}
|
|
@@ -648,14 +670,15 @@ async function scanWorkspaceParallel(rootDir, options = {}) {
|
|
|
648
670
|
}
|
|
649
671
|
|
|
650
672
|
// packages/domain/scanner/src/schemas.ts
|
|
673
|
+
init_esm_shims();
|
|
651
674
|
init_src();
|
|
652
675
|
import { z } from "zod";
|
|
653
|
-
var formatIssuePath2 = (
|
|
676
|
+
var formatIssuePath2 = (path7) => path7.length > 0 ? path7.map(
|
|
654
677
|
(segment) => typeof segment === "symbol" ? segment.description ?? segment.toString() : String(segment)
|
|
655
678
|
).join(".") : "<root>";
|
|
656
679
|
var formatIssues = (error) => error.issues.map((issue) => {
|
|
657
|
-
const
|
|
658
|
-
return `${
|
|
680
|
+
const path7 = formatIssuePath2(issue.path);
|
|
681
|
+
return `${path7}: ${issue.message}`;
|
|
659
682
|
}).join("; ");
|
|
660
683
|
var parseWithSchema = (schema, data, label) => {
|
|
661
684
|
const parsed = schema.safeParse(data);
|
|
@@ -718,7 +741,7 @@ function getRuntimeDir() {
|
|
|
718
741
|
return __dirname;
|
|
719
742
|
}
|
|
720
743
|
if (typeof import.meta !== "undefined" && import.meta.url) {
|
|
721
|
-
return
|
|
744
|
+
return path6.dirname(fileURLToPath5(import.meta.url));
|
|
722
745
|
}
|
|
723
746
|
return process.cwd();
|
|
724
747
|
}
|
|
@@ -733,7 +756,7 @@ var createNativeParserLoader = () => {
|
|
|
733
756
|
const loadNativeParserBinding = () => {
|
|
734
757
|
if (_state.binding !== void 0) return _state.binding;
|
|
735
758
|
const runtimeDir = getRuntimeDir();
|
|
736
|
-
const req = createRequire2(
|
|
759
|
+
const req = createRequire2(path6.join(runtimeDir, "noop.cjs"));
|
|
737
760
|
const _platform = process.platform;
|
|
738
761
|
const _arch = process.arch;
|
|
739
762
|
const _platformArch = `${_platform}-${_arch}`;
|
|
@@ -741,27 +764,27 @@ var createNativeParserLoader = () => {
|
|
|
741
764
|
const candidates = [
|
|
742
765
|
// ── binaryName baru: tailwind-styled-native (napi-rs naming) ──
|
|
743
766
|
// cwd = repo root saat run dari root, atau package dir saat workspaces
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
767
|
+
path6.resolve(process.cwd(), "native", "tailwind-styled-native.node"),
|
|
768
|
+
path6.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArch}.node`),
|
|
769
|
+
path6.resolve(process.cwd(), "native", `tailwind-styled-native.${_platformArchGnu}.node`),
|
|
747
770
|
// runtimeDir = dist/ → naik 1 level ke package root (npm install case)
|
|
748
771
|
// e.g. node_modules/tailwind-styled-v4/dist/ → node_modules/tailwind-styled-v4/native/
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
772
|
+
path6.resolve(runtimeDir, "..", "native", "tailwind-styled-native.node"),
|
|
773
|
+
path6.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArch}.node`),
|
|
774
|
+
path6.resolve(runtimeDir, "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
|
|
752
775
|
// runtimeDir = dist/ → naik 4 level ke repo root (monorepo dev case)
|
|
753
|
-
|
|
754
|
-
|
|
776
|
+
path6.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind-styled-native.node"),
|
|
777
|
+
path6.resolve(runtimeDir, "..", "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
|
|
755
778
|
// 3 level fallback (jika package di-nest lebih dangkal)
|
|
756
|
-
|
|
757
|
-
|
|
779
|
+
path6.resolve(runtimeDir, "..", "..", "..", "native", "tailwind-styled-native.node"),
|
|
780
|
+
path6.resolve(runtimeDir, "..", "..", "..", "native", `tailwind-styled-native.${_platformArchGnu}.node`),
|
|
758
781
|
// ── binaryName lama: tailwind_styled_parser (backward compat) ──
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
782
|
+
path6.resolve(process.cwd(), "native/tailwind_styled_parser.node"),
|
|
783
|
+
path6.resolve(process.cwd(), "native/build/Release/tailwind_styled_parser.node"),
|
|
784
|
+
path6.resolve(runtimeDir, "..", "native", "tailwind_styled_parser.node"),
|
|
785
|
+
path6.resolve(runtimeDir, "..", "..", "..", "..", "native", "tailwind_styled_parser.node"),
|
|
786
|
+
path6.resolve(runtimeDir, "..", "..", "..", "native", "tailwind_styled_parser.node"),
|
|
787
|
+
path6.resolve(
|
|
765
788
|
runtimeDir,
|
|
766
789
|
"..",
|
|
767
790
|
"..",
|
|
@@ -809,14 +832,14 @@ function resolveScannerWorkerModulePath() {
|
|
|
809
832
|
return __dirname;
|
|
810
833
|
}
|
|
811
834
|
if (typeof import.meta !== "undefined" && import.meta.url) {
|
|
812
|
-
return
|
|
835
|
+
return path6.dirname(fileURLToPath5(import.meta.url));
|
|
813
836
|
}
|
|
814
837
|
return process.cwd();
|
|
815
838
|
})();
|
|
816
839
|
const candidates = [
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
840
|
+
path6.resolve(runtimeDir, "worker.cjs"),
|
|
841
|
+
path6.resolve(runtimeDir, "worker.js"),
|
|
842
|
+
path6.resolve(runtimeDir, "worker.ts")
|
|
820
843
|
];
|
|
821
844
|
for (const candidate of candidates) {
|
|
822
845
|
if (fs3.existsSync(candidate)) return candidate;
|
|
@@ -882,13 +905,13 @@ function collectCandidates(rootDir, ignoreDirectories, extensionSet) {
|
|
|
882
905
|
}
|
|
883
906
|
})();
|
|
884
907
|
for (const entry of entries) {
|
|
885
|
-
const fullPath =
|
|
908
|
+
const fullPath = path6.join(currentDir, entry.name);
|
|
886
909
|
if (entry.isDirectory()) {
|
|
887
910
|
if (!ignoreDirectories.has(entry.name)) directories.push(fullPath);
|
|
888
911
|
continue;
|
|
889
912
|
}
|
|
890
913
|
if (!entry.isFile()) continue;
|
|
891
|
-
if (!extensionSet.has(
|
|
914
|
+
if (!extensionSet.has(path6.extname(entry.name))) continue;
|
|
892
915
|
candidates.push(fullPath);
|
|
893
916
|
}
|
|
894
917
|
}
|
|
@@ -915,7 +938,7 @@ function scanSource(source) {
|
|
|
915
938
|
);
|
|
916
939
|
}
|
|
917
940
|
function isScannableFile2(filePath, includeExtensions = DEFAULT_EXTENSIONS) {
|
|
918
|
-
return includeExtensions.includes(
|
|
941
|
+
return includeExtensions.includes(path6.extname(filePath));
|
|
919
942
|
}
|
|
920
943
|
function scanFile(filePath) {
|
|
921
944
|
const { scanFileNative: scanFileNative2 } = (init_native_bridge(), __toCommonJS(native_bridge_exports));
|