tailwind-styled-v4 5.0.40 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyzer.js +43 -16
- package/dist/analyzer.js.map +1 -1
- package/dist/analyzer.mjs +104 -72
- package/dist/analyzer.mjs.map +1 -1
- package/dist/animate.js +33 -7
- package/dist/animate.js.map +1 -1
- package/dist/animate.mjs +55 -22
- package/dist/animate.mjs.map +1 -1
- package/dist/atomic.js +39 -10
- package/dist/atomic.js.map +1 -1
- package/dist/atomic.mjs +56 -23
- package/dist/atomic.mjs.map +1 -1
- package/dist/cli.js +222 -38
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +321 -203
- package/dist/cli.mjs.map +1 -1
- package/dist/compiler.js +57 -14
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs +71 -28
- package/dist/compiler.mjs.map +1 -1
- package/dist/dashboard.js +0 -1
- package/dist/dashboard.js.map +1 -1
- package/dist/devtools.js +16 -2
- package/dist/devtools.js.map +1 -1
- package/dist/devtools.mjs +21 -2
- package/dist/devtools.mjs.map +1 -1
- package/dist/engine.js +141 -51
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs +238 -148
- package/dist/engine.mjs.map +1 -1
- package/dist/index.js +50 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -29
- package/dist/index.mjs.map +1 -1
- package/dist/next.js +98 -37
- package/dist/next.js.map +1 -1
- package/dist/next.mjs +177 -115
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.js +0 -1
- package/dist/plugin-api.js.map +1 -1
- package/dist/plugin-registry.js +6 -2
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +9 -2
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.js +0 -1
- package/dist/plugin.js.map +1 -1
- package/dist/preset.js +0 -1
- package/dist/preset.js.map +1 -1
- package/dist/rspack.js +89 -6
- package/dist/rspack.js.map +1 -1
- package/dist/rspack.mjs +39 -18
- package/dist/rspack.mjs.map +1 -1
- package/dist/runtime-css.js +0 -1
- package/dist/runtime-css.js.map +1 -1
- package/dist/runtime.js +0 -1
- package/dist/runtime.js.map +1 -1
- package/dist/scanner.js +29 -11
- package/dist/scanner.js.map +1 -1
- package/dist/scanner.mjs +84 -61
- package/dist/scanner.mjs.map +1 -1
- package/dist/shared.js +91 -35
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs +122 -64
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.js +0 -1
- package/dist/storybook-addon.js.map +1 -1
- package/dist/svelte.js +40 -8
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +57 -28
- package/dist/svelte.mjs.map +1 -1
- package/dist/syntax.js +7 -3
- package/dist/syntax.js.map +1 -1
- package/dist/syntax.mjs +30 -23
- package/dist/syntax.mjs.map +1 -1
- package/dist/testing.js +0 -1
- package/dist/testing.js.map +1 -1
- package/dist/theme.js +23 -5
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +41 -17
- package/dist/theme.mjs.map +1 -1
- package/dist/turbopackLoader.js +58 -14
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs +89 -45
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/tw.js +224 -38
- package/dist/tw.js.map +1 -1
- package/dist/tw.mjs +321 -203
- package/dist/tw.mjs.map +1 -1
- package/dist/vite.js +132 -50
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +226 -143
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.js +40 -8
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +57 -28
- package/dist/vue.mjs.map +1 -1
- package/dist/webpackLoader.js +40 -10
- package/dist/webpackLoader.js.map +1 -1
- package/dist/webpackLoader.mjs +59 -27
- package/dist/webpackLoader.mjs.map +1 -1
- package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
- package/native/tailwind-styled-native.node +0 -0
- package/package.json +1 -1
package/dist/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;
|
|
@@ -3105,15 +3123,91 @@ var init_errors = __esm({
|
|
|
3105
3123
|
}
|
|
3106
3124
|
});
|
|
3107
3125
|
|
|
3126
|
+
// packages/domain/shared/src/esmHelpers.ts
|
|
3127
|
+
function getNodeModuleRef() {
|
|
3128
|
+
if (isBrowser) return null;
|
|
3129
|
+
if (nodeModuleRef !== null) return nodeModuleRef;
|
|
3130
|
+
try {
|
|
3131
|
+
const test = typeof require === "function" ? require("module") : null;
|
|
3132
|
+
nodeModuleRef = test;
|
|
3133
|
+
return test;
|
|
3134
|
+
} catch {
|
|
3135
|
+
nodeModuleRef = null;
|
|
3136
|
+
return null;
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
function getCurrentFileUrl() {
|
|
3140
|
+
if (importMetaUrl) {
|
|
3141
|
+
return importMetaUrl;
|
|
3142
|
+
}
|
|
3143
|
+
if (typeof __filename !== "undefined") {
|
|
3144
|
+
return `file://${__filename.replace(/\\/g, "/")}`;
|
|
3145
|
+
}
|
|
3146
|
+
return "file://unknown";
|
|
3147
|
+
}
|
|
3148
|
+
function getNodePath() {
|
|
3149
|
+
if (isBrowser) throw new Error("node:path not available in browser");
|
|
3150
|
+
if (!_nodePath) {
|
|
3151
|
+
if (typeof require === "function") {
|
|
3152
|
+
_nodePath = require("path");
|
|
3153
|
+
} else {
|
|
3154
|
+
const nodeRequire = getNodeModuleRef();
|
|
3155
|
+
if (!nodeRequire) throw new Error("require not available");
|
|
3156
|
+
_nodePath = nodeRequire.createRequire(getCurrentFileUrl())("node:path");
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
return _nodePath;
|
|
3160
|
+
}
|
|
3161
|
+
function getNodeUrl() {
|
|
3162
|
+
if (isBrowser) throw new Error("node:url not available in browser");
|
|
3163
|
+
if (!_nodeUrl) {
|
|
3164
|
+
if (typeof require === "function") {
|
|
3165
|
+
_nodeUrl = require("url");
|
|
3166
|
+
} else {
|
|
3167
|
+
const nodeRequire = getNodeModuleRef();
|
|
3168
|
+
if (!nodeRequire) throw new Error("require not available");
|
|
3169
|
+
_nodeUrl = nodeRequire.createRequire(getCurrentFileUrl())("node:url");
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
return _nodeUrl;
|
|
3173
|
+
}
|
|
3174
|
+
function getDirname(importMetaUrl2) {
|
|
3175
|
+
if (isBrowser) return "";
|
|
3176
|
+
if (typeof __dirname !== "undefined") return __dirname;
|
|
3177
|
+
const nodePath = getNodePath();
|
|
3178
|
+
const nodeUrl = getNodeUrl();
|
|
3179
|
+
return nodePath.dirname(nodeUrl.fileURLToPath(importMetaUrl2));
|
|
3180
|
+
}
|
|
3181
|
+
var isBrowser, nodeModuleRef, _nodePath, _nodeUrl;
|
|
3182
|
+
var init_esmHelpers = __esm({
|
|
3183
|
+
"packages/domain/shared/src/esmHelpers.ts"() {
|
|
3184
|
+
"use strict";
|
|
3185
|
+
init_cjs_shims();
|
|
3186
|
+
isBrowser = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3187
|
+
nodeModuleRef = null;
|
|
3188
|
+
_nodePath = null;
|
|
3189
|
+
_nodeUrl = null;
|
|
3190
|
+
}
|
|
3191
|
+
});
|
|
3192
|
+
|
|
3108
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
|
+
}
|
|
3109
3203
|
function platformKey() {
|
|
3110
|
-
if (
|
|
3204
|
+
if (isBrowser2) return "browser";
|
|
3111
3205
|
return `${process.platform}-${process.arch}`;
|
|
3112
3206
|
}
|
|
3113
3207
|
function resolveNativeBinary(runtimeDir) {
|
|
3114
3208
|
const platform = platformKey();
|
|
3115
3209
|
const tried = [];
|
|
3116
|
-
if (
|
|
3210
|
+
if (isBrowser2) {
|
|
3117
3211
|
return { path: null, source: "not-found", platform, tried: ["not available in browser"] };
|
|
3118
3212
|
}
|
|
3119
3213
|
if (process.env.TWS_NO_NATIVE === "1" || process.env.TWS_DISABLE_NATIVE === "1") {
|
|
@@ -3187,17 +3281,17 @@ function resolveNativeBinary(runtimeDir) {
|
|
|
3187
3281
|
}
|
|
3188
3282
|
return { path: null, source: "not-found", platform, tried };
|
|
3189
3283
|
}
|
|
3190
|
-
var import_node_module, fs, path,
|
|
3284
|
+
var import_node_module, fs, path, import_meta, isBrowser2, _require, PLATFORM_MAP;
|
|
3191
3285
|
var init_native_resolution = __esm({
|
|
3192
3286
|
"packages/domain/shared/src/native-resolution.ts"() {
|
|
3193
3287
|
"use strict";
|
|
3288
|
+
init_cjs_shims();
|
|
3194
3289
|
import_node_module = require("module");
|
|
3195
3290
|
fs = __toESM(require("fs"));
|
|
3196
3291
|
path = __toESM(require("path"));
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
);
|
|
3292
|
+
import_meta = {};
|
|
3293
|
+
isBrowser2 = typeof window !== "undefined" || typeof document !== "undefined";
|
|
3294
|
+
_require = _safeCreateRequire();
|
|
3201
3295
|
PLATFORM_MAP = {
|
|
3202
3296
|
"linux-x64": ["@tailwind-styled/native-linux-x64-gnu", "@tailwind-styled/native-linux-x64"],
|
|
3203
3297
|
"linux-arm64": ["@tailwind-styled/native-linux-arm64-gnu", "@tailwind-styled/native-linux-arm64"],
|
|
@@ -3309,10 +3403,10 @@ function resolveNativeBindingCandidates(options) {
|
|
|
3309
3403
|
}
|
|
3310
3404
|
return Array.from(new Set(candidates));
|
|
3311
3405
|
}
|
|
3312
|
-
function resolveRuntimeDir(dir,
|
|
3406
|
+
function resolveRuntimeDir(dir, importMetaUrl2) {
|
|
3313
3407
|
if (dir) return import_node_path.default.resolve(dir);
|
|
3314
3408
|
try {
|
|
3315
|
-
return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(
|
|
3409
|
+
return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl2));
|
|
3316
3410
|
} catch {
|
|
3317
3411
|
return process.cwd();
|
|
3318
3412
|
}
|
|
@@ -3321,11 +3415,13 @@ var import_node_crypto, import_node_fs, import_node_path, import_node_url, impor
|
|
|
3321
3415
|
var init_src = __esm({
|
|
3322
3416
|
"packages/domain/shared/src/index.ts"() {
|
|
3323
3417
|
"use strict";
|
|
3418
|
+
init_cjs_shims();
|
|
3324
3419
|
import_node_crypto = require("crypto");
|
|
3325
3420
|
import_node_fs = __toESM(require("fs"));
|
|
3326
3421
|
import_node_path = __toESM(require("path"));
|
|
3327
3422
|
import_node_url = require("url");
|
|
3328
3423
|
import_node_module2 = require("module");
|
|
3424
|
+
init_esmHelpers();
|
|
3329
3425
|
init_native_resolution();
|
|
3330
3426
|
TwError = class _TwError extends Error {
|
|
3331
3427
|
/** @deprecated Gunakan source */
|
|
@@ -3380,7 +3476,7 @@ var init_src = __esm({
|
|
|
3380
3476
|
}
|
|
3381
3477
|
};
|
|
3382
3478
|
_require2 = (0, import_node_module2.createRequire)(
|
|
3383
|
-
typeof __filename !== "undefined" ? `file://${__filename}` :
|
|
3479
|
+
typeof __filename !== "undefined" ? `file://${__filename}` : importMetaUrl ?? "file://unknown"
|
|
3384
3480
|
);
|
|
3385
3481
|
}
|
|
3386
3482
|
});
|
|
@@ -3414,12 +3510,12 @@ __export(native_bridge_exports, {
|
|
|
3414
3510
|
startWatchNative: () => startWatchNative,
|
|
3415
3511
|
stopWatchNative: () => stopWatchNative
|
|
3416
3512
|
});
|
|
3417
|
-
function
|
|
3513
|
+
function getDirname2() {
|
|
3418
3514
|
if (typeof __dirname !== "undefined") {
|
|
3419
3515
|
return __dirname;
|
|
3420
3516
|
}
|
|
3421
|
-
if (
|
|
3422
|
-
return
|
|
3517
|
+
if (typeof import_meta2 !== "undefined" && importMetaUrl) {
|
|
3518
|
+
return import_node_path2.default.dirname((0, import_node_url2.fileURLToPath)(importMetaUrl));
|
|
3423
3519
|
}
|
|
3424
3520
|
return process.cwd();
|
|
3425
3521
|
}
|
|
@@ -3624,13 +3720,15 @@ function hasNativeWatchBinding() {
|
|
|
3624
3720
|
return false;
|
|
3625
3721
|
}
|
|
3626
3722
|
}
|
|
3627
|
-
var import_node_path2, import_node_url2, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3723
|
+
var import_node_path2, import_node_url2, import_meta2, log, isValidScannerBinding, createScannerBridgeLoader, scannerBridgeLoader, scannerGetBinding, resetScannerBridgeCache;
|
|
3628
3724
|
var init_native_bridge = __esm({
|
|
3629
3725
|
"packages/domain/scanner/src/native-bridge.ts"() {
|
|
3630
3726
|
"use strict";
|
|
3631
|
-
|
|
3727
|
+
init_cjs_shims();
|
|
3728
|
+
import_node_path2 = __toESM(require("path"), 1);
|
|
3632
3729
|
import_node_url2 = require("url");
|
|
3633
3730
|
init_src();
|
|
3731
|
+
import_meta2 = {};
|
|
3634
3732
|
log = createDebugLogger("scanner:native");
|
|
3635
3733
|
isValidScannerBinding = (module2) => {
|
|
3636
3734
|
const candidate = module2;
|
|
@@ -3672,7 +3770,7 @@ var init_native_bridge = __esm({
|
|
|
3672
3770
|
}
|
|
3673
3771
|
return throwNativeBindingError();
|
|
3674
3772
|
}
|
|
3675
|
-
const runtimeDir =
|
|
3773
|
+
const runtimeDir = getDirname2();
|
|
3676
3774
|
const candidates = resolveNativeBindingCandidates({
|
|
3677
3775
|
runtimeDir,
|
|
3678
3776
|
includeDefaultCandidates: true
|
|
@@ -3756,6 +3854,7 @@ var import_node_fs2, import_node_path3, STALE_THRESHOLD_MS;
|
|
|
3756
3854
|
var init_cache_native = __esm({
|
|
3757
3855
|
"packages/domain/scanner/src/cache-native.ts"() {
|
|
3758
3856
|
"use strict";
|
|
3857
|
+
init_cjs_shims();
|
|
3759
3858
|
import_node_fs2 = __toESM(require("fs"), 1);
|
|
3760
3859
|
import_node_path3 = __toESM(require("path"), 1);
|
|
3761
3860
|
init_native_bridge();
|
|
@@ -3824,6 +3923,7 @@ var import_node_worker_threads, import_node_path4, import_node_os, import_node_u
|
|
|
3824
3923
|
var init_parallel_scanner = __esm({
|
|
3825
3924
|
"packages/domain/scanner/src/parallel-scanner.ts"() {
|
|
3826
3925
|
"use strict";
|
|
3926
|
+
init_cjs_shims();
|
|
3827
3927
|
import_node_worker_threads = require("worker_threads");
|
|
3828
3928
|
import_node_path4 = __toESM(require("path"), 1);
|
|
3829
3929
|
import_node_os = require("os");
|
|
@@ -3846,7 +3946,7 @@ var init_parallel_scanner = __esm({
|
|
|
3846
3946
|
import_node_worker_threads.parentPort.postMessage(msg);
|
|
3847
3947
|
}
|
|
3848
3948
|
}
|
|
3849
|
-
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
3949
|
+
_workerFilename = typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(importMetaUrl);
|
|
3850
3950
|
}
|
|
3851
3951
|
});
|
|
3852
3952
|
|
|
@@ -3855,6 +3955,7 @@ var import_zod, formatIssuePath2, formatIssues, parseWithSchema, NonNegativeInte
|
|
|
3855
3955
|
var init_schemas = __esm({
|
|
3856
3956
|
"packages/domain/scanner/src/schemas.ts"() {
|
|
3857
3957
|
"use strict";
|
|
3958
|
+
init_cjs_shims();
|
|
3858
3959
|
import_zod = require("zod");
|
|
3859
3960
|
init_src();
|
|
3860
3961
|
formatIssuePath2 = (path30) => path30.length > 0 ? path30.map(
|
|
@@ -3938,8 +4039,8 @@ function getRuntimeDir() {
|
|
|
3938
4039
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
3939
4040
|
return __dirname;
|
|
3940
4041
|
}
|
|
3941
|
-
if (
|
|
3942
|
-
return import_node_path5.default.dirname(
|
|
4042
|
+
if (typeof import_meta3 !== "undefined" && importMetaUrl) {
|
|
4043
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
3943
4044
|
}
|
|
3944
4045
|
return process.cwd();
|
|
3945
4046
|
}
|
|
@@ -3948,8 +4049,8 @@ function resolveScannerWorkerModulePath() {
|
|
|
3948
4049
|
if (typeof __dirname !== "undefined" && __dirname.length > 0) {
|
|
3949
4050
|
return __dirname;
|
|
3950
4051
|
}
|
|
3951
|
-
if (
|
|
3952
|
-
return import_node_path5.default.dirname(
|
|
4052
|
+
if (typeof import_meta3 !== "undefined" && importMetaUrl) {
|
|
4053
|
+
return import_node_path5.default.dirname((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
3953
4054
|
}
|
|
3954
4055
|
return process.cwd();
|
|
3955
4056
|
})();
|
|
@@ -4222,10 +4323,11 @@ async function scanWorkspaceAsync(rootDir, options = {}) {
|
|
|
4222
4323
|
return scanWorkspace(rootDir, normalizedOptions);
|
|
4223
4324
|
}
|
|
4224
4325
|
}
|
|
4225
|
-
var import_node_fs3, import_node_module3, import_node_path5, import_node_url4, import_node_worker_threads2, log2, SCAN_WORKER_TIMEOUT_MS, createNativeParserLoader, nativeParserLoader, DEFAULT_EXTENSIONS, DEFAULT_IGNORES;
|
|
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;
|
|
4226
4327
|
var init_src2 = __esm({
|
|
4227
4328
|
"packages/domain/scanner/src/index.ts"() {
|
|
4228
4329
|
"use strict";
|
|
4330
|
+
init_cjs_shims();
|
|
4229
4331
|
import_node_fs3 = __toESM(require("fs"), 1);
|
|
4230
4332
|
import_node_module3 = require("module");
|
|
4231
4333
|
import_node_path5 = __toESM(require("path"), 1);
|
|
@@ -4238,6 +4340,7 @@ var init_src2 = __esm({
|
|
|
4238
4340
|
init_schemas();
|
|
4239
4341
|
init_schemas();
|
|
4240
4342
|
init_native_bridge();
|
|
4343
|
+
import_meta3 = {};
|
|
4241
4344
|
log2 = createLogger("scanner");
|
|
4242
4345
|
SCAN_WORKER_TIMEOUT_MS = 12e4;
|
|
4243
4346
|
createNativeParserLoader = () => {
|
|
@@ -4353,6 +4456,7 @@ var import_node_fs4, DEFAULT_TOP_LIMIT, DEFAULT_FREQUENT_THRESHOLD, DEBUG_NAMESP
|
|
|
4353
4456
|
var init_utils = __esm({
|
|
4354
4457
|
"packages/domain/analyzer/src/utils.ts"() {
|
|
4355
4458
|
"use strict";
|
|
4459
|
+
init_cjs_shims();
|
|
4356
4460
|
import_node_fs4 = __toESM(require("fs"), 1);
|
|
4357
4461
|
init_src();
|
|
4358
4462
|
DEFAULT_TOP_LIMIT = 10;
|
|
@@ -4371,7 +4475,7 @@ async function requireNativeBinding() {
|
|
|
4371
4475
|
if (binding?.analyzeClasses) return binding;
|
|
4372
4476
|
const runtimeDir = resolveRuntimeDir(
|
|
4373
4477
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4374
|
-
|
|
4478
|
+
importMetaUrl
|
|
4375
4479
|
);
|
|
4376
4480
|
const candidates = resolveNativeBindingCandidates({
|
|
4377
4481
|
runtimeDir,
|
|
@@ -4405,6 +4509,7 @@ var isAnalyzerModule, createAnalyzerBindingLoader, analyzerBindingLoader;
|
|
|
4405
4509
|
var init_binding = __esm({
|
|
4406
4510
|
"packages/domain/analyzer/src/binding.ts"() {
|
|
4407
4511
|
"use strict";
|
|
4512
|
+
init_cjs_shims();
|
|
4408
4513
|
init_src();
|
|
4409
4514
|
init_utils();
|
|
4410
4515
|
isAnalyzerModule = (module2) => {
|
|
@@ -4418,7 +4523,7 @@ var init_binding = __esm({
|
|
|
4418
4523
|
_state.bindingPromise = (async () => {
|
|
4419
4524
|
const runtimeDir = resolveRuntimeDir(
|
|
4420
4525
|
typeof __dirname === "string" ? __dirname : void 0,
|
|
4421
|
-
|
|
4526
|
+
importMetaUrl
|
|
4422
4527
|
);
|
|
4423
4528
|
const candidates = resolveNativeBindingCandidates({
|
|
4424
4529
|
runtimeDir,
|
|
@@ -4461,6 +4566,7 @@ var import_zod2, formatIssuePath3, isPlainObject, formatIssues2, parseWithSchema
|
|
|
4461
4566
|
var init_schemas2 = __esm({
|
|
4462
4567
|
"packages/domain/analyzer/src/schemas.ts"() {
|
|
4463
4568
|
"use strict";
|
|
4569
|
+
init_cjs_shims();
|
|
4464
4570
|
init_src();
|
|
4465
4571
|
import_zod2 = require("zod");
|
|
4466
4572
|
formatIssuePath3 = (path30) => path30.length > 0 ? path30.map(
|
|
@@ -4575,6 +4681,7 @@ var import_node_fs5, import_node_path6, import_node_url5, SUPPORTED_TAILWIND_CON
|
|
|
4575
4681
|
var init_semantic = __esm({
|
|
4576
4682
|
"packages/domain/analyzer/src/semantic.ts"() {
|
|
4577
4683
|
"use strict";
|
|
4684
|
+
init_cjs_shims();
|
|
4578
4685
|
import_node_fs5 = __toESM(require("fs"), 1);
|
|
4579
4686
|
import_node_path6 = __toESM(require("path"), 1);
|
|
4580
4687
|
import_node_url5 = require("url");
|
|
@@ -4995,6 +5102,7 @@ var import_node_path7;
|
|
|
4995
5102
|
var init_analyzeWorkspace = __esm({
|
|
4996
5103
|
"packages/domain/analyzer/src/analyzeWorkspace.ts"() {
|
|
4997
5104
|
"use strict";
|
|
5105
|
+
init_cjs_shims();
|
|
4998
5106
|
import_node_path7 = __toESM(require("path"), 1);
|
|
4999
5107
|
init_src2();
|
|
5000
5108
|
init_binding();
|
|
@@ -5009,6 +5117,7 @@ var normalizeClassInput, normalizeClassToCssOptions, mergeDeclarationMap, declar
|
|
|
5009
5117
|
var init_classToCss = __esm({
|
|
5010
5118
|
"packages/domain/analyzer/src/classToCss.ts"() {
|
|
5011
5119
|
"use strict";
|
|
5120
|
+
init_cjs_shims();
|
|
5012
5121
|
init_binding();
|
|
5013
5122
|
init_schemas2();
|
|
5014
5123
|
init_utils();
|
|
@@ -5130,6 +5239,7 @@ var __internal;
|
|
|
5130
5239
|
var init_src3 = __esm({
|
|
5131
5240
|
"packages/domain/analyzer/src/index.ts"() {
|
|
5132
5241
|
"use strict";
|
|
5242
|
+
init_cjs_shims();
|
|
5133
5243
|
init_analyzeWorkspace();
|
|
5134
5244
|
init_classToCss();
|
|
5135
5245
|
init_schemas2();
|
|
@@ -5191,6 +5301,7 @@ var import_promises, import_node_path8;
|
|
|
5191
5301
|
var init_fs = __esm({
|
|
5192
5302
|
"packages/infrastructure/cli/src/utils/fs.ts"() {
|
|
5193
5303
|
"use strict";
|
|
5304
|
+
init_cjs_shims();
|
|
5194
5305
|
import_promises = __toESM(require("fs/promises"), 1);
|
|
5195
5306
|
import_node_path8 = __toESM(require("path"), 1);
|
|
5196
5307
|
}
|
|
@@ -5200,6 +5311,7 @@ var init_fs = __esm({
|
|
|
5200
5311
|
var require_picocolors = __commonJS({
|
|
5201
5312
|
"node_modules/picocolors/picocolors.js"(exports2, module2) {
|
|
5202
5313
|
"use strict";
|
|
5314
|
+
init_cjs_shims();
|
|
5203
5315
|
var p = process || {};
|
|
5204
5316
|
var argv = p.argv || [];
|
|
5205
5317
|
var env = p.env || {};
|
|
@@ -5287,6 +5399,7 @@ function writeJsonSuccess(command, data) {
|
|
|
5287
5399
|
var init_json = __esm({
|
|
5288
5400
|
"packages/infrastructure/cli/src/utils/json.ts"() {
|
|
5289
5401
|
"use strict";
|
|
5402
|
+
init_cjs_shims();
|
|
5290
5403
|
}
|
|
5291
5404
|
});
|
|
5292
5405
|
|
|
@@ -5429,6 +5542,7 @@ var import_prompts, import_picocolors;
|
|
|
5429
5542
|
var init_output = __esm({
|
|
5430
5543
|
"packages/infrastructure/cli/src/utils/output.ts"() {
|
|
5431
5544
|
"use strict";
|
|
5545
|
+
init_cjs_shims();
|
|
5432
5546
|
import_prompts = require("@clack/prompts");
|
|
5433
5547
|
import_picocolors = __toESM(require_picocolors(), 1);
|
|
5434
5548
|
init_errors();
|
|
@@ -5478,13 +5592,14 @@ var import_node_util3;
|
|
|
5478
5592
|
var init_args = __esm({
|
|
5479
5593
|
"packages/infrastructure/cli/src/utils/args.ts"() {
|
|
5480
5594
|
"use strict";
|
|
5595
|
+
init_cjs_shims();
|
|
5481
5596
|
import_node_util3 = require("util");
|
|
5482
5597
|
}
|
|
5483
5598
|
});
|
|
5484
5599
|
|
|
5485
5600
|
// packages/infrastructure/cli/src/utils/paths.ts
|
|
5486
|
-
function runtimeDirFromImportMeta(
|
|
5487
|
-
const filename = (0, import_node_url6.fileURLToPath)(
|
|
5601
|
+
function runtimeDirFromImportMeta(importMetaUrl2) {
|
|
5602
|
+
const filename = (0, import_node_url6.fileURLToPath)(importMetaUrl2);
|
|
5488
5603
|
return import_node_path17.default.dirname(filename);
|
|
5489
5604
|
}
|
|
5490
5605
|
async function resolveMonorepoPath(runtimeDir, relativeToRepoRoot) {
|
|
@@ -5502,6 +5617,7 @@ var import_node_path17, import_node_url6;
|
|
|
5502
5617
|
var init_paths = __esm({
|
|
5503
5618
|
"packages/infrastructure/cli/src/utils/paths.ts"() {
|
|
5504
5619
|
"use strict";
|
|
5620
|
+
init_cjs_shims();
|
|
5505
5621
|
import_node_path17 = __toESM(require("path"), 1);
|
|
5506
5622
|
import_node_url6 = require("url");
|
|
5507
5623
|
init_errors();
|
|
@@ -5589,6 +5705,7 @@ var isCommanderLikeError, isHelpExit, isVersionExit, normalizeCliError, findComm
|
|
|
5589
5705
|
var init_runtime = __esm({
|
|
5590
5706
|
"packages/infrastructure/cli/src/utils/runtime.ts"() {
|
|
5591
5707
|
"use strict";
|
|
5708
|
+
init_cjs_shims();
|
|
5592
5709
|
init_args();
|
|
5593
5710
|
init_errors();
|
|
5594
5711
|
init_output();
|
|
@@ -6047,21 +6164,23 @@ function buildCreateProgram(context) {
|
|
|
6047
6164
|
async function main(rawArgs = process.argv.slice(2)) {
|
|
6048
6165
|
await runCliMain({
|
|
6049
6166
|
argv: [process.execPath, "create-tailwind-styled", ...rawArgs],
|
|
6050
|
-
importMetaUrl:
|
|
6167
|
+
importMetaUrl: typeof import_meta4 !== "undefined" && importMetaUrl ? importMetaUrl : `file://${process.argv[1] ?? "unknown"}`,
|
|
6051
6168
|
commandHint: "create",
|
|
6052
6169
|
buildProgram: buildCreateProgram
|
|
6053
6170
|
});
|
|
6054
6171
|
}
|
|
6055
|
-
var import_node_path19, import_prompts4, TEMPLATE_NAMES, TEMPLATES;
|
|
6172
|
+
var import_node_path19, import_prompts4, import_meta4, TEMPLATE_NAMES, TEMPLATES;
|
|
6056
6173
|
var init_createApp = __esm({
|
|
6057
6174
|
"packages/infrastructure/cli/src/createApp.ts"() {
|
|
6058
6175
|
"use strict";
|
|
6176
|
+
init_cjs_shims();
|
|
6059
6177
|
import_node_path19 = __toESM(require("path"), 1);
|
|
6060
6178
|
import_prompts4 = require("@clack/prompts");
|
|
6061
6179
|
init_esm();
|
|
6062
6180
|
init_errors();
|
|
6063
6181
|
init_fs();
|
|
6064
6182
|
init_runtime();
|
|
6183
|
+
import_meta4 = {};
|
|
6065
6184
|
TEMPLATE_NAMES = ["next-app", "vite-react", "vite-vue", "vite-svelte", "simple"];
|
|
6066
6185
|
TEMPLATES = {
|
|
6067
6186
|
"next-app": createNextApp,
|
|
@@ -6078,6 +6197,7 @@ var _loadNative, log3, NATIVE_UNAVAILABLE_MESSAGE, nativeBridge, bridgeLoadAttem
|
|
|
6078
6197
|
var init_nativeBridge = __esm({
|
|
6079
6198
|
"packages/domain/compiler/src/nativeBridge.ts"() {
|
|
6080
6199
|
"use strict";
|
|
6200
|
+
init_cjs_shims();
|
|
6081
6201
|
init_src();
|
|
6082
6202
|
_loadNative = (path30) => require(path30);
|
|
6083
6203
|
log3 = (...args) => {
|
|
@@ -6105,7 +6225,7 @@ var init_nativeBridge = __esm({
|
|
|
6105
6225
|
}
|
|
6106
6226
|
bridgeLoadAttempted = true;
|
|
6107
6227
|
try {
|
|
6108
|
-
const runtimeDir = resolveRuntimeDir(void 0,
|
|
6228
|
+
const runtimeDir = resolveRuntimeDir(void 0, importMetaUrl);
|
|
6109
6229
|
const result = resolveNativeBinary(runtimeDir);
|
|
6110
6230
|
if (result.path && result.path.endsWith(".node")) {
|
|
6111
6231
|
try {
|
|
@@ -6177,6 +6297,7 @@ Tried paths: ${result.tried.join("\n")}`);
|
|
|
6177
6297
|
var init_compiler = __esm({
|
|
6178
6298
|
"packages/domain/compiler/src/compiler/index.ts"() {
|
|
6179
6299
|
"use strict";
|
|
6300
|
+
init_cjs_shims();
|
|
6180
6301
|
}
|
|
6181
6302
|
});
|
|
6182
6303
|
|
|
@@ -6184,6 +6305,7 @@ var init_compiler = __esm({
|
|
|
6184
6305
|
var init_parser = __esm({
|
|
6185
6306
|
"packages/domain/compiler/src/parser/index.ts"() {
|
|
6186
6307
|
"use strict";
|
|
6308
|
+
init_cjs_shims();
|
|
6187
6309
|
}
|
|
6188
6310
|
});
|
|
6189
6311
|
|
|
@@ -6191,6 +6313,7 @@ var init_parser = __esm({
|
|
|
6191
6313
|
var init_analyzer = __esm({
|
|
6192
6314
|
"packages/domain/compiler/src/analyzer/index.ts"() {
|
|
6193
6315
|
"use strict";
|
|
6316
|
+
init_cjs_shims();
|
|
6194
6317
|
}
|
|
6195
6318
|
});
|
|
6196
6319
|
|
|
@@ -6198,6 +6321,7 @@ var init_analyzer = __esm({
|
|
|
6198
6321
|
var init_cache = __esm({
|
|
6199
6322
|
"packages/domain/compiler/src/cache/index.ts"() {
|
|
6200
6323
|
"use strict";
|
|
6324
|
+
init_cjs_shims();
|
|
6201
6325
|
}
|
|
6202
6326
|
});
|
|
6203
6327
|
|
|
@@ -6205,6 +6329,7 @@ var init_cache = __esm({
|
|
|
6205
6329
|
var init_redis = __esm({
|
|
6206
6330
|
"packages/domain/compiler/src/redis/index.ts"() {
|
|
6207
6331
|
"use strict";
|
|
6332
|
+
init_cjs_shims();
|
|
6208
6333
|
}
|
|
6209
6334
|
});
|
|
6210
6335
|
|
|
@@ -6212,6 +6337,7 @@ var init_redis = __esm({
|
|
|
6212
6337
|
var init_watch = __esm({
|
|
6213
6338
|
"packages/domain/compiler/src/watch/index.ts"() {
|
|
6214
6339
|
"use strict";
|
|
6340
|
+
init_cjs_shims();
|
|
6215
6341
|
}
|
|
6216
6342
|
});
|
|
6217
6343
|
|
|
@@ -6220,6 +6346,7 @@ var import_node_fs9, import_node_path24, import_node_module4, _require3, compile
|
|
|
6220
6346
|
var init_src4 = __esm({
|
|
6221
6347
|
"packages/domain/compiler/src/index.ts"() {
|
|
6222
6348
|
"use strict";
|
|
6349
|
+
init_cjs_shims();
|
|
6223
6350
|
import_node_fs9 = __toESM(require("fs"), 1);
|
|
6224
6351
|
import_node_path24 = __toESM(require("path"), 1);
|
|
6225
6352
|
import_node_module4 = require("module");
|
|
@@ -6231,7 +6358,7 @@ var init_src4 = __esm({
|
|
|
6231
6358
|
init_redis();
|
|
6232
6359
|
init_watch();
|
|
6233
6360
|
_require3 = (0, import_node_module4.createRequire)(
|
|
6234
|
-
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" :
|
|
6361
|
+
typeof require !== "undefined" ? typeof __filename !== "undefined" ? `file://${__filename}` : "file://unknown" : importMetaUrl
|
|
6235
6362
|
);
|
|
6236
6363
|
compileCssFromClasses = (classes, prefix) => {
|
|
6237
6364
|
const native = getNativeBridge();
|
|
@@ -6251,6 +6378,7 @@ var init_src4 = __esm({
|
|
|
6251
6378
|
var init_internal = __esm({
|
|
6252
6379
|
"packages/domain/compiler/src/internal.ts"() {
|
|
6253
6380
|
"use strict";
|
|
6381
|
+
init_cjs_shims();
|
|
6254
6382
|
init_src4();
|
|
6255
6383
|
init_compiler();
|
|
6256
6384
|
init_parser();
|
|
@@ -6270,18 +6398,23 @@ __export(cli_exports, {
|
|
|
6270
6398
|
runScanCli: () => runScanCli
|
|
6271
6399
|
});
|
|
6272
6400
|
module.exports = __toCommonJS(cli_exports);
|
|
6401
|
+
init_cjs_shims();
|
|
6273
6402
|
|
|
6274
6403
|
// packages/infrastructure/cli/src/index.ts
|
|
6404
|
+
init_cjs_shims();
|
|
6275
6405
|
var import_node_url8 = require("url");
|
|
6276
6406
|
|
|
6277
6407
|
// packages/infrastructure/cli/src/commands/program.ts
|
|
6408
|
+
init_cjs_shims();
|
|
6278
6409
|
init_esm();
|
|
6279
6410
|
|
|
6280
6411
|
// packages/infrastructure/cli/src/analyze.ts
|
|
6412
|
+
init_cjs_shims();
|
|
6281
6413
|
var import_node_path9 = __toESM(require("path"), 1);
|
|
6282
6414
|
var import_node_util = require("util");
|
|
6283
6415
|
|
|
6284
6416
|
// packages/infrastructure/cli/src/utils/analyzer.ts
|
|
6417
|
+
init_cjs_shims();
|
|
6285
6418
|
init_errors();
|
|
6286
6419
|
async function loadAnalyzerModule() {
|
|
6287
6420
|
try {
|
|
@@ -6371,6 +6504,7 @@ async function runAnalyzeCli(args) {
|
|
|
6371
6504
|
}
|
|
6372
6505
|
|
|
6373
6506
|
// packages/infrastructure/cli/src/extract.ts
|
|
6507
|
+
init_cjs_shims();
|
|
6374
6508
|
var import_node_path10 = __toESM(require("path"), 1);
|
|
6375
6509
|
var import_node_util2 = require("util");
|
|
6376
6510
|
init_errors();
|
|
@@ -6467,6 +6601,7 @@ async function runExtractCli(args) {
|
|
|
6467
6601
|
}
|
|
6468
6602
|
|
|
6469
6603
|
// packages/infrastructure/cli/src/init.ts
|
|
6604
|
+
init_cjs_shims();
|
|
6470
6605
|
var import_node_path11 = __toESM(require("path"), 1);
|
|
6471
6606
|
init_fs();
|
|
6472
6607
|
init_output();
|
|
@@ -6525,10 +6660,12 @@ async function runInitCli(rawArgs) {
|
|
|
6525
6660
|
}
|
|
6526
6661
|
|
|
6527
6662
|
// packages/infrastructure/cli/src/migrate.ts
|
|
6663
|
+
init_cjs_shims();
|
|
6528
6664
|
var import_promises2 = __toESM(require("fs/promises"), 1);
|
|
6529
6665
|
var import_node_path12 = __toESM(require("path"), 1);
|
|
6530
6666
|
|
|
6531
6667
|
// packages/infrastructure/cli/src/migrateWizard.ts
|
|
6668
|
+
init_cjs_shims();
|
|
6532
6669
|
var import_prompts2 = require("@clack/prompts");
|
|
6533
6670
|
init_errors();
|
|
6534
6671
|
async function runMigrationWizard() {
|
|
@@ -6676,6 +6813,7 @@ async function runMigrateCli(rawArgs) {
|
|
|
6676
6813
|
}
|
|
6677
6814
|
|
|
6678
6815
|
// packages/infrastructure/cli/src/scan.ts
|
|
6816
|
+
init_cjs_shims();
|
|
6679
6817
|
var import_node_fs6 = __toESM(require("fs"), 1);
|
|
6680
6818
|
var import_node_path13 = __toESM(require("path"), 1);
|
|
6681
6819
|
init_src2();
|
|
@@ -6787,10 +6925,12 @@ Scan root : ${result.root}`);
|
|
|
6787
6925
|
}
|
|
6788
6926
|
|
|
6789
6927
|
// packages/infrastructure/cli/src/setup.ts
|
|
6928
|
+
init_cjs_shims();
|
|
6790
6929
|
var import_node_path15 = __toESM(require("path"), 1);
|
|
6791
6930
|
var import_picocolors3 = __toESM(require_picocolors(), 1);
|
|
6792
6931
|
|
|
6793
6932
|
// packages/infrastructure/cli/src/commands/setup/patchers.ts
|
|
6933
|
+
init_cjs_shims();
|
|
6794
6934
|
function patchNextConfigImpl(src) {
|
|
6795
6935
|
if (src.includes("withTailwindStyled")) return null;
|
|
6796
6936
|
const hasExport = src.includes("export default");
|
|
@@ -6983,6 +7123,7 @@ function patchTsConfigImpl(src) {
|
|
|
6983
7123
|
}
|
|
6984
7124
|
|
|
6985
7125
|
// packages/infrastructure/cli/src/commands/setup/prompt.ts
|
|
7126
|
+
init_cjs_shims();
|
|
6986
7127
|
var import_prompts3 = require("@clack/prompts");
|
|
6987
7128
|
init_errors();
|
|
6988
7129
|
async function pickProjectTypeInteractive(detected, flags, projectOptions, options = {}) {
|
|
@@ -7034,10 +7175,12 @@ async function pickProjectTypeInteractive(detected, flags, projectOptions, optio
|
|
|
7034
7175
|
}
|
|
7035
7176
|
|
|
7036
7177
|
// packages/infrastructure/cli/src/commands/setup/workspace.ts
|
|
7178
|
+
init_cjs_shims();
|
|
7037
7179
|
var import_node_path14 = __toESM(require("path"), 1);
|
|
7038
7180
|
init_fs();
|
|
7039
7181
|
|
|
7040
7182
|
// packages/infrastructure/cli/src/utils/process.ts
|
|
7183
|
+
init_cjs_shims();
|
|
7041
7184
|
var import_node_child_process = require("child_process");
|
|
7042
7185
|
init_errors();
|
|
7043
7186
|
init_json();
|
|
@@ -7286,6 +7429,7 @@ async function installPackages(cwd2, pm, pkgs, dev, flags, logger) {
|
|
|
7286
7429
|
}
|
|
7287
7430
|
|
|
7288
7431
|
// packages/infrastructure/cli/src/utils/logger.ts
|
|
7432
|
+
init_cjs_shims();
|
|
7289
7433
|
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
7290
7434
|
function createCliLogger(options = {}) {
|
|
7291
7435
|
function emit(level, icon, colorize, message) {
|
|
@@ -7494,6 +7638,7 @@ var runSetupCli = async (rawArgs) => {
|
|
|
7494
7638
|
};
|
|
7495
7639
|
|
|
7496
7640
|
// packages/infrastructure/cli/src/stats.ts
|
|
7641
|
+
init_cjs_shims();
|
|
7497
7642
|
var import_node_path16 = __toESM(require("path"), 1);
|
|
7498
7643
|
var import_node_util4 = require("util");
|
|
7499
7644
|
init_errors();
|
|
@@ -7586,6 +7731,7 @@ async function runStatsCli(args) {
|
|
|
7586
7731
|
init_runtime();
|
|
7587
7732
|
|
|
7588
7733
|
// packages/infrastructure/cli/src/commands/boundary.ts
|
|
7734
|
+
init_cjs_shims();
|
|
7589
7735
|
var import_node_fs7 = require("fs");
|
|
7590
7736
|
var import_node_path18 = require("path");
|
|
7591
7737
|
var import_node_util5 = require("util");
|
|
@@ -7711,6 +7857,7 @@ var boundaryCommand = {
|
|
|
7711
7857
|
};
|
|
7712
7858
|
|
|
7713
7859
|
// packages/infrastructure/cli/src/commands/create.ts
|
|
7860
|
+
init_cjs_shims();
|
|
7714
7861
|
init_args();
|
|
7715
7862
|
var createCommand2 = {
|
|
7716
7863
|
name: "create",
|
|
@@ -7722,11 +7869,13 @@ var createCommand2 = {
|
|
|
7722
7869
|
};
|
|
7723
7870
|
|
|
7724
7871
|
// packages/infrastructure/cli/src/commands/dashboard.ts
|
|
7872
|
+
init_cjs_shims();
|
|
7725
7873
|
var import_node_util6 = require("util");
|
|
7726
7874
|
init_errors();
|
|
7727
7875
|
init_fs();
|
|
7728
7876
|
|
|
7729
7877
|
// packages/infrastructure/cli/src/commands/helpers.ts
|
|
7878
|
+
init_cjs_shims();
|
|
7730
7879
|
var import_promises3 = __toESM(require("fs/promises"), 1);
|
|
7731
7880
|
var import_node_path20 = __toESM(require("path"), 1);
|
|
7732
7881
|
init_errors();
|
|
@@ -7816,6 +7965,7 @@ var dashboardCommand = {
|
|
|
7816
7965
|
};
|
|
7817
7966
|
|
|
7818
7967
|
// packages/infrastructure/cli/src/commands/deploy.ts
|
|
7968
|
+
init_cjs_shims();
|
|
7819
7969
|
var import_promises4 = __toESM(require("fs/promises"), 1);
|
|
7820
7970
|
var import_node_path21 = __toESM(require("path"), 1);
|
|
7821
7971
|
var import_node_util7 = require("util");
|
|
@@ -7975,10 +8125,12 @@ var deployCommand = {
|
|
|
7975
8125
|
};
|
|
7976
8126
|
|
|
7977
8127
|
// packages/infrastructure/cli/src/commands/doctor.ts
|
|
8128
|
+
init_cjs_shims();
|
|
7978
8129
|
var import_node_util8 = require("util");
|
|
7979
8130
|
var import_picocolors4 = __toESM(require_picocolors(), 1);
|
|
7980
8131
|
|
|
7981
8132
|
// packages/infrastructure/cli/src/utils/doctorService.ts
|
|
8133
|
+
init_cjs_shims();
|
|
7982
8134
|
var import_node_fs8 = __toESM(require("fs"), 1);
|
|
7983
8135
|
var import_node_path22 = __toESM(require("path"), 1);
|
|
7984
8136
|
init_src3();
|
|
@@ -8520,6 +8672,7 @@ function printDoctorOutput(result, output) {
|
|
|
8520
8672
|
}
|
|
8521
8673
|
|
|
8522
8674
|
// packages/infrastructure/cli/src/commands/misc.ts
|
|
8675
|
+
init_cjs_shims();
|
|
8523
8676
|
var import_node_path23 = __toESM(require("path"), 1);
|
|
8524
8677
|
var import_node_util9 = require("util");
|
|
8525
8678
|
init_errors();
|
|
@@ -8797,6 +8950,7 @@ var miscCommands = [
|
|
|
8797
8950
|
];
|
|
8798
8951
|
|
|
8799
8952
|
// packages/infrastructure/cli/src/commands/plugin.ts
|
|
8953
|
+
init_cjs_shims();
|
|
8800
8954
|
init_errors();
|
|
8801
8955
|
init_json();
|
|
8802
8956
|
var pluginCommand = {
|
|
@@ -8883,7 +9037,11 @@ var pluginCommand = {
|
|
|
8883
9037
|
}
|
|
8884
9038
|
};
|
|
8885
9039
|
|
|
9040
|
+
// packages/infrastructure/cli/src/commands/preflight.ts
|
|
9041
|
+
init_cjs_shims();
|
|
9042
|
+
|
|
8886
9043
|
// packages/infrastructure/cli/src/preflight.ts
|
|
9044
|
+
init_cjs_shims();
|
|
8887
9045
|
var import_node_path25 = __toESM(require("path"), 1);
|
|
8888
9046
|
var import_node_url7 = require("url");
|
|
8889
9047
|
init_args();
|
|
@@ -8891,6 +9049,7 @@ init_errors();
|
|
|
8891
9049
|
init_fs();
|
|
8892
9050
|
init_json();
|
|
8893
9051
|
init_src4();
|
|
9052
|
+
var import_meta5 = {};
|
|
8894
9053
|
var DEFAULT_TAILWIND_CSS2 = '@import "tailwindcss";\n';
|
|
8895
9054
|
var DEFAULT_TW_CONFIG = `${JSON.stringify(
|
|
8896
9055
|
{
|
|
@@ -9201,7 +9360,7 @@ async function runPreflightCli(rawArgs) {
|
|
|
9201
9360
|
function isDirectExecution() {
|
|
9202
9361
|
const scriptPath = process.argv[1];
|
|
9203
9362
|
if (!scriptPath) return false;
|
|
9204
|
-
const currentUrl =
|
|
9363
|
+
const currentUrl = typeof import_meta5 !== "undefined" && importMetaUrl ? importMetaUrl : `file://${scriptPath}`;
|
|
9205
9364
|
return currentUrl === (0, import_node_url7.pathToFileURL)(scriptPath).href;
|
|
9206
9365
|
}
|
|
9207
9366
|
if (isDirectExecution()) {
|
|
@@ -9233,6 +9392,7 @@ var preflightCommand = {
|
|
|
9233
9392
|
};
|
|
9234
9393
|
|
|
9235
9394
|
// packages/infrastructure/cli/src/commands/registry.ts
|
|
9395
|
+
init_cjs_shims();
|
|
9236
9396
|
init_errors();
|
|
9237
9397
|
var registryCommand = {
|
|
9238
9398
|
name: "registry",
|
|
@@ -9270,6 +9430,7 @@ var installRegistryCommand = {
|
|
|
9270
9430
|
};
|
|
9271
9431
|
|
|
9272
9432
|
// packages/infrastructure/cli/src/commands/scriptCommands.ts
|
|
9433
|
+
init_cjs_shims();
|
|
9273
9434
|
var import_node_util10 = require("util");
|
|
9274
9435
|
init_errors();
|
|
9275
9436
|
async function runScriptCommand(commandName, context, relativeScriptPath, args, options = {}) {
|
|
@@ -9481,6 +9642,7 @@ var scriptCommands = [
|
|
|
9481
9642
|
];
|
|
9482
9643
|
|
|
9483
9644
|
// packages/infrastructure/cli/src/commands/storybook.ts
|
|
9645
|
+
init_cjs_shims();
|
|
9484
9646
|
var import_node_path26 = __toESM(require("path"), 1);
|
|
9485
9647
|
var import_node_util11 = require("util");
|
|
9486
9648
|
init_errors();
|
|
@@ -9540,6 +9702,7 @@ var storybookCommand = {
|
|
|
9540
9702
|
};
|
|
9541
9703
|
|
|
9542
9704
|
// packages/infrastructure/cli/src/commands/studio.ts
|
|
9705
|
+
init_cjs_shims();
|
|
9543
9706
|
var import_node_util12 = require("util");
|
|
9544
9707
|
init_errors();
|
|
9545
9708
|
var studioCommand = {
|
|
@@ -9573,6 +9736,7 @@ var studioCommand = {
|
|
|
9573
9736
|
};
|
|
9574
9737
|
|
|
9575
9738
|
// packages/infrastructure/cli/src/commands/sync.ts
|
|
9739
|
+
init_cjs_shims();
|
|
9576
9740
|
init_errors();
|
|
9577
9741
|
var syncCommand = {
|
|
9578
9742
|
name: "sync",
|
|
@@ -9614,20 +9778,30 @@ var syncCommand = {
|
|
|
9614
9778
|
};
|
|
9615
9779
|
|
|
9616
9780
|
// packages/infrastructure/cli/src/commands/trace.ts
|
|
9781
|
+
init_cjs_shims();
|
|
9617
9782
|
var import_node_util13 = require("util");
|
|
9618
9783
|
var import_picocolors5 = __toESM(require_picocolors(), 1);
|
|
9619
9784
|
init_errors();
|
|
9620
9785
|
|
|
9621
9786
|
// packages/infrastructure/cli/src/utils/traceService.ts
|
|
9787
|
+
init_cjs_shims();
|
|
9622
9788
|
init_internal();
|
|
9623
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
|
+
|
|
9624
9796
|
// packages/domain/engine/src/native-bridge.ts
|
|
9797
|
+
init_cjs_shims();
|
|
9625
9798
|
init_src();
|
|
9799
|
+
var import_meta6 = {};
|
|
9626
9800
|
var log4 = createDebugLogger("engine:native");
|
|
9627
|
-
function
|
|
9801
|
+
function getDirname3() {
|
|
9628
9802
|
if (typeof __dirname !== "undefined") return __dirname;
|
|
9629
|
-
if (
|
|
9630
|
-
return
|
|
9803
|
+
if (typeof import_meta6 !== "undefined" && importMetaUrl) {
|
|
9804
|
+
return getDirname(importMetaUrl);
|
|
9631
9805
|
}
|
|
9632
9806
|
return process.cwd();
|
|
9633
9807
|
}
|
|
@@ -9671,7 +9845,7 @@ var createEngineBindingLoader = () => {
|
|
|
9671
9845
|
}
|
|
9672
9846
|
return cached;
|
|
9673
9847
|
}
|
|
9674
|
-
const runtimeDir =
|
|
9848
|
+
const runtimeDir = getDirname3();
|
|
9675
9849
|
const candidates = resolveNativeBindingCandidates({
|
|
9676
9850
|
runtimeDir,
|
|
9677
9851
|
includeDefaultCandidates: true
|
|
@@ -9802,6 +9976,7 @@ var BundleAnalyzer = class {
|
|
|
9802
9976
|
};
|
|
9803
9977
|
|
|
9804
9978
|
// packages/domain/engine/src/impactTracker.ts
|
|
9979
|
+
init_cjs_shims();
|
|
9805
9980
|
var ImpactTracker = class {
|
|
9806
9981
|
bundleAnalyzer;
|
|
9807
9982
|
constructor() {
|
|
@@ -9986,6 +10161,7 @@ var ImpactTracker = class {
|
|
|
9986
10161
|
};
|
|
9987
10162
|
|
|
9988
10163
|
// packages/domain/engine/src/ir.ts
|
|
10164
|
+
init_cjs_shims();
|
|
9989
10165
|
var RuleId = class {
|
|
9990
10166
|
constructor(value) {
|
|
9991
10167
|
this.value = value;
|
|
@@ -10115,6 +10291,7 @@ function createFingerprint(parts) {
|
|
|
10115
10291
|
}
|
|
10116
10292
|
|
|
10117
10293
|
// packages/domain/engine/src/reverseLookup.ts
|
|
10294
|
+
init_cjs_shims();
|
|
10118
10295
|
function getNative() {
|
|
10119
10296
|
const native = getNativeEngineBinding();
|
|
10120
10297
|
if (!native?.reverseLookupFromCss || !native?.reverseLookupByProperty || !native?.reverseLookupFindDependents) {
|
|
@@ -10189,6 +10366,7 @@ var ReverseLookup = class {
|
|
|
10189
10366
|
};
|
|
10190
10367
|
|
|
10191
10368
|
// packages/domain/engine/src/resolver.ts
|
|
10369
|
+
init_cjs_shims();
|
|
10192
10370
|
function toNativeInput(rule) {
|
|
10193
10371
|
return {
|
|
10194
10372
|
id: rule.id.value,
|
|
@@ -10306,6 +10484,7 @@ var CascadeResolver = class {
|
|
|
10306
10484
|
};
|
|
10307
10485
|
|
|
10308
10486
|
// packages/domain/engine/src/cssToIr.ts
|
|
10487
|
+
init_cjs_shims();
|
|
10309
10488
|
function createIdGenerator() {
|
|
10310
10489
|
const state = {
|
|
10311
10490
|
ruleIdCounter: 0,
|
|
@@ -10478,6 +10657,7 @@ function _parseCssToIrFallback(css, prefix, native) {
|
|
|
10478
10657
|
}
|
|
10479
10658
|
|
|
10480
10659
|
// packages/domain/engine/src/trace.ts
|
|
10660
|
+
init_cjs_shims();
|
|
10481
10661
|
function buildProvenanceChain(className) {
|
|
10482
10662
|
return {
|
|
10483
10663
|
className,
|
|
@@ -10690,6 +10870,7 @@ async function traceClass(className, options) {
|
|
|
10690
10870
|
}
|
|
10691
10871
|
|
|
10692
10872
|
// packages/infrastructure/cli/src/utils/traceTargetService.ts
|
|
10873
|
+
init_cjs_shims();
|
|
10693
10874
|
var import_node_fs10 = __toESM(require("fs"), 1);
|
|
10694
10875
|
var import_node_path27 = __toESM(require("path"), 1);
|
|
10695
10876
|
init_internal();
|
|
@@ -10993,6 +11174,7 @@ function printClassTraceOutput(result, output) {
|
|
|
10993
11174
|
}
|
|
10994
11175
|
|
|
10995
11176
|
// packages/infrastructure/cli/src/generateTypes.ts
|
|
11177
|
+
init_cjs_shims();
|
|
10996
11178
|
var import_node_fs11 = __toESM(require("fs"), 1);
|
|
10997
11179
|
var import_node_path28 = __toESM(require("path"), 1);
|
|
10998
11180
|
var import_picocolors6 = __toESM(require_picocolors(), 1);
|
|
@@ -11069,10 +11251,12 @@ async function loadNativeBinding2(cwd2) {
|
|
|
11069
11251
|
}
|
|
11070
11252
|
|
|
11071
11253
|
// packages/infrastructure/cli/src/commands/why.ts
|
|
11254
|
+
init_cjs_shims();
|
|
11072
11255
|
var import_node_util14 = require("util");
|
|
11073
11256
|
init_errors();
|
|
11074
11257
|
|
|
11075
11258
|
// packages/infrastructure/cli/src/utils/whyService.ts
|
|
11259
|
+
init_cjs_shims();
|
|
11076
11260
|
var import_node_fs12 = __toESM(require("fs"), 1);
|
|
11077
11261
|
var import_node_path29 = __toESM(require("path"), 1);
|
|
11078
11262
|
init_internal();
|
|
@@ -11597,11 +11781,11 @@ init_args();
|
|
|
11597
11781
|
init_output();
|
|
11598
11782
|
async function main2() {
|
|
11599
11783
|
await runCliMain({
|
|
11600
|
-
importMetaUrl
|
|
11784
|
+
importMetaUrl,
|
|
11601
11785
|
buildProgram: buildMainProgram
|
|
11602
11786
|
});
|
|
11603
11787
|
}
|
|
11604
|
-
var __currentFile = (0, import_node_url8.fileURLToPath)(
|
|
11788
|
+
var __currentFile = (0, import_node_url8.fileURLToPath)(importMetaUrl);
|
|
11605
11789
|
if (process.argv[1] === __currentFile) {
|
|
11606
11790
|
main2();
|
|
11607
11791
|
}
|