tailwind-styled-v4 5.0.39 → 5.0.411
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 +38 -13
- 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 +151 -39
- 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 -16
- 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 +140 -56
- 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 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -29
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +97 -41
- 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 +5 -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 +22 -8
- 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 +25 -9
- 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 -37
- 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 -9
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +57 -28
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +6 -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 +21 -4
- 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 -16
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +89 -45
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +153 -39
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +321 -203
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +131 -54
- 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 -9
- 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/package.json +1 -1
package/dist/tw.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
3
2
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
4
3
|
"use strict";
|
|
5
4
|
var __create = Object.create;
|
|
@@ -36,10 +35,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
35
|
));
|
|
37
36
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
37
|
|
|
38
|
+
// node_modules/tsup/assets/cjs_shims.js
|
|
39
|
+
var getImportMetaUrl, importMetaUrl;
|
|
40
|
+
var init_cjs_shims = __esm({
|
|
41
|
+
"node_modules/tsup/assets/cjs_shims.js"() {
|
|
42
|
+
"use strict";
|
|
43
|
+
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
44
|
+
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
39
48
|
// packages/infrastructure/cli/node_modules/commander/lib/error.js
|
|
40
49
|
var require_error = __commonJS({
|
|
41
50
|
"packages/infrastructure/cli/node_modules/commander/lib/error.js"(exports2) {
|
|
42
51
|
"use strict";
|
|
52
|
+
init_cjs_shims();
|
|
43
53
|
var CommanderError2 = class extends Error {
|
|
44
54
|
/**
|
|
45
55
|
* Constructs the CommanderError class
|
|
@@ -76,6 +86,7 @@ var require_error = __commonJS({
|
|
|
76
86
|
var require_argument = __commonJS({
|
|
77
87
|
"packages/infrastructure/cli/node_modules/commander/lib/argument.js"(exports2) {
|
|
78
88
|
"use strict";
|
|
89
|
+
init_cjs_shims();
|
|
79
90
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
80
91
|
var Argument2 = class {
|
|
81
92
|
/**
|
|
@@ -204,6 +215,7 @@ var require_argument = __commonJS({
|
|
|
204
215
|
var require_help = __commonJS({
|
|
205
216
|
"packages/infrastructure/cli/node_modules/commander/lib/help.js"(exports2) {
|
|
206
217
|
"use strict";
|
|
218
|
+
init_cjs_shims();
|
|
207
219
|
var { humanReadableArgName } = require_argument();
|
|
208
220
|
var Help2 = class {
|
|
209
221
|
constructor() {
|
|
@@ -619,6 +631,7 @@ var require_help = __commonJS({
|
|
|
619
631
|
var require_option = __commonJS({
|
|
620
632
|
"packages/infrastructure/cli/node_modules/commander/lib/option.js"(exports2) {
|
|
621
633
|
"use strict";
|
|
634
|
+
init_cjs_shims();
|
|
622
635
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
623
636
|
var Option2 = class {
|
|
624
637
|
/**
|
|
@@ -892,6 +905,7 @@ var require_option = __commonJS({
|
|
|
892
905
|
var require_suggestSimilar = __commonJS({
|
|
893
906
|
"packages/infrastructure/cli/node_modules/commander/lib/suggestSimilar.js"(exports2) {
|
|
894
907
|
"use strict";
|
|
908
|
+
init_cjs_shims();
|
|
895
909
|
var maxDistance = 3;
|
|
896
910
|
function editDistance(a, b) {
|
|
897
911
|
if (Math.abs(a.length - b.length) > maxDistance)
|
|
@@ -973,6 +987,7 @@ var require_suggestSimilar = __commonJS({
|
|
|
973
987
|
var require_command = __commonJS({
|
|
974
988
|
"packages/infrastructure/cli/node_modules/commander/lib/command.js"(exports2) {
|
|
975
989
|
"use strict";
|
|
990
|
+
init_cjs_shims();
|
|
976
991
|
var EventEmitter = require("events").EventEmitter;
|
|
977
992
|
var childProcess = require("child_process");
|
|
978
993
|
var path30 = require("path");
|
|
@@ -3017,6 +3032,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3017
3032
|
var require_commander = __commonJS({
|
|
3018
3033
|
"packages/infrastructure/cli/node_modules/commander/index.js"(exports2) {
|
|
3019
3034
|
"use strict";
|
|
3035
|
+
init_cjs_shims();
|
|
3020
3036
|
var { Argument: Argument2 } = require_argument();
|
|
3021
3037
|
var { Command: Command2 } = require_command();
|
|
3022
3038
|
var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
@@ -3041,6 +3057,7 @@ var import_index, program, createCommand, createArgument, createOption, Commande
|
|
|
3041
3057
|
var init_esm = __esm({
|
|
3042
3058
|
"packages/infrastructure/cli/node_modules/commander/esm.mjs"() {
|
|
3043
3059
|
"use strict";
|
|
3060
|
+
init_cjs_shims();
|
|
3044
3061
|
import_index = __toESM(require_commander(), 1);
|
|
3045
3062
|
({
|
|
3046
3063
|
program,
|
|
@@ -3087,6 +3104,7 @@ var CliError, CliUsageError;
|
|
|
3087
3104
|
var init_errors = __esm({
|
|
3088
3105
|
"packages/infrastructure/cli/src/utils/errors.ts"() {
|
|
3089
3106
|
"use strict";
|
|
3107
|
+
init_cjs_shims();
|
|
3090
3108
|
CliError = class extends Error {
|
|
3091
3109
|
exitCode;
|
|
3092
3110
|
code;
|
|
@@ -3120,8 +3138,8 @@ function getNodeModuleRef() {
|
|
|
3120
3138
|
}
|
|
3121
3139
|
}
|
|
3122
3140
|
function getCurrentFileUrl() {
|
|
3123
|
-
if (
|
|
3124
|
-
return
|
|
3141
|
+
if (importMetaUrl) {
|
|
3142
|
+
return importMetaUrl;
|
|
3125
3143
|
}
|
|
3126
3144
|
if (typeof __filename !== "undefined") {
|
|
3127
3145
|
return `file://${__filename.replace(/\\/g, "/")}`;
|
|
@@ -3154,17 +3172,18 @@ function getNodeUrl() {
|
|
|
3154
3172
|
}
|
|
3155
3173
|
return _nodeUrl;
|
|
3156
3174
|
}
|
|
3157
|
-
function getDirname(
|
|
3175
|
+
function getDirname(importMetaUrl2) {
|
|
3158
3176
|
if (isBrowser) return "";
|
|
3159
3177
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
3160
3178
|
const nodePath = getNodePath();
|
|
3161
3179
|
const nodeUrl = getNodeUrl();
|
|
3162
|
-
return nodePath.dirname(nodeUrl.fileURLToPath(
|
|
3180
|
+
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl2));
|
|
3163
3181
|
}
|
|
3164
3182
|
var isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
|
|
3165
3183
|
var init_esmHelpers = __esm({
|
|
3166
3184
|
"packages/domain/shared/src/esmHelpers.ts"() {
|
|
3167
3185
|
"use strict";
|
|
3186
|
+
init_cjs_shims();
|
|
3168
3187
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3169
3188
|
nodeModuleRef = null;
|
|
3170
3189
|
_nodePath = null;
|
|
@@ -3173,6 +3192,15 @@ var init_esmHelpers = __esm({
|
|
|
3173
3192
|
});
|
|
3174
3193
|
|
|
3175
3194
|
// packages/domain/shared/src/native-resolution.ts
|
|
3195
|
+
function _safeCreateRequire() {
|
|
3196
|
+
if (typeof import_meta !== "undefined" && importMetaUrl && !importMetaUrl.includes("unknown")) {
|
|
3197
|
+
return (0, import_node_module.createRequire)(importMetaUrl);
|
|
3198
|
+
}
|
|
3199
|
+
if (typeof __filename !== "undefined") {
|
|
3200
|
+
return (0, import_node_module.createRequire)(__filename);
|
|
3201
|
+
}
|
|
3202
|
+
return (0, import_node_module.createRequire)(new URL(`file://${process.cwd()}/`).href);
|
|
3203
|
+
}
|
|
3176
3204
|
function platformKey() {
|
|
3177
3205
|
if (isBrowser2) return "browser";
|
|
3178
3206
|
return `${process.platform}-${process.arch}`;
|
|
@@ -3254,17 +3282,17 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
3254
3282
|
}
|
|
3255
3283
|
return { path: null, source: "not-found", platform, tried };
|
|
3256
3284
|
}
|
|
3257
|
-
var import_node_module, fs, path, isBrowser2, _require, PLATFORM_MAP;
|
|
3285
|
+
var import_node_module, fs, path, import_meta, isBrowser2, _require, PLATFORM_MAP;
|
|
3258
3286
|
var init_native_resolution = __esm({
|
|
3259
3287
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
3260
3288
|
"use strict";
|
|
3289
|
+
init_cjs_shims();
|
|
3261
3290
|
import_node_module = require("module");
|
|
3262
3291
|
fs = __toESM(require("fs"));
|
|
3263
3292
|
path = __toESM(require("path"));
|
|
3293
|
+
import_meta = {};
|
|
3264
3294
|
isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3265
|
-
_require = (
|
|
3266
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
3267
|
-
);
|
|
3295
|
+
_require = _safeCreateRequire();
|
|
3268
3296
|
PLATFORM_MAP = {
|
|
3269
3297
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
3270
3298
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -3376,10 +3404,10 @@ function resolveNativeBindingCandidates(options) {
|
|
|
3376
3404
|
}
|
|
3377
3405
|
return Array.from(new Set(candidates));
|
|
3378
3406
|
}
|
|
3379
|
-
function resolveRuntimeDir(dir,
|
|
3407
|
+
function resolveRuntimeDir(dir, importMetaUrl2) {
|
|
3380
3408
|
if (dir) return import_node_path.default.resolve(dir);
|
|
3381
3409
|
try {
|
|
3382
|
-
return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(
|
|
3410
|
+
return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl2));
|
|
3383
3411
|
} catch {
|
|
3384
3412
|
return process.cwd();
|
|
3385
3413
|
}
|
|
@@ -3388,6 +3416,7 @@ var import_node_crypto, import_node_fs, import_node_path, import_node_url, impor
|
|
|
3388
3416
|
var init_src = __esm({
|
|
3389
3417
|
"packages/domain/shared/src/index.ts"() {
|
|
3390
3418
|
"use strict";
|
|
3419
|
+
init_cjs_shims();
|
|
3391
3420
|
import_node_crypto = require("crypto");
|
|
3392
3421
|
import_node_fs = __toESM(require("fs"));
|
|
3393
3422
|
import_node_path = __toESM(require("path"));
|
|
@@ -3448,7 +3477,7 @@ var init_src = __esm({
|
|
|
3448
3477
|
}
|
|
3449
3478
|
};
|
|
3450
3479
|
_require2 = (0, import_node_module2.createRequire)(
|
|
3451
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
3480
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
|
|
3452
3481
|
);
|
|
3453
3482
|
}
|
|
3454
3483
|
});
|
|
@@ -3486,8 +3515,8 @@ function getDirname2() {
|
|
|
3486
3515
|
if (typeof __dirname !== "undefined") {
|
|
3487
3516
|
return __dirname;
|
|
3488
3517
|
}
|
|
3489
|
-
if (typeof
|
|
3490
|
-
return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(
|
|
3518
|
+
if (typeof import_meta2 !== "undefined" && importMetaUrl) {
|
|
3519
|
+
return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(importMetaUrl));
|
|
3491
3520
|
}
|
|
3492
3521
|
return process.cwd();
|
|
3493
3522
|
}
|
|
@@ -3692,14 +3721,15 @@ function hasNativeWatchBinding() {
|
|
|
3692
3721
|
return false;
|
|
3693
3722
|
}
|
|
3694
3723
|
}
|
|
3695
|
-
var import_node_path2, import_node_url2,
|
|
3724
|
+
var import_node_path2, import_node_url2, import_meta2, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3696
3725
|
var init_native_bridge = __esm({
|
|
3697
3726
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
3698
3727
|
"use strict";
|
|
3728
|
+
init_cjs_shims();
|
|
3699
3729
|
import_node_path2 = __toESM(require("path"), 1);
|
|
3700
3730
|
import_node_url2 = require("url");
|
|
3701
3731
|
init_src();
|
|
3702
|
-
|
|
3732
|
+
import_meta2 = {};
|
|
3703
3733
|
log = createDebugLogger("scanner:native");
|
|
3704
3734
|
isValidScannerBinding = (module2) => {
|
|
3705
3735
|
const candidate = module2;
|
|
@@ -3825,6 +3855,7 @@ var import_node_fs2, import_node_path3, STALE_THRESHOLD_MS;
|
|
|
3825
3855
|
var init_cache_native = __esm({
|
|
3826
3856
|
"packages/domain/scanner/src/cache-native.ts"() {
|
|
3827
3857
|
"use strict";
|
|
3858
|
+
init_cjs_shims();
|
|
3828
3859
|
import_node_fs2 = __toESM(require("fs"), 1);
|
|
3829
3860
|
import_node_path3 = __toESM(require("path"), 1);
|
|
3830
3861
|
init_native_bridge();
|
|
@@ -3893,6 +3924,7 @@ var import_node_worker_threads, import_node_path4, import_node_os, import_node_u
|
|
|
3893
3924
|
var init_parallel_scanner = __esm({
|
|
3894
3925
|
"packages/domain/scanner/src/parallel-scanner.ts"() {
|
|
3895
3926
|
"use strict";
|
|
3927
|
+
init_cjs_shims();
|
|
3896
3928
|
import_node_worker_threads = require("worker_threads");
|
|
3897
3929
|
import_node_path4 = __toESM(require("path"), 1);
|
|
3898
3930
|
import_node_os = require("os");
|
|
@@ -3915,7 +3947,7 @@ var init_parallel_scanner = __esm({
|
|
|
3915
3947
|
import_node_worker_threads.parentPort.postMessage(msg);
|
|
3916
3948
|
}
|
|
3917
3949
|
}
|
|
3918
|
-
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
3950
|
+
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(importMetaUrl);
|
|
3919
3951
|
}
|
|
3920
3952
|
});
|
|
3921
3953
|
|
|
@@ -3924,6 +3956,7 @@ var import_zod, formatIssuePath2, formatIssues, parseWithSchema, NonNegativeInte
|
|
|
3924
3956
|
var init_schemas = __esm({
|
|
3925
3957
|
"packages/domain/scanner/src/schemas.ts"() {
|
|
3926
3958
|
"use strict";
|
|
3959
|
+
init_cjs_shims();
|
|
3927
3960
|
import_zod = require("zod");
|
|
3928
3961
|
init_src();
|
|
3929
3962
|
formatIssuePath2 = (path30) => path30.length > 0 ? path30.map(
|
|
@@ -4007,8 +4040,8 @@ function getRuntimeDir() {
|
|
|
4007
4040
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
4008
4041
|
return __dirname;
|
|
4009
4042
|
}
|
|
4010
|
-
if (typeof
|
|
4011
|
-
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
4043
|
+
if (typeof import_meta3 !== "undefined" && importMetaUrl) {
|
|
4044
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
4012
4045
|
}
|
|
4013
4046
|
return process.cwd();
|
|
4014
4047
|
}
|
|
@@ -4017,8 +4050,8 @@ function resolveScannerWorkerModulePath() {
|
|
|
4017
4050
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
4018
4051
|
return __dirname;
|
|
4019
4052
|
}
|
|
4020
|
-
if (typeof
|
|
4021
|
-
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
4053
|
+
if (typeof import_meta3 !== "undefined" && importMetaUrl) {
|
|
4054
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
4022
4055
|
}
|
|
4023
4056
|
return process.cwd();
|
|
4024
4057
|
})();
|
|
@@ -4291,10 +4324,11 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
|
|
|
4291
4324
|
return scanWorkspace(rootDir, normalizedOptions);
|
|
4292
4325
|
}
|
|
4293
4326
|
}
|
|
4294
|
-
var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2,
|
|
4327
|
+
var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2, import_meta3, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
|
|
4295
4328
|
var init_src2 = __esm({
|
|
4296
4329
|
"packages/domain/scanner/src/index.ts"() {
|
|
4297
4330
|
"use strict";
|
|
4331
|
+
init_cjs_shims();
|
|
4298
4332
|
import_node_fs3 = __toESM(require("fs"), 1);
|
|
4299
4333
|
import_node_module3 = require("module");
|
|
4300
4334
|
import_node_path5 = __toESM(require("path"), 1);
|
|
@@ -4307,7 +4341,7 @@ var init_src2 = __esm({
|
|
|
4307
4341
|
init_schemas();
|
|
4308
4342
|
init_schemas();
|
|
4309
4343
|
init_native_bridge();
|
|
4310
|
-
|
|
4344
|
+
import_meta3 = {};
|
|
4311
4345
|
log2 = createLogger("scanner");
|
|
4312
4346
|
SCAN_WORKER_TIMEOUT_MS = 12e4;
|
|
4313
4347
|
createNativeParserLoader = () => {
|
|
@@ -4423,6 +4457,7 @@ var import_node_fs4, DEFAULT_TOP_LIMIT, DEFAULT_FREQUENT_THRESHOLD, DEBUG_NAMESP
|
|
|
4423
4457
|
var init_utils = __esm({
|
|
4424
4458
|
"packages/domain/analyzer/src/utils.ts"() {
|
|
4425
4459
|
"use strict";
|
|
4460
|
+
init_cjs_shims();
|
|
4426
4461
|
import_node_fs4 = __toESM(require("fs"), 1);
|
|
4427
4462
|
init_src();
|
|
4428
4463
|
DEFAULT_TOP_LIMIT = 10;
|
|
@@ -4441,7 +4476,7 @@ async function requireNativeBinding() {
|
|
|
4441
4476
|
if (binding?.analyzeClasses) return binding;
|
|
4442
4477
|
const runtimeDir = resolveRuntimeDir(
|
|
4443
4478
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4444
|
-
|
|
4479
|
+
importMetaUrl
|
|
4445
4480
|
);
|
|
4446
4481
|
const candidates = resolveNativeBindingCandidates({
|
|
4447
4482
|
runtimeDir,
|
|
@@ -4475,6 +4510,7 @@ var isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
|
|
|
4475
4510
|
var init_binding = __esm({
|
|
4476
4511
|
"packages/domain/analyzer/src/binding.ts"() {
|
|
4477
4512
|
"use strict";
|
|
4513
|
+
init_cjs_shims();
|
|
4478
4514
|
init_src();
|
|
4479
4515
|
init_utils();
|
|
4480
4516
|
isAnalyzerModule = (module2) => {
|
|
@@ -4488,7 +4524,7 @@ var init_binding = __esm({
|
|
|
4488
4524
|
_state.bindingPromise = (async () => {
|
|
4489
4525
|
const runtimeDir = resolveRuntimeDir(
|
|
4490
4526
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4491
|
-
|
|
4527
|
+
importMetaUrl
|
|
4492
4528
|
);
|
|
4493
4529
|
const candidates = resolveNativeBindingCandidates({
|
|
4494
4530
|
runtimeDir,
|
|
@@ -4531,6 +4567,7 @@ var import_zod2, formatIssuePath3, isPlainObject, formatIssues2, parseWithSchema
|
|
|
4531
4567
|
var init_schemas2 = __esm({
|
|
4532
4568
|
"packages/domain/analyzer/src/schemas.ts"() {
|
|
4533
4569
|
"use strict";
|
|
4570
|
+
init_cjs_shims();
|
|
4534
4571
|
init_src();
|
|
4535
4572
|
import_zod2 = require("zod");
|
|
4536
4573
|
formatIssuePath3 = (path30) => path30.length > 0 ? path30.map(
|
|
@@ -4645,6 +4682,7 @@ var import_node_fs5, import_node_path6, import_node_url5, SUPPORTED_TAILWIND_CON
|
|
|
4645
4682
|
var init_semantic = __esm({
|
|
4646
4683
|
"packages/domain/analyzer/src/semantic.ts"() {
|
|
4647
4684
|
"use strict";
|
|
4685
|
+
init_cjs_shims();
|
|
4648
4686
|
import_node_fs5 = __toESM(require("fs"), 1);
|
|
4649
4687
|
import_node_path6 = __toESM(require("path"), 1);
|
|
4650
4688
|
import_node_url5 = require("url");
|
|
@@ -5065,6 +5103,7 @@ var import_node_path7;
|
|
|
5065
5103
|
var init_analyzeWorkspace = __esm({
|
|
5066
5104
|
"packages/domain/analyzer/src/analyzeWorkspace.ts"() {
|
|
5067
5105
|
"use strict";
|
|
5106
|
+
init_cjs_shims();
|
|
5068
5107
|
import_node_path7 = __toESM(require("path"), 1);
|
|
5069
5108
|
init_src2();
|
|
5070
5109
|
init_binding();
|
|
@@ -5079,6 +5118,7 @@ var normalizeClassInput, normalizeClassToCssOptions, mergeDeclarationMap, declar
|
|
|
5079
5118
|
var init_classToCss = __esm({
|
|
5080
5119
|
"packages/domain/analyzer/src/classToCss.ts"() {
|
|
5081
5120
|
"use strict";
|
|
5121
|
+
init_cjs_shims();
|
|
5082
5122
|
init_binding();
|
|
5083
5123
|
init_schemas2();
|
|
5084
5124
|
init_utils();
|
|
@@ -5200,6 +5240,7 @@ var __internal;
|
|
|
5200
5240
|
var init_src3 = __esm({
|
|
5201
5241
|
"packages/domain/analyzer/src/index.ts"() {
|
|
5202
5242
|
"use strict";
|
|
5243
|
+
init_cjs_shims();
|
|
5203
5244
|
init_analyzeWorkspace();
|
|
5204
5245
|
init_classToCss();
|
|
5205
5246
|
init_schemas2();
|
|
@@ -5261,6 +5302,7 @@ var import_promises, import_node_path8;
|
|
|
5261
5302
|
var init_fs = __esm({
|
|
5262
5303
|
"packages/infrastructure/cli/src/utils/fs.ts"() {
|
|
5263
5304
|
"use strict";
|
|
5305
|
+
init_cjs_shims();
|
|
5264
5306
|
import_promises = __toESM(require("fs/promises"), 1);
|
|
5265
5307
|
import_node_path8 = __toESM(require("path"), 1);
|
|
5266
5308
|
}
|
|
@@ -5270,6 +5312,7 @@ var init_fs = __esm({
|
|
|
5270
5312
|
var require_picocolors = __commonJS({
|
|
5271
5313
|
"node_modules/picocolors/picocolors.js"(exports2, module2) {
|
|
5272
5314
|
"use strict";
|
|
5315
|
+
init_cjs_shims();
|
|
5273
5316
|
var p = process || {};
|
|
5274
5317
|
var argv = p.argv || [];
|
|
5275
5318
|
var env = p.env || {};
|
|
@@ -5357,6 +5400,7 @@ function writeJsonSuccess(command, data) {
|
|
|
5357
5400
|
var init_json = __esm({
|
|
5358
5401
|
"packages/infrastructure/cli/src/utils/json.ts"() {
|
|
5359
5402
|
"use strict";
|
|
5403
|
+
init_cjs_shims();
|
|
5360
5404
|
}
|
|
5361
5405
|
});
|
|
5362
5406
|
|
|
@@ -5499,6 +5543,7 @@ var import_prompts, import_picocolors;
|
|
|
5499
5543
|
var init_output = __esm({
|
|
5500
5544
|
"packages/infrastructure/cli/src/utils/output.ts"() {
|
|
5501
5545
|
"use strict";
|
|
5546
|
+
init_cjs_shims();
|
|
5502
5547
|
import_prompts = require("@clack/prompts");
|
|
5503
5548
|
import_picocolors = __toESM(require_picocolors(), 1);
|
|
5504
5549
|
init_errors();
|
|
@@ -5548,13 +5593,14 @@ var import_node_util3;
|
|
|
5548
5593
|
var init_args = __esm({
|
|
5549
5594
|
"packages/infrastructure/cli/src/utils/args.ts"() {
|
|
5550
5595
|
"use strict";
|
|
5596
|
+
init_cjs_shims();
|
|
5551
5597
|
import_node_util3 = require("util");
|
|
5552
5598
|
}
|
|
5553
5599
|
});
|
|
5554
5600
|
|
|
5555
5601
|
// packages/infrastructure/cli/src/utils/paths.ts
|
|
5556
|
-
function runtimeDirFromImportMeta(
|
|
5557
|
-
const filename = (0, import_node_url6.fileURLToPath)(
|
|
5602
|
+
function runtimeDirFromImportMeta(importMetaUrl2) {
|
|
5603
|
+
const filename = (0, import_node_url6.fileURLToPath)(importMetaUrl2);
|
|
5558
5604
|
return import_node_path17.default.dirname(filename);
|
|
5559
5605
|
}
|
|
5560
5606
|
async function resolveMonorepoPath(runtimeDir, relativeToRepoRoot) {
|
|
@@ -5572,6 +5618,7 @@ var import_node_path17, import_node_url6;
|
|
|
5572
5618
|
var init_paths = __esm({
|
|
5573
5619
|
"packages/infrastructure/cli/src/utils/paths.ts"() {
|
|
5574
5620
|
"use strict";
|
|
5621
|
+
init_cjs_shims();
|
|
5575
5622
|
import_node_path17 = __toESM(require("path"), 1);
|
|
5576
5623
|
import_node_url6 = require("url");
|
|
5577
5624
|
init_errors();
|
|
@@ -5659,6 +5706,7 @@ var isCommanderLikeError, isHelpExit, isVersionExit, normalizeCliError, findComm
|
|
|
5659
5706
|
var init_runtime = __esm({
|
|
5660
5707
|
"packages/infrastructure/cli/src/utils/runtime.ts"() {
|
|
5661
5708
|
"use strict";
|
|
5709
|
+
init_cjs_shims();
|
|
5662
5710
|
init_args();
|
|
5663
5711
|
init_errors();
|
|
5664
5712
|
init_output();
|
|
@@ -6117,22 +6165,23 @@ function buildCreateProgram(context) {
|
|
|
6117
6165
|
async function main(rawArgs = process.argv.slice(2)) {
|
|
6118
6166
|
await runCliMain({
|
|
6119
6167
|
argv: [process.execPath, "create-tailwind-styled", ...rawArgs],
|
|
6120
|
-
importMetaUrl: typeof
|
|
6168
|
+
importMetaUrl: typeof import_meta4 !== "undefined" && importMetaUrl ? importMetaUrl : `file://${process.argv[1] ?? "unknown"}`,
|
|
6121
6169
|
commandHint: "create",
|
|
6122
6170
|
buildProgram: buildCreateProgram
|
|
6123
6171
|
});
|
|
6124
6172
|
}
|
|
6125
|
-
var import_node_path19, import_prompts4,
|
|
6173
|
+
var import_node_path19, import_prompts4, import_meta4, TEMPLATE_NAMES, TEMPLATES;
|
|
6126
6174
|
var init_createApp = __esm({
|
|
6127
6175
|
"packages/infrastructure/cli/src/createApp.ts"() {
|
|
6128
6176
|
"use strict";
|
|
6177
|
+
init_cjs_shims();
|
|
6129
6178
|
import_node_path19 = __toESM(require("path"), 1);
|
|
6130
6179
|
import_prompts4 = require("@clack/prompts");
|
|
6131
6180
|
init_esm();
|
|
6132
6181
|
init_errors();
|
|
6133
6182
|
init_fs();
|
|
6134
6183
|
init_runtime();
|
|
6135
|
-
|
|
6184
|
+
import_meta4 = {};
|
|
6136
6185
|
TEMPLATE_NAMES = ["next-app", "vite-react", "vite-vue", "vite-svelte", "simple"];
|
|
6137
6186
|
TEMPLATES = {
|
|
6138
6187
|
"next-app": createNextApp,
|
|
@@ -6149,6 +6198,7 @@ var _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttem
|
|
|
6149
6198
|
var init_nativeBridge = __esm({
|
|
6150
6199
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
6151
6200
|
"use strict";
|
|
6201
|
+
init_cjs_shims();
|
|
6152
6202
|
init_src();
|
|
6153
6203
|
_loadNative = (path30) => require(path30);
|
|
6154
6204
|
log3 = (...args) => {
|
|
@@ -6176,7 +6226,7 @@ var init_nativeBridge = __esm({
|
|
|
6176
6226
|
}
|
|
6177
6227
|
bridgeLoadAttempted = true;
|
|
6178
6228
|
try {
|
|
6179
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
6229
|
+
const runtimeDir = resolveRuntimeDir(void 0, importMetaUrl);
|
|
6180
6230
|
const result = resolveNativeBinary(runtimeDir);
|
|
6181
6231
|
if (result.path && result.path.endsWith(".node")) {
|
|
6182
6232
|
try {
|
|
@@ -6248,6 +6298,7 @@ Tried paths: ${result.tried.join("\n")}`);
|
|
|
6248
6298
|
var init_compiler = __esm({
|
|
6249
6299
|
"packages/domain/compiler/src/compiler/index.ts"() {
|
|
6250
6300
|
"use strict";
|
|
6301
|
+
init_cjs_shims();
|
|
6251
6302
|
}
|
|
6252
6303
|
});
|
|
6253
6304
|
|
|
@@ -6255,6 +6306,7 @@ var init_compiler = __esm({
|
|
|
6255
6306
|
var init_parser = __esm({
|
|
6256
6307
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
6257
6308
|
"use strict";
|
|
6309
|
+
init_cjs_shims();
|
|
6258
6310
|
}
|
|
6259
6311
|
});
|
|
6260
6312
|
|
|
@@ -6262,6 +6314,7 @@ var init_parser = __esm({
|
|
|
6262
6314
|
var init_analyzer = __esm({
|
|
6263
6315
|
"packages/domain/compiler/src/analyzer/index.ts"() {
|
|
6264
6316
|
"use strict";
|
|
6317
|
+
init_cjs_shims();
|
|
6265
6318
|
}
|
|
6266
6319
|
});
|
|
6267
6320
|
|
|
@@ -6269,6 +6322,7 @@ var init_analyzer = __esm({
|
|
|
6269
6322
|
var init_cache = __esm({
|
|
6270
6323
|
"packages/domain/compiler/src/cache/index.ts"() {
|
|
6271
6324
|
"use strict";
|
|
6325
|
+
init_cjs_shims();
|
|
6272
6326
|
}
|
|
6273
6327
|
});
|
|
6274
6328
|
|
|
@@ -6276,6 +6330,7 @@ var init_cache = __esm({
|
|
|
6276
6330
|
var init_redis = __esm({
|
|
6277
6331
|
"packages/domain/compiler/src/redis/index.ts"() {
|
|
6278
6332
|
"use strict";
|
|
6333
|
+
init_cjs_shims();
|
|
6279
6334
|
}
|
|
6280
6335
|
});
|
|
6281
6336
|
|
|
@@ -6283,6 +6338,7 @@ var init_redis = __esm({
|
|
|
6283
6338
|
var init_watch = __esm({
|
|
6284
6339
|
"packages/domain/compiler/src/watch/index.ts"() {
|
|
6285
6340
|
"use strict";
|
|
6341
|
+
init_cjs_shims();
|
|
6286
6342
|
}
|
|
6287
6343
|
});
|
|
6288
6344
|
|
|
@@ -6291,6 +6347,7 @@ var import_node_fs9, import_node_path24, import_node_module4, _require3, compile
|
|
|
6291
6347
|
var init_src4 = __esm({
|
|
6292
6348
|
"packages/domain/compiler/src/index.ts"() {
|
|
6293
6349
|
"use strict";
|
|
6350
|
+
init_cjs_shims();
|
|
6294
6351
|
import_node_fs9 = __toESM(require("fs"), 1);
|
|
6295
6352
|
import_node_path24 = __toESM(require("path"), 1);
|
|
6296
6353
|
import_node_module4 = require("module");
|
|
@@ -6302,7 +6359,7 @@ var init_src4 = __esm({
|
|
|
6302
6359
|
init_redis();
|
|
6303
6360
|
init_watch();
|
|
6304
6361
|
_require3 = (0, import_node_module4.createRequire)(
|
|
6305
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" :
|
|
6362
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : importMetaUrl
|
|
6306
6363
|
);
|
|
6307
6364
|
compileCssFromClasses = (classes, prefix) => {
|
|
6308
6365
|
const native = getNativeBridge();
|
|
@@ -6322,6 +6379,7 @@ var init_src4 = __esm({
|
|
|
6322
6379
|
var init_internal = __esm({
|
|
6323
6380
|
"packages/domain/compiler/src/internal.ts"() {
|
|
6324
6381
|
"use strict";
|
|
6382
|
+
init_cjs_shims();
|
|
6325
6383
|
init_src4();
|
|
6326
6384
|
init_compiler();
|
|
6327
6385
|
init_parser();
|
|
@@ -6332,17 +6390,24 @@ var init_internal = __esm({
|
|
|
6332
6390
|
}
|
|
6333
6391
|
});
|
|
6334
6392
|
|
|
6393
|
+
// src/umbrella/tw.ts
|
|
6394
|
+
init_cjs_shims();
|
|
6395
|
+
|
|
6335
6396
|
// packages/infrastructure/cli/src/index.ts
|
|
6397
|
+
init_cjs_shims();
|
|
6336
6398
|
var import_node_url8 = require("url");
|
|
6337
6399
|
|
|
6338
6400
|
// packages/infrastructure/cli/src/commands/program.ts
|
|
6401
|
+
init_cjs_shims();
|
|
6339
6402
|
init_esm();
|
|
6340
6403
|
|
|
6341
6404
|
// packages/infrastructure/cli/src/analyze.ts
|
|
6405
|
+
init_cjs_shims();
|
|
6342
6406
|
var import_node_path9 = __toESM(require("path"), 1);
|
|
6343
6407
|
var import_node_util = require("util");
|
|
6344
6408
|
|
|
6345
6409
|
// packages/infrastructure/cli/src/utils/analyzer.ts
|
|
6410
|
+
init_cjs_shims();
|
|
6346
6411
|
init_errors();
|
|
6347
6412
|
async function loadAnalyzerModule() {
|
|
6348
6413
|
try {
|
|
@@ -6432,6 +6497,7 @@ async function runAnalyzeCli(args) {
|
|
|
6432
6497
|
}
|
|
6433
6498
|
|
|
6434
6499
|
// packages/infrastructure/cli/src/extract.ts
|
|
6500
|
+
init_cjs_shims();
|
|
6435
6501
|
var import_node_path10 = __toESM(require("path"), 1);
|
|
6436
6502
|
var import_node_util2 = require("util");
|
|
6437
6503
|
init_errors();
|
|
@@ -6528,6 +6594,7 @@ async function runExtractCli(args) {
|
|
|
6528
6594
|
}
|
|
6529
6595
|
|
|
6530
6596
|
// packages/infrastructure/cli/src/init.ts
|
|
6597
|
+
init_cjs_shims();
|
|
6531
6598
|
var import_node_path11 = __toESM(require("path"), 1);
|
|
6532
6599
|
init_fs();
|
|
6533
6600
|
init_output();
|
|
@@ -6586,10 +6653,12 @@ async function runInitCli(rawArgs) {
|
|
|
6586
6653
|
}
|
|
6587
6654
|
|
|
6588
6655
|
// packages/infrastructure/cli/src/migrate.ts
|
|
6656
|
+
init_cjs_shims();
|
|
6589
6657
|
var import_promises2 = __toESM(require("fs/promises"), 1);
|
|
6590
6658
|
var import_node_path12 = __toESM(require("path"), 1);
|
|
6591
6659
|
|
|
6592
6660
|
// packages/infrastructure/cli/src/migrateWizard.ts
|
|
6661
|
+
init_cjs_shims();
|
|
6593
6662
|
var import_prompts2 = require("@clack/prompts");
|
|
6594
6663
|
init_errors();
|
|
6595
6664
|
async function runMigrationWizard() {
|
|
@@ -6737,6 +6806,7 @@ async function runMigrateCli(rawArgs) {
|
|
|
6737
6806
|
}
|
|
6738
6807
|
|
|
6739
6808
|
// packages/infrastructure/cli/src/scan.ts
|
|
6809
|
+
init_cjs_shims();
|
|
6740
6810
|
var import_node_fs6 = __toESM(require("fs"), 1);
|
|
6741
6811
|
var import_node_path13 = __toESM(require("path"), 1);
|
|
6742
6812
|
init_src2();
|
|
@@ -6848,10 +6918,12 @@ Scan root : ${result.root}`);
|
|
|
6848
6918
|
}
|
|
6849
6919
|
|
|
6850
6920
|
// packages/infrastructure/cli/src/setup.ts
|
|
6921
|
+
init_cjs_shims();
|
|
6851
6922
|
var import_node_path15 = __toESM(require("path"), 1);
|
|
6852
6923
|
var import_picocolors3 = __toESM(require_picocolors(), 1);
|
|
6853
6924
|
|
|
6854
6925
|
// packages/infrastructure/cli/src/commands/setup/patchers.ts
|
|
6926
|
+
init_cjs_shims();
|
|
6855
6927
|
function patchNextConfigImpl(src) {
|
|
6856
6928
|
if (src.includes("withTailwindStyled")) return null;
|
|
6857
6929
|
const hasExport = src.includes("export default");
|
|
@@ -7044,6 +7116,7 @@ function patchTsConfigImpl(src) {
|
|
|
7044
7116
|
}
|
|
7045
7117
|
|
|
7046
7118
|
// packages/infrastructure/cli/src/commands/setup/prompt.ts
|
|
7119
|
+
init_cjs_shims();
|
|
7047
7120
|
var import_prompts3 = require("@clack/prompts");
|
|
7048
7121
|
init_errors();
|
|
7049
7122
|
async function pickProjectTypeInteractive(detected, flags, projectOptions, options = {}) {
|
|
@@ -7095,10 +7168,12 @@ async function pickProjectTypeInteractive(detected, flags, projectOptions, optio
|
|
|
7095
7168
|
}
|
|
7096
7169
|
|
|
7097
7170
|
// packages/infrastructure/cli/src/commands/setup/workspace.ts
|
|
7171
|
+
init_cjs_shims();
|
|
7098
7172
|
var import_node_path14 = __toESM(require("path"), 1);
|
|
7099
7173
|
init_fs();
|
|
7100
7174
|
|
|
7101
7175
|
// packages/infrastructure/cli/src/utils/process.ts
|
|
7176
|
+
init_cjs_shims();
|
|
7102
7177
|
var import_node_child_process = require("child_process");
|
|
7103
7178
|
init_errors();
|
|
7104
7179
|
init_json();
|
|
@@ -7347,6 +7422,7 @@ async function installPackages(cwd2, pm, pkgs, dev, flags, logger) {
|
|
|
7347
7422
|
}
|
|
7348
7423
|
|
|
7349
7424
|
// packages/infrastructure/cli/src/utils/logger.ts
|
|
7425
|
+
init_cjs_shims();
|
|
7350
7426
|
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
7351
7427
|
function createCliLogger(options = {}) {
|
|
7352
7428
|
function emit(level, icon, colorize, message) {
|
|
@@ -7555,6 +7631,7 @@ var runSetupCli = async (rawArgs) => {
|
|
|
7555
7631
|
};
|
|
7556
7632
|
|
|
7557
7633
|
// packages/infrastructure/cli/src/stats.ts
|
|
7634
|
+
init_cjs_shims();
|
|
7558
7635
|
var import_node_path16 = __toESM(require("path"), 1);
|
|
7559
7636
|
var import_node_util4 = require("util");
|
|
7560
7637
|
init_errors();
|
|
@@ -7647,6 +7724,7 @@ async function runStatsCli(args) {
|
|
|
7647
7724
|
init_runtime();
|
|
7648
7725
|
|
|
7649
7726
|
// packages/infrastructure/cli/src/commands/boundary.ts
|
|
7727
|
+
init_cjs_shims();
|
|
7650
7728
|
var import_node_fs7 = require("fs");
|
|
7651
7729
|
var import_node_path18 = require("path");
|
|
7652
7730
|
var import_node_util5 = require("util");
|
|
@@ -7772,6 +7850,7 @@ var boundaryCommand = {
|
|
|
7772
7850
|
};
|
|
7773
7851
|
|
|
7774
7852
|
// packages/infrastructure/cli/src/commands/create.ts
|
|
7853
|
+
init_cjs_shims();
|
|
7775
7854
|
init_args();
|
|
7776
7855
|
var createCommand2 = {
|
|
7777
7856
|
name: "create",
|
|
@@ -7783,11 +7862,13 @@ var createCommand2 = {
|
|
|
7783
7862
|
};
|
|
7784
7863
|
|
|
7785
7864
|
// packages/infrastructure/cli/src/commands/dashboard.ts
|
|
7865
|
+
init_cjs_shims();
|
|
7786
7866
|
var import_node_util6 = require("util");
|
|
7787
7867
|
init_errors();
|
|
7788
7868
|
init_fs();
|
|
7789
7869
|
|
|
7790
7870
|
// packages/infrastructure/cli/src/commands/helpers.ts
|
|
7871
|
+
init_cjs_shims();
|
|
7791
7872
|
var import_promises3 = __toESM(require("fs/promises"), 1);
|
|
7792
7873
|
var import_node_path20 = __toESM(require("path"), 1);
|
|
7793
7874
|
init_errors();
|
|
@@ -7877,6 +7958,7 @@ var dashboardCommand = {
|
|
|
7877
7958
|
};
|
|
7878
7959
|
|
|
7879
7960
|
// packages/infrastructure/cli/src/commands/deploy.ts
|
|
7961
|
+
init_cjs_shims();
|
|
7880
7962
|
var import_promises4 = __toESM(require("fs/promises"), 1);
|
|
7881
7963
|
var import_node_path21 = __toESM(require("path"), 1);
|
|
7882
7964
|
var import_node_util7 = require("util");
|
|
@@ -8036,10 +8118,12 @@ var deployCommand = {
|
|
|
8036
8118
|
};
|
|
8037
8119
|
|
|
8038
8120
|
// packages/infrastructure/cli/src/commands/doctor.ts
|
|
8121
|
+
init_cjs_shims();
|
|
8039
8122
|
var import_node_util8 = require("util");
|
|
8040
8123
|
var import_picocolors4 = __toESM(require_picocolors(), 1);
|
|
8041
8124
|
|
|
8042
8125
|
// packages/infrastructure/cli/src/utils/doctorService.ts
|
|
8126
|
+
init_cjs_shims();
|
|
8043
8127
|
var import_node_fs8 = __toESM(require("fs"), 1);
|
|
8044
8128
|
var import_node_path22 = __toESM(require("path"), 1);
|
|
8045
8129
|
init_src3();
|
|
@@ -8581,6 +8665,7 @@ function printDoctorOutput(result, output) {
|
|
|
8581
8665
|
}
|
|
8582
8666
|
|
|
8583
8667
|
// packages/infrastructure/cli/src/commands/misc.ts
|
|
8668
|
+
init_cjs_shims();
|
|
8584
8669
|
var import_node_path23 = __toESM(require("path"), 1);
|
|
8585
8670
|
var import_node_util9 = require("util");
|
|
8586
8671
|
init_errors();
|
|
@@ -8858,6 +8943,7 @@ var miscCommands = [
|
|
|
8858
8943
|
];
|
|
8859
8944
|
|
|
8860
8945
|
// packages/infrastructure/cli/src/commands/plugin.ts
|
|
8946
|
+
init_cjs_shims();
|
|
8861
8947
|
init_errors();
|
|
8862
8948
|
init_json();
|
|
8863
8949
|
var pluginCommand = {
|
|
@@ -8944,7 +9030,11 @@ var pluginCommand = {
|
|
|
8944
9030
|
}
|
|
8945
9031
|
};
|
|
8946
9032
|
|
|
9033
|
+
// packages/infrastructure/cli/src/commands/preflight.ts
|
|
9034
|
+
init_cjs_shims();
|
|
9035
|
+
|
|
8947
9036
|
// packages/infrastructure/cli/src/preflight.ts
|
|
9037
|
+
init_cjs_shims();
|
|
8948
9038
|
var import_node_path25 = __toESM(require("path"), 1);
|
|
8949
9039
|
var import_node_url7 = require("url");
|
|
8950
9040
|
init_args();
|
|
@@ -8952,7 +9042,7 @@ init_errors();
|
|
|
8952
9042
|
init_fs();
|
|
8953
9043
|
init_json();
|
|
8954
9044
|
init_src4();
|
|
8955
|
-
var
|
|
9045
|
+
var import_meta5 = {};
|
|
8956
9046
|
var DEFAULT_TAILWIND_CSS2 = '@import "tailwindcss";\n';
|
|
8957
9047
|
var DEFAULT_TW_CONFIG = `${JSON.stringify(
|
|
8958
9048
|
{
|
|
@@ -9263,7 +9353,7 @@ async function runPreflightCli(rawArgs) {
|
|
|
9263
9353
|
function isDirectExecution() {
|
|
9264
9354
|
const scriptPath = process.argv[1];
|
|
9265
9355
|
if (!scriptPath) return false;
|
|
9266
|
-
const currentUrl = typeof
|
|
9356
|
+
const currentUrl = typeof import_meta5 !== "undefined" && importMetaUrl ? importMetaUrl : `file://${scriptPath}`;
|
|
9267
9357
|
return currentUrl === (0, import_node_url7.pathToFileURL)(scriptPath).href;
|
|
9268
9358
|
}
|
|
9269
9359
|
if (isDirectExecution()) {
|
|
@@ -9295,6 +9385,7 @@ var preflightCommand = {
|
|
|
9295
9385
|
};
|
|
9296
9386
|
|
|
9297
9387
|
// packages/infrastructure/cli/src/commands/registry.ts
|
|
9388
|
+
init_cjs_shims();
|
|
9298
9389
|
init_errors();
|
|
9299
9390
|
var registryCommand = {
|
|
9300
9391
|
name: "registry",
|
|
@@ -9332,6 +9423,7 @@ var installRegistryCommand = {
|
|
|
9332
9423
|
};
|
|
9333
9424
|
|
|
9334
9425
|
// packages/infrastructure/cli/src/commands/scriptCommands.ts
|
|
9426
|
+
init_cjs_shims();
|
|
9335
9427
|
var import_node_util10 = require("util");
|
|
9336
9428
|
init_errors();
|
|
9337
9429
|
async function runScriptCommand(commandName, context, relativeScriptPath, args, options = {}) {
|
|
@@ -9543,6 +9635,7 @@ var scriptCommands = [
|
|
|
9543
9635
|
];
|
|
9544
9636
|
|
|
9545
9637
|
// packages/infrastructure/cli/src/commands/storybook.ts
|
|
9638
|
+
init_cjs_shims();
|
|
9546
9639
|
var import_node_path26 = __toESM(require("path"), 1);
|
|
9547
9640
|
var import_node_util11 = require("util");
|
|
9548
9641
|
init_errors();
|
|
@@ -9602,6 +9695,7 @@ var storybookCommand = {
|
|
|
9602
9695
|
};
|
|
9603
9696
|
|
|
9604
9697
|
// packages/infrastructure/cli/src/commands/studio.ts
|
|
9698
|
+
init_cjs_shims();
|
|
9605
9699
|
var import_node_util12 = require("util");
|
|
9606
9700
|
init_errors();
|
|
9607
9701
|
var studioCommand = {
|
|
@@ -9635,6 +9729,7 @@ var studioCommand = {
|
|
|
9635
9729
|
};
|
|
9636
9730
|
|
|
9637
9731
|
// packages/infrastructure/cli/src/commands/sync.ts
|
|
9732
|
+
init_cjs_shims();
|
|
9638
9733
|
init_errors();
|
|
9639
9734
|
var syncCommand = {
|
|
9640
9735
|
name: "sync",
|
|
@@ -9676,21 +9771,30 @@ var syncCommand = {
|
|
|
9676
9771
|
};
|
|
9677
9772
|
|
|
9678
9773
|
// packages/infrastructure/cli/src/commands/trace.ts
|
|
9774
|
+
init_cjs_shims();
|
|
9679
9775
|
var import_node_util13 = require("util");
|
|
9680
9776
|
var import_picocolors5 = __toESM(require_picocolors(), 1);
|
|
9681
9777
|
init_errors();
|
|
9682
9778
|
|
|
9683
9779
|
// packages/infrastructure/cli/src/utils/traceService.ts
|
|
9780
|
+
init_cjs_shims();
|
|
9684
9781
|
init_internal();
|
|
9685
9782
|
|
|
9783
|
+
// packages/domain/engine/src/internal.ts
|
|
9784
|
+
init_cjs_shims();
|
|
9785
|
+
|
|
9786
|
+
// packages/domain/engine/src/bundleAnalyzer.ts
|
|
9787
|
+
init_cjs_shims();
|
|
9788
|
+
|
|
9686
9789
|
// packages/domain/engine/src/native-bridge.ts
|
|
9790
|
+
init_cjs_shims();
|
|
9687
9791
|
init_src();
|
|
9688
|
-
var
|
|
9792
|
+
var import_meta6 = {};
|
|
9689
9793
|
var log4 = createDebugLogger("engine:native");
|
|
9690
9794
|
function getDirname3() {
|
|
9691
9795
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
9692
|
-
if (typeof
|
|
9693
|
-
return getDirname(
|
|
9796
|
+
if (typeof import_meta6 !== "undefined" && importMetaUrl) {
|
|
9797
|
+
return getDirname(importMetaUrl);
|
|
9694
9798
|
}
|
|
9695
9799
|
return process.cwd();
|
|
9696
9800
|
}
|
|
@@ -9865,6 +9969,7 @@ var BundleAnalyzer = class {
|
|
|
9865
9969
|
};
|
|
9866
9970
|
|
|
9867
9971
|
// packages/domain/engine/src/impactTracker.ts
|
|
9972
|
+
init_cjs_shims();
|
|
9868
9973
|
var ImpactTracker = class {
|
|
9869
9974
|
bundleAnalyzer;
|
|
9870
9975
|
constructor() {
|
|
@@ -10049,6 +10154,7 @@ var ImpactTracker = class {
|
|
|
10049
10154
|
};
|
|
10050
10155
|
|
|
10051
10156
|
// packages/domain/engine/src/ir.ts
|
|
10157
|
+
init_cjs_shims();
|
|
10052
10158
|
var RuleId = class {
|
|
10053
10159
|
constructor(value) {
|
|
10054
10160
|
this.value = value;
|
|
@@ -10178,6 +10284,7 @@ function createFingerprint(parts) {
|
|
|
10178
10284
|
}
|
|
10179
10285
|
|
|
10180
10286
|
// packages/domain/engine/src/reverseLookup.ts
|
|
10287
|
+
init_cjs_shims();
|
|
10181
10288
|
function getNative() {
|
|
10182
10289
|
const native = getNativeEngineBinding();
|
|
10183
10290
|
if (!native?.reverseLookupFromCss || !native?.reverseLookupByProperty || !native?.reverseLookupFindDependents) {
|
|
@@ -10252,6 +10359,7 @@ var ReverseLookup = class {
|
|
|
10252
10359
|
};
|
|
10253
10360
|
|
|
10254
10361
|
// packages/domain/engine/src/resolver.ts
|
|
10362
|
+
init_cjs_shims();
|
|
10255
10363
|
function toNativeInput(rule) {
|
|
10256
10364
|
return {
|
|
10257
10365
|
id: rule.id.value,
|
|
@@ -10369,6 +10477,7 @@ var CascadeResolver = class {
|
|
|
10369
10477
|
};
|
|
10370
10478
|
|
|
10371
10479
|
// packages/domain/engine/src/cssToIr.ts
|
|
10480
|
+
init_cjs_shims();
|
|
10372
10481
|
function createIdGenerator() {
|
|
10373
10482
|
const state = {
|
|
10374
10483
|
ruleIdCounter: 0,
|
|
@@ -10541,6 +10650,7 @@ function _parseCssToIrFallback(css, prefix, native) {
|
|
|
10541
10650
|
}
|
|
10542
10651
|
|
|
10543
10652
|
// packages/domain/engine/src/trace.ts
|
|
10653
|
+
init_cjs_shims();
|
|
10544
10654
|
function buildProvenanceChain(className) {
|
|
10545
10655
|
return {
|
|
10546
10656
|
className,
|
|
@@ -10753,6 +10863,7 @@ async function traceClass(className, options) {
|
|
|
10753
10863
|
}
|
|
10754
10864
|
|
|
10755
10865
|
// packages/infrastructure/cli/src/utils/traceTargetService.ts
|
|
10866
|
+
init_cjs_shims();
|
|
10756
10867
|
var import_node_fs10 = __toESM(require("fs"), 1);
|
|
10757
10868
|
var import_node_path27 = __toESM(require("path"), 1);
|
|
10758
10869
|
init_internal();
|
|
@@ -11056,6 +11167,7 @@ function printClassTraceOutput(result, output) {
|
|
|
11056
11167
|
}
|
|
11057
11168
|
|
|
11058
11169
|
// packages/infrastructure/cli/src/generateTypes.ts
|
|
11170
|
+
init_cjs_shims();
|
|
11059
11171
|
var import_node_fs11 = __toESM(require("fs"), 1);
|
|
11060
11172
|
var import_node_path28 = __toESM(require("path"), 1);
|
|
11061
11173
|
var import_picocolors6 = __toESM(require_picocolors(), 1);
|
|
@@ -11132,10 +11244,12 @@ async function loadNativeBinding2(cwd2) {
|
|
|
11132
11244
|
}
|
|
11133
11245
|
|
|
11134
11246
|
// packages/infrastructure/cli/src/commands/why.ts
|
|
11247
|
+
init_cjs_shims();
|
|
11135
11248
|
var import_node_util14 = require("util");
|
|
11136
11249
|
init_errors();
|
|
11137
11250
|
|
|
11138
11251
|
// packages/infrastructure/cli/src/utils/whyService.ts
|
|
11252
|
+
init_cjs_shims();
|
|
11139
11253
|
var import_node_fs12 = __toESM(require("fs"), 1);
|
|
11140
11254
|
var import_node_path29 = __toESM(require("path"), 1);
|
|
11141
11255
|
init_internal();
|
|
@@ -11660,11 +11774,11 @@ init_args();
|
|
|
11660
11774
|
init_output();
|
|
11661
11775
|
async function main2() {
|
|
11662
11776
|
await runCliMain({
|
|
11663
|
-
importMetaUrl
|
|
11777
|
+
importMetaUrl,
|
|
11664
11778
|
buildProgram: buildMainProgram
|
|
11665
11779
|
});
|
|
11666
11780
|
}
|
|
11667
|
-
var __currentFile = (0, import_node_url8.fileURLToPath)(
|
|
11781
|
+
var __currentFile = (0, import_node_url8.fileURLToPath)(importMetaUrl);
|
|
11668
11782
|
if (process.argv[1] === __currentFile) {
|
|
11669
11783
|
main2();
|
|
11670
11784
|
}
|