boss-css 0.0.22 → 0.0.24
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/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +14 -24
- package/dist/_virtual/_rolldown/runtime.mjs +14 -0
- package/dist/ai/server.cjs +15 -16
- package/dist/ai/server.mjs +4 -6
- package/dist/ai/skills.cjs +2 -3
- package/dist/ai/skills.mjs +1 -2
- package/dist/api/browser.cjs +11 -12
- package/dist/api/browser.mjs +1 -3
- package/dist/api/config.cjs +6 -7
- package/dist/api/config.mjs +1 -3
- package/dist/api/css.cjs +1 -3
- package/dist/api/css.mjs +1 -2
- package/dist/api/dictionary.cjs +1 -3
- package/dist/api/dictionary.mjs +1 -2
- package/dist/api/file/dts.cjs +2 -4
- package/dist/api/file/dts.mjs +1 -3
- package/dist/api/file/file.cjs +4 -6
- package/dist/api/file/file.mjs +1 -3
- package/dist/api/file/js.cjs +6 -8
- package/dist/api/file/js.mjs +2 -4
- package/dist/api/file/text.cjs +2 -4
- package/dist/api/file/text.mjs +1 -3
- package/dist/api/names.cjs +1 -3
- package/dist/api/names.mjs +1 -3
- package/dist/api/noopCss.cjs +2 -3
- package/dist/api/noopCss.mjs +1 -2
- package/dist/api/propTree.cjs +1 -3
- package/dist/api/propTree.mjs +1 -2
- package/dist/api/server.cjs +15 -16
- package/dist/api/server.mjs +1 -3
- package/dist/cli/build.cjs +1 -1
- package/dist/cli/build.mjs +2 -3
- package/dist/cli/index.cjs +5 -7
- package/dist/cli/index.mjs +1 -3
- package/dist/cli/tasks/build.cjs +4 -7
- package/dist/cli/tasks/build.mjs +1 -4
- package/dist/cli/tasks/choose.cjs +3 -6
- package/dist/cli/tasks/choose.mjs +1 -4
- package/dist/cli/tasks/compile.cjs +3 -6
- package/dist/cli/tasks/compile.mjs +1 -4
- package/dist/cli/tasks/dev.cjs +8 -11
- package/dist/cli/tasks/dev.mjs +2 -5
- package/dist/cli/tasks/init.cjs +39 -42
- package/dist/cli/tasks/init.mjs +12 -15
- package/dist/cli/tasks/watch.cjs +3 -6
- package/dist/cli/tasks/watch.mjs +1 -4
- package/dist/cli/templates/init.cjs +1 -3
- package/dist/cli/templates/init.mjs +1 -2
- package/dist/cli/types.cjs +2 -4
- package/dist/cli/types.mjs +2 -4
- package/dist/cli/utils.cjs +2 -4
- package/dist/cli/utils.mjs +1 -3
- package/dist/compile/classname-strategy.cjs +3 -5
- package/dist/compile/classname-strategy.mjs +1 -3
- package/dist/compile/classname.cjs +6 -8
- package/dist/compile/classname.mjs +5 -7
- package/dist/compile/index.cjs +18 -20
- package/dist/compile/index.mjs +6 -8
- package/dist/compile/jsx.cjs +8 -10
- package/dist/compile/jsx.mjs +6 -8
- package/dist/compile/prepared.cjs +3 -5
- package/dist/compile/prepared.mjs +1 -3
- package/dist/compile/runtime.cjs +4 -5
- package/dist/compile/runtime.mjs +1 -3
- package/dist/compile/transform.cjs +7 -9
- package/dist/compile/transform.mjs +3 -5
- package/dist/cx/index.cjs +6 -7
- package/dist/cx/index.mjs +3 -5
- package/dist/detect-fw/index.cjs +6 -7
- package/dist/detect-fw/index.mjs +1 -3
- package/dist/dev/client.cjs +2 -3
- package/dist/dev/client.mjs +1 -2
- package/dist/dev/plugin/browser.cjs +2 -3
- package/dist/dev/plugin/browser.mjs +1 -2
- package/dist/dev/plugin/server.cjs +13 -14
- package/dist/dev/plugin/server.mjs +3 -5
- package/dist/dev/port.cjs +3 -5
- package/dist/dev/port.mjs +1 -3
- package/dist/dev/runtime.cjs +3 -5
- package/dist/dev/runtime.mjs +1 -3
- package/dist/dev/server.cjs +12 -13
- package/dist/dev/server.mjs +15 -17
- package/dist/dev/shared.cjs +1 -3
- package/dist/dev/shared.mjs +1 -2
- package/dist/devtools-app/index.mjs +2 -2
- package/dist/eslint-plugin/index.cjs +10 -13
- package/dist/eslint-plugin/index.mjs +1 -4
- package/dist/eslint-plugin/rules/classnames-only.cjs +4 -6
- package/dist/eslint-plugin/rules/classnames-only.mjs +1 -3
- package/dist/eslint-plugin/rules/format-classnames.cjs +8 -10
- package/dist/eslint-plugin/rules/format-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/no-unknown-classes.cjs +5 -7
- package/dist/eslint-plugin/rules/no-unknown-classes.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-classnames.cjs +5 -7
- package/dist/eslint-plugin/rules/prefer-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-token-values.cjs +6 -8
- package/dist/eslint-plugin/rules/prefer-token-values.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-unitless-values.cjs +7 -9
- package/dist/eslint-plugin/rules/prefer-unitless-values.mjs +1 -3
- package/dist/eslint-plugin/rules/props-only.cjs +5 -7
- package/dist/eslint-plugin/rules/props-only.mjs +1 -3
- package/dist/eslint-plugin/rules/redundant-cx.cjs +3 -5
- package/dist/eslint-plugin/rules/redundant-cx.mjs +1 -3
- package/dist/eslint-plugin/rules/require-prop-functions.cjs +6 -8
- package/dist/eslint-plugin/rules/require-prop-functions.mjs +1 -3
- package/dist/eslint-plugin/utils/api.cjs +3 -5
- package/dist/eslint-plugin/utils/api.mjs +1 -3
- package/dist/eslint-plugin/utils/ast.cjs +1 -3
- package/dist/eslint-plugin/utils/ast.mjs +1 -2
- package/dist/eslint-plugin/utils/boss-classes.cjs +5 -7
- package/dist/eslint-plugin/utils/boss-classes.mjs +1 -3
- package/dist/eslint-plugin/utils/context.cjs +1 -3
- package/dist/eslint-plugin/utils/context.mjs +1 -2
- package/dist/eslint-plugin/utils/defaults.cjs +1 -3
- package/dist/eslint-plugin/utils/defaults.mjs +1 -2
- package/dist/eslint-plugin/utils/format.cjs +1 -3
- package/dist/eslint-plugin/utils/format.mjs +1 -2
- package/dist/eslint-plugin/utils/order.cjs +3 -5
- package/dist/eslint-plugin/utils/order.mjs +1 -3
- package/dist/eslint-plugin/utils/property-order.cjs +1 -3
- package/dist/eslint-plugin/utils/property-order.mjs +1 -2
- package/dist/eslint-plugin/utils/static.cjs +1 -3
- package/dist/eslint-plugin/utils/static.mjs +1 -2
- package/dist/fontsource/directory.cjs +1 -3
- package/dist/fontsource/directory.mjs +1 -2
- package/dist/fontsource/server.cjs +12 -13
- package/dist/fontsource/server.mjs +2 -4
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +1 -2
- package/dist/log/browser.cjs +2 -4
- package/dist/log/browser.mjs +1 -3
- package/dist/log/server.cjs +6 -8
- package/dist/log/server.mjs +1 -3
- package/dist/merge/index.cjs +21 -284
- package/dist/merge/index.mjs +18 -282
- package/dist/native/browser.cjs +3 -4
- package/dist/native/browser.mjs +1 -3
- package/dist/native/server.cjs +7 -8
- package/dist/native/server.mjs +1 -3
- package/dist/native/styleTypes.cjs +5 -7
- package/dist/native/styleTypes.mjs +1 -3
- package/dist/parser/classname/server.cjs +17 -19
- package/dist/parser/classname/server.mjs +11 -13
- package/dist/parser/jsx/browser.cjs +7 -8
- package/dist/parser/jsx/browser.mjs +1 -3
- package/dist/parser/jsx/extractCode.cjs +2 -4
- package/dist/parser/jsx/extractCode.mjs +2 -3
- package/dist/parser/jsx/extractPrepared.cjs +3 -5
- package/dist/parser/jsx/extractPrepared.mjs +1 -3
- package/dist/parser/jsx/extractProps.cjs +3 -5
- package/dist/parser/jsx/extractProps.mjs +1 -3
- package/dist/parser/jsx/isDOMProp.cjs +3 -5
- package/dist/parser/jsx/isDOMProp.mjs +1 -3
- package/dist/parser/jsx/native.cjs +6 -7
- package/dist/parser/jsx/native.d.cts +2 -2
- package/dist/parser/jsx/native.d.mts +2 -2
- package/dist/parser/jsx/native.mjs +1 -3
- package/dist/parser/jsx/runtime.cjs +3 -3
- package/dist/parser/jsx/runtime.mjs +1 -2
- package/dist/parser/jsx/server.cjs +16 -17
- package/dist/parser/jsx/server.mjs +3 -5
- package/dist/postcss/index.cjs +2 -5
- package/dist/postcss/index.mjs +1 -4
- package/dist/prop/at/runtime-only.cjs +8 -9
- package/dist/prop/at/runtime-only.mjs +6 -8
- package/dist/prop/at/server.cjs +27 -28
- package/dist/prop/at/server.mjs +17 -19
- package/dist/prop/at/shared.cjs +1 -3
- package/dist/prop/at/shared.mjs +1 -2
- package/dist/prop/bosswind/browser.cjs +4 -5
- package/dist/prop/bosswind/browser.mjs +1 -3
- package/dist/prop/bosswind/runtime-only.cjs +4 -5
- package/dist/prop/bosswind/runtime-only.mjs +1 -3
- package/dist/prop/bosswind/selectors.cjs +1 -3
- package/dist/prop/bosswind/selectors.mjs +1 -2
- package/dist/prop/bosswind/server.cjs +12 -12
- package/dist/prop/bosswind/server.mjs +6 -7
- package/dist/prop/bosswind/shared.cjs +59 -9
- package/dist/prop/bosswind/shared.mjs +57 -8
- package/dist/prop/bosswind/tailwind-theme.cjs +2 -38
- package/dist/prop/bosswind/tailwind-theme.mjs +2 -37
- package/dist/prop/child/runtime-only.cjs +2 -3
- package/dist/prop/child/runtime-only.mjs +1 -2
- package/dist/prop/child/server.cjs +10 -11
- package/dist/prop/child/server.mjs +2 -4
- package/dist/prop/css/getDtsTemplate.cjs +7 -6
- package/dist/prop/css/getDtsTemplate.mjs +5 -4
- package/dist/prop/css/runtime-only.cjs +4 -5
- package/dist/prop/css/runtime-only.mjs +1 -3
- package/dist/prop/css/server.cjs +12 -13
- package/dist/prop/css/server.mjs +4 -6
- package/dist/prop/pseudo/runtime-only.cjs +3 -5
- package/dist/prop/pseudo/runtime-only.mjs +1 -3
- package/dist/prop/pseudo/server.cjs +19 -20
- package/dist/prop/pseudo/server.mjs +11 -13
- package/dist/prop/pseudo/shared.cjs +1 -3
- package/dist/prop/pseudo/shared.mjs +1 -2
- package/dist/reset/server.cjs +10 -11
- package/dist/reset/server.mjs +2 -4
- package/dist/runtime/index.cjs +5 -6
- package/dist/runtime/index.mjs +1 -3
- package/dist/runtime/preact.cjs +3 -3
- package/dist/runtime/preact.mjs +1 -2
- package/dist/runtime/qwik.cjs +3 -4
- package/dist/runtime/qwik.mjs +1 -3
- package/dist/runtime/react.cjs +3 -3
- package/dist/runtime/react.mjs +1 -2
- package/dist/runtime/solid.cjs +3 -4
- package/dist/runtime/solid.mjs +1 -3
- package/dist/runtime/stencil.cjs +4 -5
- package/dist/runtime/stencil.mjs +1 -3
- package/dist/runtime/style.cjs +2 -3
- package/dist/runtime/style.mjs +1 -2
- package/dist/shared/boundaries.cjs +4 -6
- package/dist/shared/boundaries.mjs +1 -3
- package/dist/shared/customCss.cjs +1 -3
- package/dist/shared/customCss.mjs +1 -2
- package/dist/shared/debug.cjs +2 -4
- package/dist/shared/debug.mjs +2 -3
- package/dist/shared/file.cjs +3 -5
- package/dist/shared/file.mjs +1 -3
- package/dist/shared/framework.cjs +1 -3
- package/dist/shared/framework.mjs +1 -2
- package/dist/shared/json.cjs +1 -3
- package/dist/shared/json.mjs +1 -2
- package/dist/shared/types.cjs +1 -3
- package/dist/shared/types.mjs +1 -2
- package/dist/strategy/classic/runtime-only.cjs +15 -16
- package/dist/strategy/classic/runtime-only.mjs +3 -5
- package/dist/strategy/classname-first/browser.cjs +7 -8
- package/dist/strategy/classname-first/browser.mjs +1 -3
- package/dist/strategy/classname-first/runtime-only.cjs +13 -14
- package/dist/strategy/classname-first/runtime-only.mjs +1 -3
- package/dist/strategy/classname-first/server.cjs +9 -11
- package/dist/strategy/classname-first/server.mjs +3 -5
- package/dist/strategy/classname-only/server.cjs +8 -10
- package/dist/strategy/classname-only/server.mjs +2 -4
- package/dist/strategy/inline-first/browser.cjs +6 -7
- package/dist/strategy/inline-first/browser.mjs +1 -3
- package/dist/strategy/inline-first/runtime-only.cjs +12 -13
- package/dist/strategy/inline-first/runtime-only.mjs +1 -3
- package/dist/strategy/inline-first/server.cjs +9 -11
- package/dist/strategy/inline-first/server.mjs +3 -5
- package/dist/strategy/runtime/runtime-only.cjs +6 -8
- package/dist/strategy/runtime/runtime-only.mjs +1 -4
- package/dist/strategy/runtime/server.cjs +11 -12
- package/dist/strategy/runtime/server.mjs +2 -4
- package/dist/strategy/runtime-only/css.cjs +5 -6
- package/dist/strategy/runtime-only/css.mjs +4 -5
- package/dist/tasks/build.cjs +8 -10
- package/dist/tasks/build.mjs +1 -3
- package/dist/tasks/compile.cjs +2 -4
- package/dist/tasks/compile.mjs +1 -3
- package/dist/tasks/postcss.cjs +11 -13
- package/dist/tasks/postcss.mjs +1 -3
- package/dist/tasks/session.cjs +4 -6
- package/dist/tasks/session.mjs +1 -3
- package/dist/tasks/watch.cjs +7 -9
- package/dist/tasks/watch.mjs +1 -3
- package/dist/transform/cache.cjs +1 -3
- package/dist/transform/cache.mjs +1 -2
- package/dist/transform/processFile.cjs +4 -6
- package/dist/transform/processFile.mjs +1 -3
- package/dist/use/token/browser.cjs +4 -5
- package/dist/use/token/browser.mjs +1 -3
- package/dist/use/token/normalize.cjs +1 -3
- package/dist/use/token/normalize.mjs +1 -2
- package/dist/use/token/propMap.cjs +1 -3
- package/dist/use/token/propMap.mjs +1 -2
- package/dist/use/token/runtime-only.cjs +5 -6
- package/dist/use/token/runtime-only.mjs +1 -3
- package/dist/use/token/server.cjs +13 -14
- package/dist/use/token/server.mjs +4 -6
- package/dist/use/token/vars.cjs +2 -4
- package/dist/use/token/vars.mjs +1 -3
- package/package.json +23 -23
- package/dist/_virtual/rolldown_runtime.mjs +0 -20
package/dist/cli/index.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
3
|
-
const require_api_config = require(
|
|
4
|
-
const require_utils = require(
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_api_config = require("../api/config.cjs");
|
|
4
|
+
const require_utils = require("./utils.cjs");
|
|
5
5
|
let _clack_prompts = require("@clack/prompts");
|
|
6
6
|
let yargs_yargs = require("yargs/yargs");
|
|
7
|
-
yargs_yargs =
|
|
7
|
+
yargs_yargs = require_runtime.__toESM(yargs_yargs);
|
|
8
8
|
let yargs_helpers = require("yargs/helpers");
|
|
9
|
-
|
|
10
9
|
//#region src/cli/index.ts
|
|
11
10
|
(0, _clack_prompts.intro)("boss");
|
|
12
11
|
(async () => {
|
|
@@ -26,5 +25,4 @@ let yargs_helpers = require("yargs/helpers");
|
|
|
26
25
|
userConfig
|
|
27
26
|
});
|
|
28
27
|
})();
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
28
|
+
//#endregion
|
package/dist/cli/index.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { runTask } from "./utils.mjs";
|
|
|
4
4
|
import { intro } from "@clack/prompts";
|
|
5
5
|
import yargs from "yargs/yargs";
|
|
6
6
|
import { hideBin } from "yargs/helpers";
|
|
7
|
-
|
|
8
7
|
//#region src/cli/index.ts
|
|
9
8
|
intro("boss");
|
|
10
9
|
(async () => {
|
|
@@ -24,6 +23,5 @@ intro("boss");
|
|
|
24
23
|
userConfig
|
|
25
24
|
});
|
|
26
25
|
})();
|
|
27
|
-
|
|
28
26
|
//#endregion
|
|
29
|
-
export {
|
|
27
|
+
export {};
|
package/dist/cli/tasks/build.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
const require_build = require(
|
|
3
|
-
require(
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_build = require("../../tasks/build.cjs");
|
|
3
|
+
require("../build.cjs");
|
|
4
4
|
let _clack_prompts = require("@clack/prompts");
|
|
5
|
-
|
|
6
5
|
//#region src/cli/tasks/build.ts
|
|
7
6
|
const build = async (config) => {
|
|
8
7
|
return [{ prompt: async () => {
|
|
@@ -18,7 +17,5 @@ const build = async (config) => {
|
|
|
18
17
|
}
|
|
19
18
|
} }];
|
|
20
19
|
};
|
|
21
|
-
var build_default = build;
|
|
22
|
-
|
|
23
20
|
//#endregion
|
|
24
|
-
exports.default =
|
|
21
|
+
exports.default = build;
|
package/dist/cli/tasks/build.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { runBuild } from "../../tasks/build.mjs";
|
|
2
2
|
import "../build.mjs";
|
|
3
3
|
import { log } from "@clack/prompts";
|
|
4
|
-
|
|
5
4
|
//#region src/cli/tasks/build.ts
|
|
6
5
|
const build = async (config) => {
|
|
7
6
|
return [{ prompt: async () => {
|
|
@@ -17,7 +16,5 @@ const build = async (config) => {
|
|
|
17
16
|
}
|
|
18
17
|
} }];
|
|
19
18
|
};
|
|
20
|
-
var build_default = build;
|
|
21
|
-
|
|
22
19
|
//#endregion
|
|
23
|
-
export {
|
|
20
|
+
export { build as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const require_utils = require(
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_utils = require("../utils.cjs");
|
|
3
3
|
let _clack_prompts = require("@clack/prompts");
|
|
4
|
-
|
|
5
4
|
//#region src/cli/tasks/choose.ts
|
|
6
5
|
const chooseTask = async (config) => {
|
|
7
6
|
return [{ prompt: async () => {
|
|
@@ -41,7 +40,5 @@ const chooseTask = async (config) => {
|
|
|
41
40
|
return true;
|
|
42
41
|
} }];
|
|
43
42
|
};
|
|
44
|
-
var choose_default = chooseTask;
|
|
45
|
-
|
|
46
43
|
//#endregion
|
|
47
|
-
exports.default =
|
|
44
|
+
exports.default = chooseTask;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { cancelIf, runTask } from "../utils.mjs";
|
|
2
2
|
import { select } from "@clack/prompts";
|
|
3
|
-
|
|
4
3
|
//#region src/cli/tasks/choose.ts
|
|
5
4
|
const chooseTask = async (config) => {
|
|
6
5
|
return [{ prompt: async () => {
|
|
@@ -40,7 +39,5 @@ const chooseTask = async (config) => {
|
|
|
40
39
|
return true;
|
|
41
40
|
} }];
|
|
42
41
|
};
|
|
43
|
-
var choose_default = chooseTask;
|
|
44
|
-
|
|
45
42
|
//#endregion
|
|
46
|
-
export {
|
|
43
|
+
export { chooseTask as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const require_compile = require(
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_compile = require("../../tasks/compile.cjs");
|
|
3
3
|
let _clack_prompts = require("@clack/prompts");
|
|
4
|
-
|
|
5
4
|
//#region src/cli/tasks/compile.ts
|
|
6
5
|
const compile = async (config) => {
|
|
7
6
|
return [{ prompt: async () => {
|
|
@@ -62,7 +61,5 @@ const coerceArgValue = (value) => {
|
|
|
62
61
|
if (value === "false") return false;
|
|
63
62
|
return value;
|
|
64
63
|
};
|
|
65
|
-
var compile_default = compile;
|
|
66
|
-
|
|
67
64
|
//#endregion
|
|
68
|
-
exports.default =
|
|
65
|
+
exports.default = compile;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { runCompile } from "../../tasks/compile.mjs";
|
|
2
2
|
import { log } from "@clack/prompts";
|
|
3
|
-
|
|
4
3
|
//#region src/cli/tasks/compile.ts
|
|
5
4
|
const compile = async (config) => {
|
|
6
5
|
return [{ prompt: async () => {
|
|
@@ -61,7 +60,5 @@ const coerceArgValue = (value) => {
|
|
|
61
60
|
if (value === "false") return false;
|
|
62
61
|
return value;
|
|
63
62
|
};
|
|
64
|
-
var compile_default = compile;
|
|
65
|
-
|
|
66
63
|
//#endregion
|
|
67
|
-
export {
|
|
64
|
+
export { compile as default };
|
package/dist/cli/tasks/dev.cjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_shared = require(
|
|
3
|
-
const require_dev_server = require(
|
|
4
|
-
const require_port = require(
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_shared = require("../../dev/shared.cjs");
|
|
3
|
+
const require_dev_server = require("../../dev/server.cjs");
|
|
4
|
+
const require_port = require("../../dev/port.cjs");
|
|
5
5
|
let node_fs_promises = require("node:fs/promises");
|
|
6
|
-
node_fs_promises =
|
|
6
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
7
7
|
let node_path = require("node:path");
|
|
8
|
-
node_path =
|
|
8
|
+
node_path = require_runtime.__toESM(node_path);
|
|
9
9
|
let _clack_prompts = require("@clack/prompts");
|
|
10
|
-
|
|
11
10
|
//#region src/cli/tasks/dev.ts
|
|
12
11
|
const dev = async (config) => {
|
|
13
12
|
return [{ prompt: async () => {
|
|
@@ -21,7 +20,7 @@ const dev = async (config) => {
|
|
|
21
20
|
});
|
|
22
21
|
const configPath = await resolveConfigPath(userConfig);
|
|
23
22
|
if (configPath) {
|
|
24
|
-
if (!await require_port.updateDevPort(configPath, port, port !==
|
|
23
|
+
if (!await require_port.updateDevPort(configPath, port, port !== 48400)) _clack_prompts.log.warn(`Skipping devServer update for ${configPath}.`);
|
|
25
24
|
} else _clack_prompts.log.warn("No boss config found; skipping devServer update.");
|
|
26
25
|
const runtimeDir = userConfig.folder ?? configDir;
|
|
27
26
|
await require_port.updateRuntimePort(node_path.default.join(process.cwd(), runtimeDir, "index.js"), port);
|
|
@@ -45,7 +44,5 @@ const resolveConfigPath = async (userConfig) => {
|
|
|
45
44
|
}
|
|
46
45
|
return null;
|
|
47
46
|
};
|
|
48
|
-
var dev_default = dev;
|
|
49
|
-
|
|
50
47
|
//#endregion
|
|
51
|
-
exports.default =
|
|
48
|
+
exports.default = dev;
|
package/dist/cli/tasks/dev.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { updateDevPort, updateRuntimePort } from "../../dev/port.mjs";
|
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { log } from "@clack/prompts";
|
|
7
|
-
|
|
8
7
|
//#region src/cli/tasks/dev.ts
|
|
9
8
|
const dev = async (config) => {
|
|
10
9
|
return [{ prompt: async () => {
|
|
@@ -18,7 +17,7 @@ const dev = async (config) => {
|
|
|
18
17
|
});
|
|
19
18
|
const configPath = await resolveConfigPath(userConfig);
|
|
20
19
|
if (configPath) {
|
|
21
|
-
if (!await updateDevPort(configPath, port, port !==
|
|
20
|
+
if (!await updateDevPort(configPath, port, port !== 48400)) log.warn(`Skipping devServer update for ${configPath}.`);
|
|
22
21
|
} else log.warn("No boss config found; skipping devServer update.");
|
|
23
22
|
const runtimeDir = userConfig.folder ?? configDir;
|
|
24
23
|
await updateRuntimePort(path.join(process.cwd(), runtimeDir, "index.js"), port);
|
|
@@ -42,7 +41,5 @@ const resolveConfigPath = async (userConfig) => {
|
|
|
42
41
|
}
|
|
43
42
|
return null;
|
|
44
43
|
};
|
|
45
|
-
var dev_default = dev;
|
|
46
|
-
|
|
47
44
|
//#endregion
|
|
48
|
-
export {
|
|
45
|
+
export { dev as default };
|
package/dist/cli/tasks/init.cjs
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_api_server = require(
|
|
3
|
-
const require_json = require(
|
|
4
|
-
const require_utils = require(
|
|
5
|
-
const require_detect_fw_index = require(
|
|
6
|
-
const require_parser_jsx_server = require(
|
|
7
|
-
const require_parser_classname_server = require(
|
|
8
|
-
const require_prop_pseudo_server = require(
|
|
9
|
-
const require_prop_at_server = require(
|
|
10
|
-
const require_prop_child_server = require(
|
|
11
|
-
const require_prop_css_server = require(
|
|
12
|
-
const require_prop_bosswind_server = require(
|
|
13
|
-
const require_strategy_inline_first_server = require(
|
|
14
|
-
const require_strategy_classname_first_server = require(
|
|
15
|
-
const require_strategy_runtime_server = require(
|
|
16
|
-
const require_strategy_classname_only_server = require(
|
|
17
|
-
const require_reset_server = require(
|
|
18
|
-
const require_fontsource_server = require(
|
|
19
|
-
const require_use_token_server = require(
|
|
20
|
-
const require_ai_server = require(
|
|
21
|
-
const require_dev_plugin_server = require(
|
|
22
|
-
const require_init = require(
|
|
23
|
-
const require_types = require(
|
|
24
|
-
const require_types$1 = require(
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_api_server = require("../../api/server.cjs");
|
|
3
|
+
const require_json = require("../../shared/json.cjs");
|
|
4
|
+
const require_utils = require("../utils.cjs");
|
|
5
|
+
const require_detect_fw_index = require("../../detect-fw/index.cjs");
|
|
6
|
+
const require_parser_jsx_server = require("../../parser/jsx/server.cjs");
|
|
7
|
+
const require_parser_classname_server = require("../../parser/classname/server.cjs");
|
|
8
|
+
const require_prop_pseudo_server = require("../../prop/pseudo/server.cjs");
|
|
9
|
+
const require_prop_at_server = require("../../prop/at/server.cjs");
|
|
10
|
+
const require_prop_child_server = require("../../prop/child/server.cjs");
|
|
11
|
+
const require_prop_css_server = require("../../prop/css/server.cjs");
|
|
12
|
+
const require_prop_bosswind_server = require("../../prop/bosswind/server.cjs");
|
|
13
|
+
const require_strategy_inline_first_server = require("../../strategy/inline-first/server.cjs");
|
|
14
|
+
const require_strategy_classname_first_server = require("../../strategy/classname-first/server.cjs");
|
|
15
|
+
const require_strategy_runtime_server = require("../../strategy/runtime/server.cjs");
|
|
16
|
+
const require_strategy_classname_only_server = require("../../strategy/classname-only/server.cjs");
|
|
17
|
+
const require_reset_server = require("../../reset/server.cjs");
|
|
18
|
+
const require_fontsource_server = require("../../fontsource/server.cjs");
|
|
19
|
+
const require_use_token_server = require("../../use/token/server.cjs");
|
|
20
|
+
const require_ai_server = require("../../ai/server.cjs");
|
|
21
|
+
const require_dev_plugin_server = require("../../dev/plugin/server.cjs");
|
|
22
|
+
const require_init = require("../templates/init.cjs");
|
|
23
|
+
const require_types = require("../../shared/types.cjs");
|
|
24
|
+
const require_types$1 = require("../types.cjs");
|
|
25
25
|
let node_fs_promises = require("node:fs/promises");
|
|
26
|
-
node_fs_promises =
|
|
26
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
27
27
|
let node_path = require("node:path");
|
|
28
|
-
node_path =
|
|
28
|
+
node_path = require_runtime.__toESM(node_path);
|
|
29
29
|
let _clack_prompts = require("@clack/prompts");
|
|
30
30
|
let pluvo = require("pluvo");
|
|
31
|
-
pluvo =
|
|
32
|
-
|
|
31
|
+
pluvo = require_runtime.__toESM(pluvo);
|
|
33
32
|
//#region src/cli/tasks/init.ts
|
|
34
33
|
const EXTENSIONS = "html,js,jsx,mjs,cjs,ts,tsx,mdx,md";
|
|
35
34
|
const INIT_COMMENT_STYLES = {
|
|
@@ -1086,7 +1085,7 @@ const findExportIdentifier = (content) => {
|
|
|
1086
1085
|
};
|
|
1087
1086
|
const findArrayBoundsByIdentifier = (content, identifier) => {
|
|
1088
1087
|
const escaped = escapeRegExp(identifier);
|
|
1089
|
-
const match = content.match(
|
|
1088
|
+
const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\[`));
|
|
1090
1089
|
if (!match) return null;
|
|
1091
1090
|
if (match.index == null) return null;
|
|
1092
1091
|
const startIndex = match.index + match[0].length - 1;
|
|
@@ -1099,7 +1098,7 @@ const findArrayBoundsByIdentifier = (content, identifier) => {
|
|
|
1099
1098
|
};
|
|
1100
1099
|
const findDefineConfigArrayBoundsByIdentifier = (content, identifier) => {
|
|
1101
1100
|
const escaped = escapeRegExp(identifier);
|
|
1102
|
-
const match = content.match(
|
|
1101
|
+
const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*defineConfig\\s*\\(`));
|
|
1103
1102
|
if (!match) return null;
|
|
1104
1103
|
if (match.index == null) return null;
|
|
1105
1104
|
return findDefineConfigArrayBounds(content, match.index + match[0].length - 1);
|
|
@@ -1118,7 +1117,7 @@ const findDefineConfigArrayBounds = (content, callStart) => {
|
|
|
1118
1117
|
};
|
|
1119
1118
|
const findObjectStartByIdentifier = (content, identifier) => {
|
|
1120
1119
|
const escaped = escapeRegExp(identifier);
|
|
1121
|
-
const match = content.match(
|
|
1120
|
+
const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\{`));
|
|
1122
1121
|
if (!match) return null;
|
|
1123
1122
|
if (match.index == null) return null;
|
|
1124
1123
|
return match.index + match[0].length - 1;
|
|
@@ -1211,11 +1210,11 @@ const needsArrayComma = (content, bounds) => {
|
|
|
1211
1210
|
return lastChar !== "[" && lastChar !== ",";
|
|
1212
1211
|
};
|
|
1213
1212
|
const ensureArrayEntry = (content, key, entry) => {
|
|
1214
|
-
const arrayMatch = content.match(
|
|
1215
|
-
const stringMatch = !arrayMatch ? content.match(
|
|
1213
|
+
const arrayMatch = content.match(new RegExp(`${key}\\s*:\\s*\\[`));
|
|
1214
|
+
const stringMatch = !arrayMatch ? content.match(new RegExp(`${key}\\s*:\\s*(['"][^'"]+['"])`)) : null;
|
|
1216
1215
|
if (stringMatch) {
|
|
1217
|
-
const entryValue
|
|
1218
|
-
if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue
|
|
1216
|
+
const entryValue = entry.replace(/^['"]|['"]$/g, "");
|
|
1217
|
+
if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue) return {
|
|
1219
1218
|
updated: false,
|
|
1220
1219
|
content
|
|
1221
1220
|
};
|
|
@@ -1231,10 +1230,10 @@ const ensureArrayEntry = (content, key, entry) => {
|
|
|
1231
1230
|
updated: false,
|
|
1232
1231
|
content
|
|
1233
1232
|
};
|
|
1234
|
-
const insertion
|
|
1233
|
+
const insertion = `\n${`${getIndentFromIndex(content, objectStart)} `}${key}: [${entry}],`;
|
|
1235
1234
|
return {
|
|
1236
1235
|
updated: true,
|
|
1237
|
-
content: `${content.slice(0, objectStart + 1)}${insertion
|
|
1236
|
+
content: `${content.slice(0, objectStart + 1)}${insertion}${content.slice(objectStart + 1)}`
|
|
1238
1237
|
};
|
|
1239
1238
|
}
|
|
1240
1239
|
if (arrayMatch.index == null) return {
|
|
@@ -1248,7 +1247,7 @@ const ensureArrayEntry = (content, key, entry) => {
|
|
|
1248
1247
|
content
|
|
1249
1248
|
};
|
|
1250
1249
|
const entryValue = entry.replace(/^['"]|['"]$/g, "");
|
|
1251
|
-
if (
|
|
1250
|
+
if (new RegExp(`['"]${escapeRegExp(entryValue)}['"]`).test(content.slice(startIndex, endIndex))) return {
|
|
1252
1251
|
updated: false,
|
|
1253
1252
|
content
|
|
1254
1253
|
};
|
|
@@ -1512,7 +1511,7 @@ const insertManagedBlock = (content, lines) => {
|
|
|
1512
1511
|
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1513
1512
|
const hasImportPath = (content, importPath) => {
|
|
1514
1513
|
const escaped = escapeRegExp(importPath);
|
|
1515
|
-
return
|
|
1514
|
+
return new RegExp(`['"]${escaped}['"]`).test(content);
|
|
1516
1515
|
};
|
|
1517
1516
|
const insertImports = (content, importLines) => {
|
|
1518
1517
|
const lines = content.split("\n");
|
|
@@ -1862,7 +1861,5 @@ const logInitSummary = ({ configDir, isNext, postcssMode, postcssDetection, conf
|
|
|
1862
1861
|
if (globalsEnabled) _clack_prompts.log.message("Global $$ enabled for JSX usage.");
|
|
1863
1862
|
if (eslintUpdated) _clack_prompts.log.message(useEslintPlugin ? "ESLint updated with Boss CSS plugin." : "ESLint updated with $$ globals.");
|
|
1864
1863
|
};
|
|
1865
|
-
var init_default = init;
|
|
1866
|
-
|
|
1867
1864
|
//#endregion
|
|
1868
|
-
exports.default =
|
|
1865
|
+
exports.default = init;
|
package/dist/cli/tasks/init.mjs
CHANGED
|
@@ -25,7 +25,6 @@ import fs from "node:fs/promises";
|
|
|
25
25
|
import path from "node:path";
|
|
26
26
|
import { confirm, log, multiselect, select, text } from "@clack/prompts";
|
|
27
27
|
import pluvo, { DEFAULT_COMMENT_STYLES } from "pluvo";
|
|
28
|
-
|
|
29
28
|
//#region src/cli/tasks/init.ts
|
|
30
29
|
const EXTENSIONS = "html,js,jsx,mjs,cjs,ts,tsx,mdx,md";
|
|
31
30
|
const INIT_COMMENT_STYLES = {
|
|
@@ -1082,7 +1081,7 @@ const findExportIdentifier = (content) => {
|
|
|
1082
1081
|
};
|
|
1083
1082
|
const findArrayBoundsByIdentifier = (content, identifier) => {
|
|
1084
1083
|
const escaped = escapeRegExp(identifier);
|
|
1085
|
-
const match = content.match(
|
|
1084
|
+
const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\[`));
|
|
1086
1085
|
if (!match) return null;
|
|
1087
1086
|
if (match.index == null) return null;
|
|
1088
1087
|
const startIndex = match.index + match[0].length - 1;
|
|
@@ -1095,7 +1094,7 @@ const findArrayBoundsByIdentifier = (content, identifier) => {
|
|
|
1095
1094
|
};
|
|
1096
1095
|
const findDefineConfigArrayBoundsByIdentifier = (content, identifier) => {
|
|
1097
1096
|
const escaped = escapeRegExp(identifier);
|
|
1098
|
-
const match = content.match(
|
|
1097
|
+
const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*defineConfig\\s*\\(`));
|
|
1099
1098
|
if (!match) return null;
|
|
1100
1099
|
if (match.index == null) return null;
|
|
1101
1100
|
return findDefineConfigArrayBounds(content, match.index + match[0].length - 1);
|
|
@@ -1114,7 +1113,7 @@ const findDefineConfigArrayBounds = (content, callStart) => {
|
|
|
1114
1113
|
};
|
|
1115
1114
|
const findObjectStartByIdentifier = (content, identifier) => {
|
|
1116
1115
|
const escaped = escapeRegExp(identifier);
|
|
1117
|
-
const match = content.match(
|
|
1116
|
+
const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\{`));
|
|
1118
1117
|
if (!match) return null;
|
|
1119
1118
|
if (match.index == null) return null;
|
|
1120
1119
|
return match.index + match[0].length - 1;
|
|
@@ -1207,11 +1206,11 @@ const needsArrayComma = (content, bounds) => {
|
|
|
1207
1206
|
return lastChar !== "[" && lastChar !== ",";
|
|
1208
1207
|
};
|
|
1209
1208
|
const ensureArrayEntry = (content, key, entry) => {
|
|
1210
|
-
const arrayMatch = content.match(
|
|
1211
|
-
const stringMatch = !arrayMatch ? content.match(
|
|
1209
|
+
const arrayMatch = content.match(new RegExp(`${key}\\s*:\\s*\\[`));
|
|
1210
|
+
const stringMatch = !arrayMatch ? content.match(new RegExp(`${key}\\s*:\\s*(['"][^'"]+['"])`)) : null;
|
|
1212
1211
|
if (stringMatch) {
|
|
1213
|
-
const entryValue
|
|
1214
|
-
if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue
|
|
1212
|
+
const entryValue = entry.replace(/^['"]|['"]$/g, "");
|
|
1213
|
+
if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue) return {
|
|
1215
1214
|
updated: false,
|
|
1216
1215
|
content
|
|
1217
1216
|
};
|
|
@@ -1227,10 +1226,10 @@ const ensureArrayEntry = (content, key, entry) => {
|
|
|
1227
1226
|
updated: false,
|
|
1228
1227
|
content
|
|
1229
1228
|
};
|
|
1230
|
-
const insertion
|
|
1229
|
+
const insertion = `\n${`${getIndentFromIndex(content, objectStart)} `}${key}: [${entry}],`;
|
|
1231
1230
|
return {
|
|
1232
1231
|
updated: true,
|
|
1233
|
-
content: `${content.slice(0, objectStart + 1)}${insertion
|
|
1232
|
+
content: `${content.slice(0, objectStart + 1)}${insertion}${content.slice(objectStart + 1)}`
|
|
1234
1233
|
};
|
|
1235
1234
|
}
|
|
1236
1235
|
if (arrayMatch.index == null) return {
|
|
@@ -1244,7 +1243,7 @@ const ensureArrayEntry = (content, key, entry) => {
|
|
|
1244
1243
|
content
|
|
1245
1244
|
};
|
|
1246
1245
|
const entryValue = entry.replace(/^['"]|['"]$/g, "");
|
|
1247
|
-
if (
|
|
1246
|
+
if (new RegExp(`['"]${escapeRegExp(entryValue)}['"]`).test(content.slice(startIndex, endIndex))) return {
|
|
1248
1247
|
updated: false,
|
|
1249
1248
|
content
|
|
1250
1249
|
};
|
|
@@ -1508,7 +1507,7 @@ const insertManagedBlock = (content, lines) => {
|
|
|
1508
1507
|
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1509
1508
|
const hasImportPath = (content, importPath) => {
|
|
1510
1509
|
const escaped = escapeRegExp(importPath);
|
|
1511
|
-
return
|
|
1510
|
+
return new RegExp(`['"]${escaped}['"]`).test(content);
|
|
1512
1511
|
};
|
|
1513
1512
|
const insertImports = (content, importLines) => {
|
|
1514
1513
|
const lines = content.split("\n");
|
|
@@ -1858,7 +1857,5 @@ const logInitSummary = ({ configDir, isNext, postcssMode, postcssDetection, conf
|
|
|
1858
1857
|
if (globalsEnabled) log.message("Global $$ enabled for JSX usage.");
|
|
1859
1858
|
if (eslintUpdated) log.message(useEslintPlugin ? "ESLint updated with Boss CSS plugin." : "ESLint updated with $$ globals.");
|
|
1860
1859
|
};
|
|
1861
|
-
var init_default = init;
|
|
1862
|
-
|
|
1863
1860
|
//#endregion
|
|
1864
|
-
export {
|
|
1861
|
+
export { init as default };
|
package/dist/cli/tasks/watch.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const require_watch = require(
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_watch = require("../../tasks/watch.cjs");
|
|
3
3
|
let _clack_prompts = require("@clack/prompts");
|
|
4
|
-
|
|
5
4
|
//#region src/cli/tasks/watch.ts
|
|
6
5
|
const watch = async (config) => {
|
|
7
6
|
return [{ prompt: async () => {
|
|
@@ -32,7 +31,5 @@ const watch = async (config) => {
|
|
|
32
31
|
return true;
|
|
33
32
|
} }];
|
|
34
33
|
};
|
|
35
|
-
var watch_default = watch;
|
|
36
|
-
|
|
37
34
|
//#endregion
|
|
38
|
-
exports.default =
|
|
35
|
+
exports.default = watch;
|
package/dist/cli/tasks/watch.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { runWatch } from "../../tasks/watch.mjs";
|
|
2
2
|
import { log } from "@clack/prompts";
|
|
3
|
-
|
|
4
3
|
//#region src/cli/tasks/watch.ts
|
|
5
4
|
const watch = async (config) => {
|
|
6
5
|
return [{ prompt: async () => {
|
|
@@ -31,7 +30,5 @@ const watch = async (config) => {
|
|
|
31
30
|
return true;
|
|
32
31
|
} }];
|
|
33
32
|
};
|
|
34
|
-
var watch_default = watch;
|
|
35
|
-
|
|
36
33
|
//#endregion
|
|
37
|
-
export {
|
|
34
|
+
export { watch as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/cli/templates/init.ts
|
|
3
2
|
const configTemplate = `/* eslint-disable */
|
|
4
3
|
// @ts-check
|
|
@@ -74,9 +73,8 @@ const postcssTemplate = `export default {
|
|
|
74
73
|
},
|
|
75
74
|
}
|
|
76
75
|
`;
|
|
77
|
-
|
|
78
76
|
//#endregion
|
|
79
77
|
exports.configTemplate = configTemplate;
|
|
80
78
|
exports.jsconfigTemplate = jsconfigTemplate;
|
|
81
79
|
exports.packageTemplate = packageTemplate;
|
|
82
|
-
exports.postcssTemplate = postcssTemplate;
|
|
80
|
+
exports.postcssTemplate = postcssTemplate;
|
package/dist/cli/types.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
require("../shared/types.cjs");
|
|
3
2
|
//#region src/cli/types.ts
|
|
4
3
|
let PackageManagerType = /* @__PURE__ */ function(PackageManagerType) {
|
|
5
4
|
PackageManagerType["NPM"] = "npm";
|
|
@@ -8,6 +7,5 @@ let PackageManagerType = /* @__PURE__ */ function(PackageManagerType) {
|
|
|
8
7
|
PackageManagerType["BUN"] = "bun";
|
|
9
8
|
return PackageManagerType;
|
|
10
9
|
}({});
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
exports.PackageManagerType = PackageManagerType;
|
|
11
|
+
exports.PackageManagerType = PackageManagerType;
|
package/dist/cli/types.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "../shared/types.mjs";
|
|
3
2
|
//#region src/cli/types.ts
|
|
4
3
|
let PackageManagerType = /* @__PURE__ */ function(PackageManagerType) {
|
|
5
4
|
PackageManagerType["NPM"] = "npm";
|
|
@@ -8,6 +7,5 @@ let PackageManagerType = /* @__PURE__ */ function(PackageManagerType) {
|
|
|
8
7
|
PackageManagerType["BUN"] = "bun";
|
|
9
8
|
return PackageManagerType;
|
|
10
9
|
}({});
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { PackageManagerType };
|
|
11
|
+
export { PackageManagerType };
|
package/dist/cli/utils.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let _clack_prompts = require("@clack/prompts");
|
|
3
|
-
|
|
4
3
|
//#region src/cli/utils.ts
|
|
5
4
|
const cancelIf = (value, message = "Operation cancelled.") => {
|
|
6
5
|
if ((0, _clack_prompts.isCancel)(value)) {
|
|
@@ -37,7 +36,6 @@ async function runTask(config) {
|
|
|
37
36
|
await prompt(config);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
|
|
41
39
|
//#endregion
|
|
42
40
|
exports.cancelIf = cancelIf;
|
|
43
|
-
exports.runTask = runTask;
|
|
41
|
+
exports.runTask = runTask;
|
package/dist/cli/utils.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { cancel, isCancel, log } from "@clack/prompts";
|
|
2
|
-
|
|
3
2
|
//#region src/cli/utils.ts
|
|
4
3
|
const cancelIf = (value, message = "Operation cancelled.") => {
|
|
5
4
|
if (isCancel(value)) {
|
|
@@ -36,6 +35,5 @@ async function runTask(config) {
|
|
|
36
35
|
await prompt(config);
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
|
-
|
|
40
38
|
//#endregion
|
|
41
|
-
export { cancelIf, runTask };
|
|
39
|
+
export { cancelIf, runTask };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let _emotion_hash = require("@emotion/hash");
|
|
3
|
-
_emotion_hash =
|
|
4
|
-
|
|
3
|
+
_emotion_hash = require_runtime.__toESM(_emotion_hash);
|
|
5
4
|
//#region src/compile/classname-strategy.ts
|
|
6
5
|
const shortestAlphabet = "cCsSxyzXYZwqWQ";
|
|
7
6
|
const isUnsafeUnicode = (codePoint) => {
|
|
@@ -74,6 +73,5 @@ const createClassNameMapper = (options) => {
|
|
|
74
73
|
}
|
|
75
74
|
};
|
|
76
75
|
};
|
|
77
|
-
|
|
78
76
|
//#endregion
|
|
79
|
-
exports.createClassNameMapper = createClassNameMapper;
|
|
77
|
+
exports.createClassNameMapper = createClassNameMapper;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import hash from "@emotion/hash";
|
|
2
|
-
|
|
3
2
|
//#region src/compile/classname-strategy.ts
|
|
4
3
|
const shortestAlphabet = "cCsSxyzXYZwqWQ";
|
|
5
4
|
const isUnsafeUnicode = (codePoint) => {
|
|
@@ -72,6 +71,5 @@ const createClassNameMapper = (options) => {
|
|
|
72
71
|
}
|
|
73
72
|
};
|
|
74
73
|
};
|
|
75
|
-
|
|
76
74
|
//#endregion
|
|
77
|
-
export { createClassNameMapper };
|
|
75
|
+
export { createClassNameMapper };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let _swc_core = require("@swc/core");
|
|
3
|
-
|
|
4
3
|
//#region src/compile/classname.ts
|
|
5
4
|
const tokenPrefix = "$$.token.";
|
|
6
5
|
const rewriteClassNameTokens = (input) => {
|
|
@@ -107,11 +106,11 @@ const isClassAttribute = (attr, classNameProp) => {
|
|
|
107
106
|
const rewriteSelector = (selector, options) => {
|
|
108
107
|
const grouped = parseGroupedSelector(selector);
|
|
109
108
|
if (grouped) {
|
|
110
|
-
const nextEntries = grouped.entries.map((entry
|
|
111
|
-
name: entry
|
|
112
|
-
rawValue: rewriteTokenValue(entry
|
|
109
|
+
const nextEntries = grouped.entries.map((entry) => ({
|
|
110
|
+
name: entry.name,
|
|
111
|
+
rawValue: rewriteTokenValue(entry.rawValue)
|
|
113
112
|
}));
|
|
114
|
-
if (nextEntries.length > 1 || options.expandSingleGroup) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry
|
|
113
|
+
if (nextEntries.length > 1 || options.expandSingleGroup) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry) => `${grouped.prefix}:${entry.name}:${entry.rawValue}`);
|
|
115
114
|
const [entry] = nextEntries;
|
|
116
115
|
return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
|
|
117
116
|
}
|
|
@@ -356,11 +355,10 @@ const rewriteQuotedSegments = (input, rewrite) => {
|
|
|
356
355
|
}
|
|
357
356
|
return output;
|
|
358
357
|
};
|
|
359
|
-
|
|
360
358
|
//#endregion
|
|
361
359
|
exports.collectBossClassTokensInSource = collectBossClassTokensInSource;
|
|
362
360
|
exports.collectBossClassTokensInText = collectBossClassTokensInText;
|
|
363
361
|
exports.rewriteClassNameTokensInElement = rewriteClassNameTokensInElement;
|
|
364
362
|
exports.rewriteClassNameTokensInSource = rewriteClassNameTokensInSource;
|
|
365
363
|
exports.rewriteClassNameTokensInText = rewriteClassNameTokensInText;
|
|
366
|
-
exports.rewriteClassNameTokensWithMap = rewriteClassNameTokensWithMap;
|
|
364
|
+
exports.rewriteClassNameTokensWithMap = rewriteClassNameTokensWithMap;
|