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/cli.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const __importMetaUrl = typeof __filename !== "undefined" ? require("node:url").pathToFileURL(__filename).href : "file://unknown";
|
|
2
1
|
/* tailwind-styled-v4 v5.0.4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
|
|
3
2
|
"use strict";
|
|
4
3
|
var __create = Object.create;
|
|
@@ -35,10 +34,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
35
34
|
));
|
|
36
35
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
36
|
|
|
37
|
+
// node_modules/tsup/assets/cjs_shims.js
|
|
38
|
+
var getImportMetaUrl, importMetaUrl;
|
|
39
|
+
var init_cjs_shims = __esm({
|
|
40
|
+
"node_modules/tsup/assets/cjs_shims.js"() {
|
|
41
|
+
"use strict";
|
|
42
|
+
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;
|
|
43
|
+
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
38
47
|
// packages/infrastructure/cli/node_modules/commander/lib/error.js
|
|
39
48
|
var require_error = __commonJS({
|
|
40
49
|
"packages/infrastructure/cli/node_modules/commander/lib/error.js"(exports2) {
|
|
41
50
|
"use strict";
|
|
51
|
+
init_cjs_shims();
|
|
42
52
|
var CommanderError2 = class extends Error {
|
|
43
53
|
/**
|
|
44
54
|
* Constructs the CommanderError class
|
|
@@ -75,6 +85,7 @@ var require_error = __commonJS({
|
|
|
75
85
|
var require_argument = __commonJS({
|
|
76
86
|
"packages/infrastructure/cli/node_modules/commander/lib/argument.js"(exports2) {
|
|
77
87
|
"use strict";
|
|
88
|
+
init_cjs_shims();
|
|
78
89
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
79
90
|
var Argument2 = class {
|
|
80
91
|
/**
|
|
@@ -203,6 +214,7 @@ var require_argument = __commonJS({
|
|
|
203
214
|
var require_help = __commonJS({
|
|
204
215
|
"packages/infrastructure/cli/node_modules/commander/lib/help.js"(exports2) {
|
|
205
216
|
"use strict";
|
|
217
|
+
init_cjs_shims();
|
|
206
218
|
var { humanReadableArgName } = require_argument();
|
|
207
219
|
var Help2 = class {
|
|
208
220
|
constructor() {
|
|
@@ -618,6 +630,7 @@ var require_help = __commonJS({
|
|
|
618
630
|
var require_option = __commonJS({
|
|
619
631
|
"packages/infrastructure/cli/node_modules/commander/lib/option.js"(exports2) {
|
|
620
632
|
"use strict";
|
|
633
|
+
init_cjs_shims();
|
|
621
634
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
622
635
|
var Option2 = class {
|
|
623
636
|
/**
|
|
@@ -891,6 +904,7 @@ var require_option = __commonJS({
|
|
|
891
904
|
var require_suggestSimilar = __commonJS({
|
|
892
905
|
"packages/infrastructure/cli/node_modules/commander/lib/suggestSimilar.js"(exports2) {
|
|
893
906
|
"use strict";
|
|
907
|
+
init_cjs_shims();
|
|
894
908
|
var maxDistance = 3;
|
|
895
909
|
function editDistance(a, b) {
|
|
896
910
|
if (Math.abs(a.length - b.length) > maxDistance)
|
|
@@ -972,6 +986,7 @@ var require_suggestSimilar = __commonJS({
|
|
|
972
986
|
var require_command = __commonJS({
|
|
973
987
|
"packages/infrastructure/cli/node_modules/commander/lib/command.js"(exports2) {
|
|
974
988
|
"use strict";
|
|
989
|
+
init_cjs_shims();
|
|
975
990
|
var EventEmitter = require("events").EventEmitter;
|
|
976
991
|
var childProcess = require("child_process");
|
|
977
992
|
var path30 = require("path");
|
|
@@ -3016,6 +3031,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3016
3031
|
var require_commander = __commonJS({
|
|
3017
3032
|
"packages/infrastructure/cli/node_modules/commander/index.js"(exports2) {
|
|
3018
3033
|
"use strict";
|
|
3034
|
+
init_cjs_shims();
|
|
3019
3035
|
var { Argument: Argument2 } = require_argument();
|
|
3020
3036
|
var { Command: Command2 } = require_command();
|
|
3021
3037
|
var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
@@ -3040,6 +3056,7 @@ var import_index, program, createCommand, createArgument, createOption, Commande
|
|
|
3040
3056
|
var init_esm = __esm({
|
|
3041
3057
|
"packages/infrastructure/cli/node_modules/commander/esm.mjs"() {
|
|
3042
3058
|
"use strict";
|
|
3059
|
+
init_cjs_shims();
|
|
3043
3060
|
import_index = __toESM(require_commander(), 1);
|
|
3044
3061
|
({
|
|
3045
3062
|
program,
|
|
@@ -3086,6 +3103,7 @@ var CliError, CliUsageError;
|
|
|
3086
3103
|
var init_errors = __esm({
|
|
3087
3104
|
"packages/infrastructure/cli/src/utils/errors.ts"() {
|
|
3088
3105
|
"use strict";
|
|
3106
|
+
init_cjs_shims();
|
|
3089
3107
|
CliError = class extends Error {
|
|
3090
3108
|
exitCode;
|
|
3091
3109
|
code;
|
|
@@ -3119,8 +3137,8 @@ function getNodeModuleRef() {
|
|
|
3119
3137
|
}
|
|
3120
3138
|
}
|
|
3121
3139
|
function getCurrentFileUrl() {
|
|
3122
|
-
if (
|
|
3123
|
-
return
|
|
3140
|
+
if (importMetaUrl) {
|
|
3141
|
+
return importMetaUrl;
|
|
3124
3142
|
}
|
|
3125
3143
|
if (typeof __filename !== "undefined") {
|
|
3126
3144
|
return `file://${__filename.replace(/\\/g, "/")}`;
|
|
@@ -3153,17 +3171,18 @@ function getNodeUrl() {
|
|
|
3153
3171
|
}
|
|
3154
3172
|
return _nodeUrl;
|
|
3155
3173
|
}
|
|
3156
|
-
function getDirname(
|
|
3174
|
+
function getDirname(importMetaUrl2) {
|
|
3157
3175
|
if (isBrowser) return "";
|
|
3158
3176
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
3159
3177
|
const nodePath = getNodePath();
|
|
3160
3178
|
const nodeUrl = getNodeUrl();
|
|
3161
|
-
return nodePath.dirname(nodeUrl.fileURLToPath(
|
|
3179
|
+
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl2));
|
|
3162
3180
|
}
|
|
3163
3181
|
var isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
|
|
3164
3182
|
var init_esmHelpers = __esm({
|
|
3165
3183
|
"packages/domain/shared/src/esmHelpers.ts"() {
|
|
3166
3184
|
"use strict";
|
|
3185
|
+
init_cjs_shims();
|
|
3167
3186
|
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3168
3187
|
nodeModuleRef = null;
|
|
3169
3188
|
_nodePath = null;
|
|
@@ -3172,6 +3191,15 @@ var init_esmHelpers = __esm({
|
|
|
3172
3191
|
});
|
|
3173
3192
|
|
|
3174
3193
|
// packages/domain/shared/src/native-resolution.ts
|
|
3194
|
+
function _safeCreateRequire() {
|
|
3195
|
+
if (typeof import_meta !== "undefined" && importMetaUrl && !importMetaUrl.includes("unknown")) {
|
|
3196
|
+
return (0, import_node_module.createRequire)(importMetaUrl);
|
|
3197
|
+
}
|
|
3198
|
+
if (typeof __filename !== "undefined") {
|
|
3199
|
+
return (0, import_node_module.createRequire)(__filename);
|
|
3200
|
+
}
|
|
3201
|
+
return (0, import_node_module.createRequire)(new URL(`file://${process.cwd()}/`).href);
|
|
3202
|
+
}
|
|
3175
3203
|
function platformKey() {
|
|
3176
3204
|
if (isBrowser2) return "browser";
|
|
3177
3205
|
return `${process.platform}-${process.arch}`;
|
|
@@ -3253,17 +3281,17 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
3253
3281
|
}
|
|
3254
3282
|
return { path: null, source: "not-found", platform, tried };
|
|
3255
3283
|
}
|
|
3256
|
-
var import_node_module, fs, path, isBrowser2, _require, PLATFORM_MAP;
|
|
3284
|
+
var import_node_module, fs, path, import_meta, isBrowser2, _require, PLATFORM_MAP;
|
|
3257
3285
|
var init_native_resolution = __esm({
|
|
3258
3286
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
3259
3287
|
"use strict";
|
|
3288
|
+
init_cjs_shims();
|
|
3260
3289
|
import_node_module = require("module");
|
|
3261
3290
|
fs = __toESM(require("fs"));
|
|
3262
3291
|
path = __toESM(require("path"));
|
|
3292
|
+
import_meta = {};
|
|
3263
3293
|
isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3264
|
-
_require = (
|
|
3265
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : __importMetaUrl
|
|
3266
|
-
);
|
|
3294
|
+
_require = _safeCreateRequire();
|
|
3267
3295
|
PLATFORM_MAP = {
|
|
3268
3296
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
3269
3297
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -3375,10 +3403,10 @@ function resolveNativeBindingCandidates(options) {
|
|
|
3375
3403
|
}
|
|
3376
3404
|
return Array.from(new Set(candidates));
|
|
3377
3405
|
}
|
|
3378
|
-
function resolveRuntimeDir(dir,
|
|
3406
|
+
function resolveRuntimeDir(dir, importMetaUrl2) {
|
|
3379
3407
|
if (dir) return import_node_path.default.resolve(dir);
|
|
3380
3408
|
try {
|
|
3381
|
-
return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(
|
|
3409
|
+
return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl2));
|
|
3382
3410
|
} catch {
|
|
3383
3411
|
return process.cwd();
|
|
3384
3412
|
}
|
|
@@ -3387,6 +3415,7 @@ var import_node_crypto, import_node_fs, import_node_path, import_node_url, impor
|
|
|
3387
3415
|
var init_src = __esm({
|
|
3388
3416
|
"packages/domain/shared/src/index.ts"() {
|
|
3389
3417
|
"use strict";
|
|
3418
|
+
init_cjs_shims();
|
|
3390
3419
|
import_node_crypto = require("crypto");
|
|
3391
3420
|
import_node_fs = __toESM(require("fs"));
|
|
3392
3421
|
import_node_path = __toESM(require("path"));
|
|
@@ -3447,7 +3476,7 @@ var init_src = __esm({
|
|
|
3447
3476
|
}
|
|
3448
3477
|
};
|
|
3449
3478
|
_require2 = (0, import_node_module2.createRequire)(
|
|
3450
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
3479
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
|
|
3451
3480
|
);
|
|
3452
3481
|
}
|
|
3453
3482
|
});
|
|
@@ -3485,8 +3514,8 @@ function getDirname2() {
|
|
|
3485
3514
|
if (typeof __dirname !== "undefined") {
|
|
3486
3515
|
return __dirname;
|
|
3487
3516
|
}
|
|
3488
|
-
if (typeof
|
|
3489
|
-
return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(
|
|
3517
|
+
if (typeof import_meta2 !== "undefined" && importMetaUrl) {
|
|
3518
|
+
return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(importMetaUrl));
|
|
3490
3519
|
}
|
|
3491
3520
|
return process.cwd();
|
|
3492
3521
|
}
|
|
@@ -3691,14 +3720,15 @@ function hasNativeWatchBinding() {
|
|
|
3691
3720
|
return false;
|
|
3692
3721
|
}
|
|
3693
3722
|
}
|
|
3694
|
-
var import_node_path2, import_node_url2,
|
|
3723
|
+
var import_node_path2, import_node_url2, import_meta2, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3695
3724
|
var init_native_bridge = __esm({
|
|
3696
3725
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
3697
3726
|
"use strict";
|
|
3727
|
+
init_cjs_shims();
|
|
3698
3728
|
import_node_path2 = __toESM(require("path"), 1);
|
|
3699
3729
|
import_node_url2 = require("url");
|
|
3700
3730
|
init_src();
|
|
3701
|
-
|
|
3731
|
+
import_meta2 = {};
|
|
3702
3732
|
log = createDebugLogger("scanner:native");
|
|
3703
3733
|
isValidScannerBinding = (module2) => {
|
|
3704
3734
|
const candidate = module2;
|
|
@@ -3824,6 +3854,7 @@ var import_node_fs2, import_node_path3, STALE_THRESHOLD_MS;
|
|
|
3824
3854
|
var init_cache_native = __esm({
|
|
3825
3855
|
"packages/domain/scanner/src/cache-native.ts"() {
|
|
3826
3856
|
"use strict";
|
|
3857
|
+
init_cjs_shims();
|
|
3827
3858
|
import_node_fs2 = __toESM(require("fs"), 1);
|
|
3828
3859
|
import_node_path3 = __toESM(require("path"), 1);
|
|
3829
3860
|
init_native_bridge();
|
|
@@ -3892,6 +3923,7 @@ var import_node_worker_threads, import_node_path4, import_node_os, import_node_u
|
|
|
3892
3923
|
var init_parallel_scanner = __esm({
|
|
3893
3924
|
"packages/domain/scanner/src/parallel-scanner.ts"() {
|
|
3894
3925
|
"use strict";
|
|
3926
|
+
init_cjs_shims();
|
|
3895
3927
|
import_node_worker_threads = require("worker_threads");
|
|
3896
3928
|
import_node_path4 = __toESM(require("path"), 1);
|
|
3897
3929
|
import_node_os = require("os");
|
|
@@ -3914,7 +3946,7 @@ var init_parallel_scanner = __esm({
|
|
|
3914
3946
|
import_node_worker_threads.parentPort.postMessage(msg);
|
|
3915
3947
|
}
|
|
3916
3948
|
}
|
|
3917
|
-
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
3949
|
+
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(importMetaUrl);
|
|
3918
3950
|
}
|
|
3919
3951
|
});
|
|
3920
3952
|
|
|
@@ -3923,6 +3955,7 @@ var import_zod, formatIssuePath2, formatIssues, parseWithSchema, NonNegativeInte
|
|
|
3923
3955
|
var init_schemas = __esm({
|
|
3924
3956
|
"packages/domain/scanner/src/schemas.ts"() {
|
|
3925
3957
|
"use strict";
|
|
3958
|
+
init_cjs_shims();
|
|
3926
3959
|
import_zod = require("zod");
|
|
3927
3960
|
init_src();
|
|
3928
3961
|
formatIssuePath2 = (path30) => path30.length > 0 ? path30.map(
|
|
@@ -4006,8 +4039,8 @@ function getRuntimeDir() {
|
|
|
4006
4039
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
4007
4040
|
return __dirname;
|
|
4008
4041
|
}
|
|
4009
|
-
if (typeof
|
|
4010
|
-
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
4042
|
+
if (typeof import_meta3 !== "undefined" && importMetaUrl) {
|
|
4043
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
4011
4044
|
}
|
|
4012
4045
|
return process.cwd();
|
|
4013
4046
|
}
|
|
@@ -4016,8 +4049,8 @@ function resolveScannerWorkerModulePath() {
|
|
|
4016
4049
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
4017
4050
|
return __dirname;
|
|
4018
4051
|
}
|
|
4019
|
-
if (typeof
|
|
4020
|
-
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(
|
|
4052
|
+
if (typeof import_meta3 !== "undefined" && importMetaUrl) {
|
|
4053
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
4021
4054
|
}
|
|
4022
4055
|
return process.cwd();
|
|
4023
4056
|
})();
|
|
@@ -4290,10 +4323,11 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
|
|
|
4290
4323
|
return scanWorkspace(rootDir, normalizedOptions);
|
|
4291
4324
|
}
|
|
4292
4325
|
}
|
|
4293
|
-
var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2,
|
|
4326
|
+
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;
|
|
4294
4327
|
var init_src2 = __esm({
|
|
4295
4328
|
"packages/domain/scanner/src/index.ts"() {
|
|
4296
4329
|
"use strict";
|
|
4330
|
+
init_cjs_shims();
|
|
4297
4331
|
import_node_fs3 = __toESM(require("fs"), 1);
|
|
4298
4332
|
import_node_module3 = require("module");
|
|
4299
4333
|
import_node_path5 = __toESM(require("path"), 1);
|
|
@@ -4306,7 +4340,7 @@ var init_src2 = __esm({
|
|
|
4306
4340
|
init_schemas();
|
|
4307
4341
|
init_schemas();
|
|
4308
4342
|
init_native_bridge();
|
|
4309
|
-
|
|
4343
|
+
import_meta3 = {};
|
|
4310
4344
|
log2 = createLogger("scanner");
|
|
4311
4345
|
SCAN_WORKER_TIMEOUT_MS = 12e4;
|
|
4312
4346
|
createNativeParserLoader = () => {
|
|
@@ -4422,6 +4456,7 @@ var import_node_fs4, DEFAULT_TOP_LIMIT, DEFAULT_FREQUENT_THRESHOLD, DEBUG_NAMESP
|
|
|
4422
4456
|
var init_utils = __esm({
|
|
4423
4457
|
"packages/domain/analyzer/src/utils.ts"() {
|
|
4424
4458
|
"use strict";
|
|
4459
|
+
init_cjs_shims();
|
|
4425
4460
|
import_node_fs4 = __toESM(require("fs"), 1);
|
|
4426
4461
|
init_src();
|
|
4427
4462
|
DEFAULT_TOP_LIMIT = 10;
|
|
@@ -4440,7 +4475,7 @@ async function requireNativeBinding() {
|
|
|
4440
4475
|
if (binding?.analyzeClasses) return binding;
|
|
4441
4476
|
const runtimeDir = resolveRuntimeDir(
|
|
4442
4477
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4443
|
-
|
|
4478
|
+
importMetaUrl
|
|
4444
4479
|
);
|
|
4445
4480
|
const candidates = resolveNativeBindingCandidates({
|
|
4446
4481
|
runtimeDir,
|
|
@@ -4474,6 +4509,7 @@ var isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
|
|
|
4474
4509
|
var init_binding = __esm({
|
|
4475
4510
|
"packages/domain/analyzer/src/binding.ts"() {
|
|
4476
4511
|
"use strict";
|
|
4512
|
+
init_cjs_shims();
|
|
4477
4513
|
init_src();
|
|
4478
4514
|
init_utils();
|
|
4479
4515
|
isAnalyzerModule = (module2) => {
|
|
@@ -4487,7 +4523,7 @@ var init_binding = __esm({
|
|
|
4487
4523
|
_state.bindingPromise = (async () => {
|
|
4488
4524
|
const runtimeDir = resolveRuntimeDir(
|
|
4489
4525
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4490
|
-
|
|
4526
|
+
importMetaUrl
|
|
4491
4527
|
);
|
|
4492
4528
|
const candidates = resolveNativeBindingCandidates({
|
|
4493
4529
|
runtimeDir,
|
|
@@ -4530,6 +4566,7 @@ var import_zod2, formatIssuePath3, isPlainObject, formatIssues2, parseWithSchema
|
|
|
4530
4566
|
var init_schemas2 = __esm({
|
|
4531
4567
|
"packages/domain/analyzer/src/schemas.ts"() {
|
|
4532
4568
|
"use strict";
|
|
4569
|
+
init_cjs_shims();
|
|
4533
4570
|
init_src();
|
|
4534
4571
|
import_zod2 = require("zod");
|
|
4535
4572
|
formatIssuePath3 = (path30) => path30.length > 0 ? path30.map(
|
|
@@ -4644,6 +4681,7 @@ var import_node_fs5, import_node_path6, import_node_url5, SUPPORTED_TAILWIND_CON
|
|
|
4644
4681
|
var init_semantic = __esm({
|
|
4645
4682
|
"packages/domain/analyzer/src/semantic.ts"() {
|
|
4646
4683
|
"use strict";
|
|
4684
|
+
init_cjs_shims();
|
|
4647
4685
|
import_node_fs5 = __toESM(require("fs"), 1);
|
|
4648
4686
|
import_node_path6 = __toESM(require("path"), 1);
|
|
4649
4687
|
import_node_url5 = require("url");
|
|
@@ -5064,6 +5102,7 @@ var import_node_path7;
|
|
|
5064
5102
|
var init_analyzeWorkspace = __esm({
|
|
5065
5103
|
"packages/domain/analyzer/src/analyzeWorkspace.ts"() {
|
|
5066
5104
|
"use strict";
|
|
5105
|
+
init_cjs_shims();
|
|
5067
5106
|
import_node_path7 = __toESM(require("path"), 1);
|
|
5068
5107
|
init_src2();
|
|
5069
5108
|
init_binding();
|
|
@@ -5078,6 +5117,7 @@ var normalizeClassInput, normalizeClassToCssOptions, mergeDeclarationMap, declar
|
|
|
5078
5117
|
var init_classToCss = __esm({
|
|
5079
5118
|
"packages/domain/analyzer/src/classToCss.ts"() {
|
|
5080
5119
|
"use strict";
|
|
5120
|
+
init_cjs_shims();
|
|
5081
5121
|
init_binding();
|
|
5082
5122
|
init_schemas2();
|
|
5083
5123
|
init_utils();
|
|
@@ -5199,6 +5239,7 @@ var __internal;
|
|
|
5199
5239
|
var init_src3 = __esm({
|
|
5200
5240
|
"packages/domain/analyzer/src/index.ts"() {
|
|
5201
5241
|
"use strict";
|
|
5242
|
+
init_cjs_shims();
|
|
5202
5243
|
init_analyzeWorkspace();
|
|
5203
5244
|
init_classToCss();
|
|
5204
5245
|
init_schemas2();
|
|
@@ -5260,6 +5301,7 @@ var import_promises, import_node_path8;
|
|
|
5260
5301
|
var init_fs = __esm({
|
|
5261
5302
|
"packages/infrastructure/cli/src/utils/fs.ts"() {
|
|
5262
5303
|
"use strict";
|
|
5304
|
+
init_cjs_shims();
|
|
5263
5305
|
import_promises = __toESM(require("fs/promises"), 1);
|
|
5264
5306
|
import_node_path8 = __toESM(require("path"), 1);
|
|
5265
5307
|
}
|
|
@@ -5269,6 +5311,7 @@ var init_fs = __esm({
|
|
|
5269
5311
|
var require_picocolors = __commonJS({
|
|
5270
5312
|
"node_modules/picocolors/picocolors.js"(exports2, module2) {
|
|
5271
5313
|
"use strict";
|
|
5314
|
+
init_cjs_shims();
|
|
5272
5315
|
var p = process || {};
|
|
5273
5316
|
var argv = p.argv || [];
|
|
5274
5317
|
var env = p.env || {};
|
|
@@ -5356,6 +5399,7 @@ function writeJsonSuccess(command, data) {
|
|
|
5356
5399
|
var init_json = __esm({
|
|
5357
5400
|
"packages/infrastructure/cli/src/utils/json.ts"() {
|
|
5358
5401
|
"use strict";
|
|
5402
|
+
init_cjs_shims();
|
|
5359
5403
|
}
|
|
5360
5404
|
});
|
|
5361
5405
|
|
|
@@ -5498,6 +5542,7 @@ var import_prompts, import_picocolors;
|
|
|
5498
5542
|
var init_output = __esm({
|
|
5499
5543
|
"packages/infrastructure/cli/src/utils/output.ts"() {
|
|
5500
5544
|
"use strict";
|
|
5545
|
+
init_cjs_shims();
|
|
5501
5546
|
import_prompts = require("@clack/prompts");
|
|
5502
5547
|
import_picocolors = __toESM(require_picocolors(), 1);
|
|
5503
5548
|
init_errors();
|
|
@@ -5547,13 +5592,14 @@ var import_node_util3;
|
|
|
5547
5592
|
var init_args = __esm({
|
|
5548
5593
|
"packages/infrastructure/cli/src/utils/args.ts"() {
|
|
5549
5594
|
"use strict";
|
|
5595
|
+
init_cjs_shims();
|
|
5550
5596
|
import_node_util3 = require("util");
|
|
5551
5597
|
}
|
|
5552
5598
|
});
|
|
5553
5599
|
|
|
5554
5600
|
// packages/infrastructure/cli/src/utils/paths.ts
|
|
5555
|
-
function runtimeDirFromImportMeta(
|
|
5556
|
-
const filename = (0, import_node_url6.fileURLToPath)(
|
|
5601
|
+
function runtimeDirFromImportMeta(importMetaUrl2) {
|
|
5602
|
+
const filename = (0, import_node_url6.fileURLToPath)(importMetaUrl2);
|
|
5557
5603
|
return import_node_path17.default.dirname(filename);
|
|
5558
5604
|
}
|
|
5559
5605
|
async function resolveMonorepoPath(runtimeDir, relativeToRepoRoot) {
|
|
@@ -5571,6 +5617,7 @@ var import_node_path17, import_node_url6;
|
|
|
5571
5617
|
var init_paths = __esm({
|
|
5572
5618
|
"packages/infrastructure/cli/src/utils/paths.ts"() {
|
|
5573
5619
|
"use strict";
|
|
5620
|
+
init_cjs_shims();
|
|
5574
5621
|
import_node_path17 = __toESM(require("path"), 1);
|
|
5575
5622
|
import_node_url6 = require("url");
|
|
5576
5623
|
init_errors();
|
|
@@ -5658,6 +5705,7 @@ var isCommanderLikeError, isHelpExit, isVersionExit, normalizeCliError, findComm
|
|
|
5658
5705
|
var init_runtime = __esm({
|
|
5659
5706
|
"packages/infrastructure/cli/src/utils/runtime.ts"() {
|
|
5660
5707
|
"use strict";
|
|
5708
|
+
init_cjs_shims();
|
|
5661
5709
|
init_args();
|
|
5662
5710
|
init_errors();
|
|
5663
5711
|
init_output();
|
|
@@ -6116,22 +6164,23 @@ function buildCreateProgram(context) {
|
|
|
6116
6164
|
async function main(rawArgs = process.argv.slice(2)) {
|
|
6117
6165
|
await runCliMain({
|
|
6118
6166
|
argv: [process.execPath, "create-tailwind-styled", ...rawArgs],
|
|
6119
|
-
importMetaUrl: typeof
|
|
6167
|
+
importMetaUrl: typeof import_meta4 !== "undefined" && importMetaUrl ? importMetaUrl : `file://${process.argv[1] ?? "unknown"}`,
|
|
6120
6168
|
commandHint: "create",
|
|
6121
6169
|
buildProgram: buildCreateProgram
|
|
6122
6170
|
});
|
|
6123
6171
|
}
|
|
6124
|
-
var import_node_path19, import_prompts4,
|
|
6172
|
+
var import_node_path19, import_prompts4, import_meta4, TEMPLATE_NAMES, TEMPLATES;
|
|
6125
6173
|
var init_createApp = __esm({
|
|
6126
6174
|
"packages/infrastructure/cli/src/createApp.ts"() {
|
|
6127
6175
|
"use strict";
|
|
6176
|
+
init_cjs_shims();
|
|
6128
6177
|
import_node_path19 = __toESM(require("path"), 1);
|
|
6129
6178
|
import_prompts4 = require("@clack/prompts");
|
|
6130
6179
|
init_esm();
|
|
6131
6180
|
init_errors();
|
|
6132
6181
|
init_fs();
|
|
6133
6182
|
init_runtime();
|
|
6134
|
-
|
|
6183
|
+
import_meta4 = {};
|
|
6135
6184
|
TEMPLATE_NAMES = ["next-app", "vite-react", "vite-vue", "vite-svelte", "simple"];
|
|
6136
6185
|
TEMPLATES = {
|
|
6137
6186
|
"next-app": createNextApp,
|
|
@@ -6148,6 +6197,7 @@ var _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttem
|
|
|
6148
6197
|
var init_nativeBridge = __esm({
|
|
6149
6198
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
6150
6199
|
"use strict";
|
|
6200
|
+
init_cjs_shims();
|
|
6151
6201
|
init_src();
|
|
6152
6202
|
_loadNative = (path30) => require(path30);
|
|
6153
6203
|
log3 = (...args) => {
|
|
@@ -6175,7 +6225,7 @@ var init_nativeBridge = __esm({
|
|
|
6175
6225
|
}
|
|
6176
6226
|
bridgeLoadAttempted = true;
|
|
6177
6227
|
try {
|
|
6178
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
6228
|
+
const runtimeDir = resolveRuntimeDir(void 0, importMetaUrl);
|
|
6179
6229
|
const result = resolveNativeBinary(runtimeDir);
|
|
6180
6230
|
if (result.path && result.path.endsWith(".node")) {
|
|
6181
6231
|
try {
|
|
@@ -6247,6 +6297,7 @@ Tried paths: ${result.tried.join("\n")}`);
|
|
|
6247
6297
|
var init_compiler = __esm({
|
|
6248
6298
|
"packages/domain/compiler/src/compiler/index.ts"() {
|
|
6249
6299
|
"use strict";
|
|
6300
|
+
init_cjs_shims();
|
|
6250
6301
|
}
|
|
6251
6302
|
});
|
|
6252
6303
|
|
|
@@ -6254,6 +6305,7 @@ var init_compiler = __esm({
|
|
|
6254
6305
|
var init_parser = __esm({
|
|
6255
6306
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
6256
6307
|
"use strict";
|
|
6308
|
+
init_cjs_shims();
|
|
6257
6309
|
}
|
|
6258
6310
|
});
|
|
6259
6311
|
|
|
@@ -6261,6 +6313,7 @@ var init_parser = __esm({
|
|
|
6261
6313
|
var init_analyzer = __esm({
|
|
6262
6314
|
"packages/domain/compiler/src/analyzer/index.ts"() {
|
|
6263
6315
|
"use strict";
|
|
6316
|
+
init_cjs_shims();
|
|
6264
6317
|
}
|
|
6265
6318
|
});
|
|
6266
6319
|
|
|
@@ -6268,6 +6321,7 @@ var init_analyzer = __esm({
|
|
|
6268
6321
|
var init_cache = __esm({
|
|
6269
6322
|
"packages/domain/compiler/src/cache/index.ts"() {
|
|
6270
6323
|
"use strict";
|
|
6324
|
+
init_cjs_shims();
|
|
6271
6325
|
}
|
|
6272
6326
|
});
|
|
6273
6327
|
|
|
@@ -6275,6 +6329,7 @@ var init_cache = __esm({
|
|
|
6275
6329
|
var init_redis = __esm({
|
|
6276
6330
|
"packages/domain/compiler/src/redis/index.ts"() {
|
|
6277
6331
|
"use strict";
|
|
6332
|
+
init_cjs_shims();
|
|
6278
6333
|
}
|
|
6279
6334
|
});
|
|
6280
6335
|
|
|
@@ -6282,6 +6337,7 @@ var init_redis = __esm({
|
|
|
6282
6337
|
var init_watch = __esm({
|
|
6283
6338
|
"packages/domain/compiler/src/watch/index.ts"() {
|
|
6284
6339
|
"use strict";
|
|
6340
|
+
init_cjs_shims();
|
|
6285
6341
|
}
|
|
6286
6342
|
});
|
|
6287
6343
|
|
|
@@ -6290,6 +6346,7 @@ var import_node_fs9, import_node_path24, import_node_module4, _require3, compile
|
|
|
6290
6346
|
var init_src4 = __esm({
|
|
6291
6347
|
"packages/domain/compiler/src/index.ts"() {
|
|
6292
6348
|
"use strict";
|
|
6349
|
+
init_cjs_shims();
|
|
6293
6350
|
import_node_fs9 = __toESM(require("fs"), 1);
|
|
6294
6351
|
import_node_path24 = __toESM(require("path"), 1);
|
|
6295
6352
|
import_node_module4 = require("module");
|
|
@@ -6301,7 +6358,7 @@ var init_src4 = __esm({
|
|
|
6301
6358
|
init_redis();
|
|
6302
6359
|
init_watch();
|
|
6303
6360
|
_require3 = (0, import_node_module4.createRequire)(
|
|
6304
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" :
|
|
6361
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : importMetaUrl
|
|
6305
6362
|
);
|
|
6306
6363
|
compileCssFromClasses = (classes, prefix) => {
|
|
6307
6364
|
const native = getNativeBridge();
|
|
@@ -6321,6 +6378,7 @@ var init_src4 = __esm({
|
|
|
6321
6378
|
var init_internal = __esm({
|
|
6322
6379
|
"packages/domain/compiler/src/internal.ts"() {
|
|
6323
6380
|
"use strict";
|
|
6381
|
+
init_cjs_shims();
|
|
6324
6382
|
init_src4();
|
|
6325
6383
|
init_compiler();
|
|
6326
6384
|
init_parser();
|
|
@@ -6340,18 +6398,23 @@ __export(cli_exports, {
|
|
|
6340
6398
|
runScanCli: () => runScanCli
|
|
6341
6399
|
});
|
|
6342
6400
|
module.exports = __toCommonJS(cli_exports);
|
|
6401
|
+
init_cjs_shims();
|
|
6343
6402
|
|
|
6344
6403
|
// packages/infrastructure/cli/src/index.ts
|
|
6404
|
+
init_cjs_shims();
|
|
6345
6405
|
var import_node_url8 = require("url");
|
|
6346
6406
|
|
|
6347
6407
|
// packages/infrastructure/cli/src/commands/program.ts
|
|
6408
|
+
init_cjs_shims();
|
|
6348
6409
|
init_esm();
|
|
6349
6410
|
|
|
6350
6411
|
// packages/infrastructure/cli/src/analyze.ts
|
|
6412
|
+
init_cjs_shims();
|
|
6351
6413
|
var import_node_path9 = __toESM(require("path"), 1);
|
|
6352
6414
|
var import_node_util = require("util");
|
|
6353
6415
|
|
|
6354
6416
|
// packages/infrastructure/cli/src/utils/analyzer.ts
|
|
6417
|
+
init_cjs_shims();
|
|
6355
6418
|
init_errors();
|
|
6356
6419
|
async function loadAnalyzerModule() {
|
|
6357
6420
|
try {
|
|
@@ -6441,6 +6504,7 @@ async function runAnalyzeCli(args) {
|
|
|
6441
6504
|
}
|
|
6442
6505
|
|
|
6443
6506
|
// packages/infrastructure/cli/src/extract.ts
|
|
6507
|
+
init_cjs_shims();
|
|
6444
6508
|
var import_node_path10 = __toESM(require("path"), 1);
|
|
6445
6509
|
var import_node_util2 = require("util");
|
|
6446
6510
|
init_errors();
|
|
@@ -6537,6 +6601,7 @@ async function runExtractCli(args) {
|
|
|
6537
6601
|
}
|
|
6538
6602
|
|
|
6539
6603
|
// packages/infrastructure/cli/src/init.ts
|
|
6604
|
+
init_cjs_shims();
|
|
6540
6605
|
var import_node_path11 = __toESM(require("path"), 1);
|
|
6541
6606
|
init_fs();
|
|
6542
6607
|
init_output();
|
|
@@ -6595,10 +6660,12 @@ async function runInitCli(rawArgs) {
|
|
|
6595
6660
|
}
|
|
6596
6661
|
|
|
6597
6662
|
// packages/infrastructure/cli/src/migrate.ts
|
|
6663
|
+
init_cjs_shims();
|
|
6598
6664
|
var import_promises2 = __toESM(require("fs/promises"), 1);
|
|
6599
6665
|
var import_node_path12 = __toESM(require("path"), 1);
|
|
6600
6666
|
|
|
6601
6667
|
// packages/infrastructure/cli/src/migrateWizard.ts
|
|
6668
|
+
init_cjs_shims();
|
|
6602
6669
|
var import_prompts2 = require("@clack/prompts");
|
|
6603
6670
|
init_errors();
|
|
6604
6671
|
async function runMigrationWizard() {
|
|
@@ -6746,6 +6813,7 @@ async function runMigrateCli(rawArgs) {
|
|
|
6746
6813
|
}
|
|
6747
6814
|
|
|
6748
6815
|
// packages/infrastructure/cli/src/scan.ts
|
|
6816
|
+
init_cjs_shims();
|
|
6749
6817
|
var import_node_fs6 = __toESM(require("fs"), 1);
|
|
6750
6818
|
var import_node_path13 = __toESM(require("path"), 1);
|
|
6751
6819
|
init_src2();
|
|
@@ -6857,10 +6925,12 @@ Scan root : ${result.root}`);
|
|
|
6857
6925
|
}
|
|
6858
6926
|
|
|
6859
6927
|
// packages/infrastructure/cli/src/setup.ts
|
|
6928
|
+
init_cjs_shims();
|
|
6860
6929
|
var import_node_path15 = __toESM(require("path"), 1);
|
|
6861
6930
|
var import_picocolors3 = __toESM(require_picocolors(), 1);
|
|
6862
6931
|
|
|
6863
6932
|
// packages/infrastructure/cli/src/commands/setup/patchers.ts
|
|
6933
|
+
init_cjs_shims();
|
|
6864
6934
|
function patchNextConfigImpl(src) {
|
|
6865
6935
|
if (src.includes("withTailwindStyled")) return null;
|
|
6866
6936
|
const hasExport = src.includes("export default");
|
|
@@ -7053,6 +7123,7 @@ function patchTsConfigImpl(src) {
|
|
|
7053
7123
|
}
|
|
7054
7124
|
|
|
7055
7125
|
// packages/infrastructure/cli/src/commands/setup/prompt.ts
|
|
7126
|
+
init_cjs_shims();
|
|
7056
7127
|
var import_prompts3 = require("@clack/prompts");
|
|
7057
7128
|
init_errors();
|
|
7058
7129
|
async function pickProjectTypeInteractive(detected, flags, projectOptions, options = {}) {
|
|
@@ -7104,10 +7175,12 @@ async function pickProjectTypeInteractive(detected, flags, projectOptions, optio
|
|
|
7104
7175
|
}
|
|
7105
7176
|
|
|
7106
7177
|
// packages/infrastructure/cli/src/commands/setup/workspace.ts
|
|
7178
|
+
init_cjs_shims();
|
|
7107
7179
|
var import_node_path14 = __toESM(require("path"), 1);
|
|
7108
7180
|
init_fs();
|
|
7109
7181
|
|
|
7110
7182
|
// packages/infrastructure/cli/src/utils/process.ts
|
|
7183
|
+
init_cjs_shims();
|
|
7111
7184
|
var import_node_child_process = require("child_process");
|
|
7112
7185
|
init_errors();
|
|
7113
7186
|
init_json();
|
|
@@ -7356,6 +7429,7 @@ async function installPackages(cwd2, pm, pkgs, dev, flags, logger) {
|
|
|
7356
7429
|
}
|
|
7357
7430
|
|
|
7358
7431
|
// packages/infrastructure/cli/src/utils/logger.ts
|
|
7432
|
+
init_cjs_shims();
|
|
7359
7433
|
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
7360
7434
|
function createCliLogger(options = {}) {
|
|
7361
7435
|
function emit(level, icon, colorize, message) {
|
|
@@ -7564,6 +7638,7 @@ var runSetupCli = async (rawArgs) => {
|
|
|
7564
7638
|
};
|
|
7565
7639
|
|
|
7566
7640
|
// packages/infrastructure/cli/src/stats.ts
|
|
7641
|
+
init_cjs_shims();
|
|
7567
7642
|
var import_node_path16 = __toESM(require("path"), 1);
|
|
7568
7643
|
var import_node_util4 = require("util");
|
|
7569
7644
|
init_errors();
|
|
@@ -7656,6 +7731,7 @@ async function runStatsCli(args) {
|
|
|
7656
7731
|
init_runtime();
|
|
7657
7732
|
|
|
7658
7733
|
// packages/infrastructure/cli/src/commands/boundary.ts
|
|
7734
|
+
init_cjs_shims();
|
|
7659
7735
|
var import_node_fs7 = require("fs");
|
|
7660
7736
|
var import_node_path18 = require("path");
|
|
7661
7737
|
var import_node_util5 = require("util");
|
|
@@ -7781,6 +7857,7 @@ var boundaryCommand = {
|
|
|
7781
7857
|
};
|
|
7782
7858
|
|
|
7783
7859
|
// packages/infrastructure/cli/src/commands/create.ts
|
|
7860
|
+
init_cjs_shims();
|
|
7784
7861
|
init_args();
|
|
7785
7862
|
var createCommand2 = {
|
|
7786
7863
|
name: "create",
|
|
@@ -7792,11 +7869,13 @@ var createCommand2 = {
|
|
|
7792
7869
|
};
|
|
7793
7870
|
|
|
7794
7871
|
// packages/infrastructure/cli/src/commands/dashboard.ts
|
|
7872
|
+
init_cjs_shims();
|
|
7795
7873
|
var import_node_util6 = require("util");
|
|
7796
7874
|
init_errors();
|
|
7797
7875
|
init_fs();
|
|
7798
7876
|
|
|
7799
7877
|
// packages/infrastructure/cli/src/commands/helpers.ts
|
|
7878
|
+
init_cjs_shims();
|
|
7800
7879
|
var import_promises3 = __toESM(require("fs/promises"), 1);
|
|
7801
7880
|
var import_node_path20 = __toESM(require("path"), 1);
|
|
7802
7881
|
init_errors();
|
|
@@ -7886,6 +7965,7 @@ var dashboardCommand = {
|
|
|
7886
7965
|
};
|
|
7887
7966
|
|
|
7888
7967
|
// packages/infrastructure/cli/src/commands/deploy.ts
|
|
7968
|
+
init_cjs_shims();
|
|
7889
7969
|
var import_promises4 = __toESM(require("fs/promises"), 1);
|
|
7890
7970
|
var import_node_path21 = __toESM(require("path"), 1);
|
|
7891
7971
|
var import_node_util7 = require("util");
|
|
@@ -8045,10 +8125,12 @@ var deployCommand = {
|
|
|
8045
8125
|
};
|
|
8046
8126
|
|
|
8047
8127
|
// packages/infrastructure/cli/src/commands/doctor.ts
|
|
8128
|
+
init_cjs_shims();
|
|
8048
8129
|
var import_node_util8 = require("util");
|
|
8049
8130
|
var import_picocolors4 = __toESM(require_picocolors(), 1);
|
|
8050
8131
|
|
|
8051
8132
|
// packages/infrastructure/cli/src/utils/doctorService.ts
|
|
8133
|
+
init_cjs_shims();
|
|
8052
8134
|
var import_node_fs8 = __toESM(require("fs"), 1);
|
|
8053
8135
|
var import_node_path22 = __toESM(require("path"), 1);
|
|
8054
8136
|
init_src3();
|
|
@@ -8590,6 +8672,7 @@ function printDoctorOutput(result, output) {
|
|
|
8590
8672
|
}
|
|
8591
8673
|
|
|
8592
8674
|
// packages/infrastructure/cli/src/commands/misc.ts
|
|
8675
|
+
init_cjs_shims();
|
|
8593
8676
|
var import_node_path23 = __toESM(require("path"), 1);
|
|
8594
8677
|
var import_node_util9 = require("util");
|
|
8595
8678
|
init_errors();
|
|
@@ -8867,6 +8950,7 @@ var miscCommands = [
|
|
|
8867
8950
|
];
|
|
8868
8951
|
|
|
8869
8952
|
// packages/infrastructure/cli/src/commands/plugin.ts
|
|
8953
|
+
init_cjs_shims();
|
|
8870
8954
|
init_errors();
|
|
8871
8955
|
init_json();
|
|
8872
8956
|
var pluginCommand = {
|
|
@@ -8953,7 +9037,11 @@ var pluginCommand = {
|
|
|
8953
9037
|
}
|
|
8954
9038
|
};
|
|
8955
9039
|
|
|
9040
|
+
// packages/infrastructure/cli/src/commands/preflight.ts
|
|
9041
|
+
init_cjs_shims();
|
|
9042
|
+
|
|
8956
9043
|
// packages/infrastructure/cli/src/preflight.ts
|
|
9044
|
+
init_cjs_shims();
|
|
8957
9045
|
var import_node_path25 = __toESM(require("path"), 1);
|
|
8958
9046
|
var import_node_url7 = require("url");
|
|
8959
9047
|
init_args();
|
|
@@ -8961,7 +9049,7 @@ init_errors();
|
|
|
8961
9049
|
init_fs();
|
|
8962
9050
|
init_json();
|
|
8963
9051
|
init_src4();
|
|
8964
|
-
var
|
|
9052
|
+
var import_meta5 = {};
|
|
8965
9053
|
var DEFAULT_TAILWIND_CSS2 = '@import "tailwindcss";\n';
|
|
8966
9054
|
var DEFAULT_TW_CONFIG = `${JSON.stringify(
|
|
8967
9055
|
{
|
|
@@ -9272,7 +9360,7 @@ async function runPreflightCli(rawArgs) {
|
|
|
9272
9360
|
function isDirectExecution() {
|
|
9273
9361
|
const scriptPath = process.argv[1];
|
|
9274
9362
|
if (!scriptPath) return false;
|
|
9275
|
-
const currentUrl = typeof
|
|
9363
|
+
const currentUrl = typeof import_meta5 !== "undefined" && importMetaUrl ? importMetaUrl : `file://${scriptPath}`;
|
|
9276
9364
|
return currentUrl === (0, import_node_url7.pathToFileURL)(scriptPath).href;
|
|
9277
9365
|
}
|
|
9278
9366
|
if (isDirectExecution()) {
|
|
@@ -9304,6 +9392,7 @@ var preflightCommand = {
|
|
|
9304
9392
|
};
|
|
9305
9393
|
|
|
9306
9394
|
// packages/infrastructure/cli/src/commands/registry.ts
|
|
9395
|
+
init_cjs_shims();
|
|
9307
9396
|
init_errors();
|
|
9308
9397
|
var registryCommand = {
|
|
9309
9398
|
name: "registry",
|
|
@@ -9341,6 +9430,7 @@ var installRegistryCommand = {
|
|
|
9341
9430
|
};
|
|
9342
9431
|
|
|
9343
9432
|
// packages/infrastructure/cli/src/commands/scriptCommands.ts
|
|
9433
|
+
init_cjs_shims();
|
|
9344
9434
|
var import_node_util10 = require("util");
|
|
9345
9435
|
init_errors();
|
|
9346
9436
|
async function runScriptCommand(commandName, context, relativeScriptPath, args, options = {}) {
|
|
@@ -9552,6 +9642,7 @@ var scriptCommands = [
|
|
|
9552
9642
|
];
|
|
9553
9643
|
|
|
9554
9644
|
// packages/infrastructure/cli/src/commands/storybook.ts
|
|
9645
|
+
init_cjs_shims();
|
|
9555
9646
|
var import_node_path26 = __toESM(require("path"), 1);
|
|
9556
9647
|
var import_node_util11 = require("util");
|
|
9557
9648
|
init_errors();
|
|
@@ -9611,6 +9702,7 @@ var storybookCommand = {
|
|
|
9611
9702
|
};
|
|
9612
9703
|
|
|
9613
9704
|
// packages/infrastructure/cli/src/commands/studio.ts
|
|
9705
|
+
init_cjs_shims();
|
|
9614
9706
|
var import_node_util12 = require("util");
|
|
9615
9707
|
init_errors();
|
|
9616
9708
|
var studioCommand = {
|
|
@@ -9644,6 +9736,7 @@ var studioCommand = {
|
|
|
9644
9736
|
};
|
|
9645
9737
|
|
|
9646
9738
|
// packages/infrastructure/cli/src/commands/sync.ts
|
|
9739
|
+
init_cjs_shims();
|
|
9647
9740
|
init_errors();
|
|
9648
9741
|
var syncCommand = {
|
|
9649
9742
|
name: "sync",
|
|
@@ -9685,21 +9778,30 @@ var syncCommand = {
|
|
|
9685
9778
|
};
|
|
9686
9779
|
|
|
9687
9780
|
// packages/infrastructure/cli/src/commands/trace.ts
|
|
9781
|
+
init_cjs_shims();
|
|
9688
9782
|
var import_node_util13 = require("util");
|
|
9689
9783
|
var import_picocolors5 = __toESM(require_picocolors(), 1);
|
|
9690
9784
|
init_errors();
|
|
9691
9785
|
|
|
9692
9786
|
// packages/infrastructure/cli/src/utils/traceService.ts
|
|
9787
|
+
init_cjs_shims();
|
|
9693
9788
|
init_internal();
|
|
9694
9789
|
|
|
9790
|
+
// packages/domain/engine/src/internal.ts
|
|
9791
|
+
init_cjs_shims();
|
|
9792
|
+
|
|
9793
|
+
// packages/domain/engine/src/bundleAnalyzer.ts
|
|
9794
|
+
init_cjs_shims();
|
|
9795
|
+
|
|
9695
9796
|
// packages/domain/engine/src/native-bridge.ts
|
|
9797
|
+
init_cjs_shims();
|
|
9696
9798
|
init_src();
|
|
9697
|
-
var
|
|
9799
|
+
var import_meta6 = {};
|
|
9698
9800
|
var log4 = createDebugLogger("engine:native");
|
|
9699
9801
|
function getDirname3() {
|
|
9700
9802
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
9701
|
-
if (typeof
|
|
9702
|
-
return getDirname(
|
|
9803
|
+
if (typeof import_meta6 !== "undefined" && importMetaUrl) {
|
|
9804
|
+
return getDirname(importMetaUrl);
|
|
9703
9805
|
}
|
|
9704
9806
|
return process.cwd();
|
|
9705
9807
|
}
|
|
@@ -9874,6 +9976,7 @@ var BundleAnalyzer = class {
|
|
|
9874
9976
|
};
|
|
9875
9977
|
|
|
9876
9978
|
// packages/domain/engine/src/impactTracker.ts
|
|
9979
|
+
init_cjs_shims();
|
|
9877
9980
|
var ImpactTracker = class {
|
|
9878
9981
|
bundleAnalyzer;
|
|
9879
9982
|
constructor() {
|
|
@@ -10058,6 +10161,7 @@ var ImpactTracker = class {
|
|
|
10058
10161
|
};
|
|
10059
10162
|
|
|
10060
10163
|
// packages/domain/engine/src/ir.ts
|
|
10164
|
+
init_cjs_shims();
|
|
10061
10165
|
var RuleId = class {
|
|
10062
10166
|
constructor(value) {
|
|
10063
10167
|
this.value = value;
|
|
@@ -10187,6 +10291,7 @@ function createFingerprint(parts) {
|
|
|
10187
10291
|
}
|
|
10188
10292
|
|
|
10189
10293
|
// packages/domain/engine/src/reverseLookup.ts
|
|
10294
|
+
init_cjs_shims();
|
|
10190
10295
|
function getNative() {
|
|
10191
10296
|
const native = getNativeEngineBinding();
|
|
10192
10297
|
if (!native?.reverseLookupFromCss || !native?.reverseLookupByProperty || !native?.reverseLookupFindDependents) {
|
|
@@ -10261,6 +10366,7 @@ var ReverseLookup = class {
|
|
|
10261
10366
|
};
|
|
10262
10367
|
|
|
10263
10368
|
// packages/domain/engine/src/resolver.ts
|
|
10369
|
+
init_cjs_shims();
|
|
10264
10370
|
function toNativeInput(rule) {
|
|
10265
10371
|
return {
|
|
10266
10372
|
id: rule.id.value,
|
|
@@ -10378,6 +10484,7 @@ var CascadeResolver = class {
|
|
|
10378
10484
|
};
|
|
10379
10485
|
|
|
10380
10486
|
// packages/domain/engine/src/cssToIr.ts
|
|
10487
|
+
init_cjs_shims();
|
|
10381
10488
|
function createIdGenerator() {
|
|
10382
10489
|
const state = {
|
|
10383
10490
|
ruleIdCounter: 0,
|
|
@@ -10550,6 +10657,7 @@ function _parseCssToIrFallback(css, prefix, native) {
|
|
|
10550
10657
|
}
|
|
10551
10658
|
|
|
10552
10659
|
// packages/domain/engine/src/trace.ts
|
|
10660
|
+
init_cjs_shims();
|
|
10553
10661
|
function buildProvenanceChain(className) {
|
|
10554
10662
|
return {
|
|
10555
10663
|
className,
|
|
@@ -10762,6 +10870,7 @@ async function traceClass(className, options) {
|
|
|
10762
10870
|
}
|
|
10763
10871
|
|
|
10764
10872
|
// packages/infrastructure/cli/src/utils/traceTargetService.ts
|
|
10873
|
+
init_cjs_shims();
|
|
10765
10874
|
var import_node_fs10 = __toESM(require("fs"), 1);
|
|
10766
10875
|
var import_node_path27 = __toESM(require("path"), 1);
|
|
10767
10876
|
init_internal();
|
|
@@ -11065,6 +11174,7 @@ function printClassTraceOutput(result, output) {
|
|
|
11065
11174
|
}
|
|
11066
11175
|
|
|
11067
11176
|
// packages/infrastructure/cli/src/generateTypes.ts
|
|
11177
|
+
init_cjs_shims();
|
|
11068
11178
|
var import_node_fs11 = __toESM(require("fs"), 1);
|
|
11069
11179
|
var import_node_path28 = __toESM(require("path"), 1);
|
|
11070
11180
|
var import_picocolors6 = __toESM(require_picocolors(), 1);
|
|
@@ -11141,10 +11251,12 @@ async function loadNativeBinding2(cwd2) {
|
|
|
11141
11251
|
}
|
|
11142
11252
|
|
|
11143
11253
|
// packages/infrastructure/cli/src/commands/why.ts
|
|
11254
|
+
init_cjs_shims();
|
|
11144
11255
|
var import_node_util14 = require("util");
|
|
11145
11256
|
init_errors();
|
|
11146
11257
|
|
|
11147
11258
|
// packages/infrastructure/cli/src/utils/whyService.ts
|
|
11259
|
+
init_cjs_shims();
|
|
11148
11260
|
var import_node_fs12 = __toESM(require("fs"), 1);
|
|
11149
11261
|
var import_node_path29 = __toESM(require("path"), 1);
|
|
11150
11262
|
init_internal();
|
|
@@ -11669,11 +11781,11 @@ init_args();
|
|
|
11669
11781
|
init_output();
|
|
11670
11782
|
async function main2() {
|
|
11671
11783
|
await runCliMain({
|
|
11672
|
-
importMetaUrl
|
|
11784
|
+
importMetaUrl,
|
|
11673
11785
|
buildProgram: buildMainProgram
|
|
11674
11786
|
});
|
|
11675
11787
|
}
|
|
11676
|
-
var __currentFile = (0, import_node_url8.fileURLToPath)(
|
|
11788
|
+
var __currentFile = (0, import_node_url8.fileURLToPath)(importMetaUrl);
|
|
11677
11789
|
if (process.argv[1] === __currentFile) {
|
|
11678
11790
|
main2();
|
|
11679
11791
|
}
|