@bamboocss/node 1.57.6 → 1.58.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/index.cjs +32 -6
- package/dist/index.d.cts +12 -2
- package/dist/index.d.mts +12 -2
- package/dist/index.mjs +32 -6
- package/dist/native/darwin-arm64.node +0 -0
- package/dist/native/darwin-x64.node +0 -0
- package/dist/native/linux-arm64-gnu.node +0 -0
- package/dist/native/linux-x64-gnu.node +0 -0
- package/dist/native/win32-x64-msvc.node +0 -0
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -2952,6 +2952,7 @@ var ParserResult = class {
|
|
|
2952
2952
|
sva = /* @__PURE__ */ new Set();
|
|
2953
2953
|
token = /* @__PURE__ */ new Set();
|
|
2954
2954
|
viewTransition = /* @__PURE__ */ new Set();
|
|
2955
|
+
keyframes = /* @__PURE__ */ new Set();
|
|
2955
2956
|
recipe = /* @__PURE__ */ new Map();
|
|
2956
2957
|
pattern = /* @__PURE__ */ new Map();
|
|
2957
2958
|
filePath;
|
|
@@ -3039,6 +3040,11 @@ var ParserResult = class {
|
|
|
3039
3040
|
const encoder = this.encoder;
|
|
3040
3041
|
result.data.forEach((obj) => encoder.processViewTransition(obj));
|
|
3041
3042
|
}
|
|
3043
|
+
/** @param name What the call returns, which the extractor computed from the same stops. */
|
|
3044
|
+
setKeyframes(result, name) {
|
|
3045
|
+
this.keyframes.add(this.append(Object.assign({ type: "keyframes" }, result)));
|
|
3046
|
+
this.encoder.processKeyframes(name, result.data[0]);
|
|
3047
|
+
}
|
|
3042
3048
|
setPattern(name, result) {
|
|
3043
3049
|
(0, _bamboocss_shared.getOrCreateSet)(this.pattern, name).add(this.append(Object.assign({
|
|
3044
3050
|
type: "pattern",
|
|
@@ -3092,6 +3098,7 @@ var ParserResult = class {
|
|
|
3092
3098
|
sva: Array.from(this.sva),
|
|
3093
3099
|
token: Array.from(this.token),
|
|
3094
3100
|
viewTransition: Array.from(this.viewTransition),
|
|
3101
|
+
keyframes: Array.from(this.keyframes),
|
|
3095
3102
|
recipe: Object.fromEntries(Array.from(this.recipe.entries()).map(([key, value]) => [key, Array.from(value)])),
|
|
3096
3103
|
pattern: Object.fromEntries(Array.from(this.pattern.entries()).map(([key, value]) => [key, Array.from(value)]))
|
|
3097
3104
|
};
|
|
@@ -3761,6 +3768,12 @@ const unresolvedReasons = {
|
|
|
3761
3768
|
* its wording says which half is missing rather than implying the element is unstyled.
|
|
3762
3769
|
*/
|
|
3763
3770
|
function explainUnresolvedStyle(entry) {
|
|
3771
|
+
if (entry.kind === "keyframes") return {
|
|
3772
|
+
what: "these stops will not reach the stylesheet because they are not statically known",
|
|
3773
|
+
why: "The name `keyframes()` returns is a hash of its stops, so the build names a block, and writes it, only from stops it can read whole.",
|
|
3774
|
+
fix: "Write the stops out. What has to vary can be a custom property a stop reads, `opacity: 'var(--to)'`, or a property of the animation itself.",
|
|
3775
|
+
see: "https://bamboocss.com/docs/concepts/keyframes"
|
|
3776
|
+
};
|
|
3764
3777
|
const [loss] = unresolvedReasons[entry.reason](entry.prop ? `\`${entry.prop}\`` : "a property");
|
|
3765
3778
|
const what = entry.prop ? `${loss} at \`${entry.prop}\`` : loss;
|
|
3766
3779
|
return entry.kind === "recipe" ? {
|
|
@@ -4038,7 +4051,8 @@ var BambooContext = class extends _bamboocss_generator.Generator {
|
|
|
4038
4051
|
patternModules: this.imports.value.pattern,
|
|
4039
4052
|
recipeNames: this.recipes.keys,
|
|
4040
4053
|
patternNames: this.patterns.keys,
|
|
4041
|
-
references: options.references
|
|
4054
|
+
references: options.references,
|
|
4055
|
+
classPrefix: this.utility.prefix || void 0
|
|
4042
4056
|
});
|
|
4043
4057
|
};
|
|
4044
4058
|
/**
|
|
@@ -4191,7 +4205,8 @@ var BambooContext = class extends _bamboocss_generator.Generator {
|
|
|
4191
4205
|
"sva",
|
|
4192
4206
|
"cx",
|
|
4193
4207
|
"fallback",
|
|
4194
|
-
"viewTransition"
|
|
4208
|
+
"viewTransition",
|
|
4209
|
+
"keyframes"
|
|
4195
4210
|
]
|
|
4196
4211
|
},
|
|
4197
4212
|
{
|
|
@@ -4219,7 +4234,8 @@ var BambooContext = class extends _bamboocss_generator.Generator {
|
|
|
4219
4234
|
paths: values
|
|
4220
4235
|
})),
|
|
4221
4236
|
tokens: this.nativeTokens,
|
|
4222
|
-
jsx: this.jsx.isEnabled
|
|
4237
|
+
jsx: this.jsx.isEnabled,
|
|
4238
|
+
classPrefix: this.utility.prefix || void 0
|
|
4223
4239
|
};
|
|
4224
4240
|
let analyses;
|
|
4225
4241
|
try {
|
|
@@ -4311,7 +4327,9 @@ var BambooContext = class extends _bamboocss_generator.Generator {
|
|
|
4311
4327
|
} : void 0
|
|
4312
4328
|
};
|
|
4313
4329
|
const recipeConfig = call.kind === "css" && (call.importedName === "cva" || call.importedName === "sva");
|
|
4314
|
-
|
|
4330
|
+
const explicitlyNamed = recipeConfig && item.data.every((data) => typeof data.className === "string" && data.className !== "");
|
|
4331
|
+
const keyframes = call.kind === "css" && call.importedName === "keyframes";
|
|
4332
|
+
if (!explicitlyNamed && !keyframes) for (const loss of call.losses) result.unresolved.push({
|
|
4315
4333
|
kind: recipeConfig ? "recipe" : "atomic",
|
|
4316
4334
|
prop: loss.prop,
|
|
4317
4335
|
filePath,
|
|
@@ -4325,6 +4343,14 @@ var BambooContext = class extends _bamboocss_generator.Generator {
|
|
|
4325
4343
|
"sva"
|
|
4326
4344
|
].includes(call.importedName)) result.set(call.importedName, item);
|
|
4327
4345
|
else if (call.kind === "css" && call.importedName === "viewTransition") result.setViewTransition(item);
|
|
4346
|
+
else if (keyframes) if (call.value !== void 0) result.setKeyframes(item, call.value);
|
|
4347
|
+
else result.unresolved.push({
|
|
4348
|
+
kind: "keyframes",
|
|
4349
|
+
filePath,
|
|
4350
|
+
line: call.line,
|
|
4351
|
+
column: call.column,
|
|
4352
|
+
reason: "unresolvable-value"
|
|
4353
|
+
});
|
|
4328
4354
|
else if (call.kind === "pattern") result.setPattern(call.importedName, item);
|
|
4329
4355
|
else if (call.kind === "recipe") result.setRecipe(call.importedName, item, new Set(call.unresolvedKeys));
|
|
4330
4356
|
else if (call.kind === "token" || call.kind === "tokenValue") result.setToken(item, call.kind);
|
|
@@ -6466,11 +6492,11 @@ async function setupConfig(cwd, opts = {}) {
|
|
|
6466
6492
|
}
|
|
6467
6493
|
const { detect } = await import("package-manager-detector");
|
|
6468
6494
|
const pm = ((await detect({ cwd }))?.agent ?? "npm").split("@")[0];
|
|
6469
|
-
const cmd = pm === "npm" ? "
|
|
6495
|
+
const cmd = pm === "npm" ? "npx" : pm;
|
|
6470
6496
|
const file = (0, look_it_up.lookItUpSync)("tsconfig.json", cwd) ? "bamboo.config.ts" : "bamboo.config.mjs";
|
|
6471
|
-
_bamboocss_logger.logger.info("init:config", `creating bamboo config file: ${(0, _bamboocss_logger.quote)(file)}`);
|
|
6472
6497
|
if (!force && configFile) _bamboocss_logger.logger.warn("init:config", _bamboocss_core.messages.configExists(cmd));
|
|
6473
6498
|
else {
|
|
6499
|
+
_bamboocss_logger.logger.info("init:config", `creating bamboo config file: ${(0, _bamboocss_logger.quote)(file)}`);
|
|
6474
6500
|
const content = outdent.outdent`
|
|
6475
6501
|
import { defineConfig } from "@bamboocss/dev"
|
|
6476
6502
|
|
package/dist/index.d.cts
CHANGED
|
@@ -35,6 +35,8 @@ interface FoldSelectionProperty {
|
|
|
35
35
|
text: string;
|
|
36
36
|
inert: boolean;
|
|
37
37
|
resolved?: unknown;
|
|
38
|
+
/** An object or an array, written as one or known to be one: a value no variant is named. */
|
|
39
|
+
structured: boolean;
|
|
38
40
|
}
|
|
39
41
|
interface FoldSelection {
|
|
40
42
|
identifier?: string;
|
|
@@ -49,7 +51,7 @@ interface FoldCxArgument {
|
|
|
49
51
|
}
|
|
50
52
|
interface FoldCall {
|
|
51
53
|
name: string;
|
|
52
|
-
kind: 'css' | 'pattern' | 'recipe' | 'token' | 'tokenValue' | 'viewTransition' | 'cva-call' | 'cva' | 'sva' | 'cx';
|
|
54
|
+
kind: 'css' | 'pattern' | 'recipe' | 'token' | 'tokenValue' | 'viewTransition' | 'keyframes' | 'cva-call' | 'cva' | 'sva' | 'cx';
|
|
53
55
|
span: FoldSpan;
|
|
54
56
|
slot?: string;
|
|
55
57
|
slotEnd?: number;
|
|
@@ -70,6 +72,8 @@ interface FoldCall {
|
|
|
70
72
|
};
|
|
71
73
|
binding?: string;
|
|
72
74
|
cxArguments: FoldCxArgument[];
|
|
75
|
+
/** For an exact `keyframes()` call: the name it returns, which the fold writes in its place. */
|
|
76
|
+
value?: string;
|
|
73
77
|
}
|
|
74
78
|
/**
|
|
75
79
|
* Code the evaluator does not run. `statement`: a helper's body uses one — `subject` is its
|
|
@@ -184,8 +188,10 @@ interface UnresolvedStyle {
|
|
|
184
188
|
* did not have no rule behind them, so they are simply absent.
|
|
185
189
|
* - `recipe` — a `cva`/`sva` config. A declaration the build cannot see has no rule behind
|
|
186
190
|
* any selection that includes it.
|
|
191
|
+
* - `keyframes` — a `keyframes()` call. Its name is a hash of its stops, so of stops the build
|
|
192
|
+
* cannot read whole there is no name, and no block.
|
|
187
193
|
*/
|
|
188
|
-
kind: 'atomic' | 'recipe';
|
|
194
|
+
kind: 'atomic' | 'recipe' | 'keyframes';
|
|
189
195
|
/** The property the build could not resolve, or `undefined` when only the count differs. */
|
|
190
196
|
prop?: string;
|
|
191
197
|
filePath: string;
|
|
@@ -217,6 +223,7 @@ declare class ParserResult implements ParserResultInterface {
|
|
|
217
223
|
sva: Set<ResultItem>;
|
|
218
224
|
token: Set<ResultItem>;
|
|
219
225
|
viewTransition: Set<ResultItem>;
|
|
226
|
+
keyframes: Set<ResultItem>;
|
|
220
227
|
recipe: Map<string, Set<ResultItem>>;
|
|
221
228
|
pattern: Map<string, Set<ResultItem>>;
|
|
222
229
|
filePath: string | undefined;
|
|
@@ -260,6 +267,8 @@ declare class ParserResult implements ParserResultInterface {
|
|
|
260
267
|
*/
|
|
261
268
|
setToken(result: ResultItem, kind?: 'token' | 'tokenValue'): void;
|
|
262
269
|
setViewTransition(result: ResultItem): void;
|
|
270
|
+
/** @param name What the call returns, which the extractor computed from the same stops. */
|
|
271
|
+
setKeyframes(result: ResultItem, name: string): void;
|
|
263
272
|
setPattern(name: string, result: ResultItem): void;
|
|
264
273
|
/**
|
|
265
274
|
* @param unresolved The variant axes the call site passed and the build could not read.
|
|
@@ -280,6 +289,7 @@ declare class ParserResult implements ParserResultInterface {
|
|
|
280
289
|
sva: ResultItem[];
|
|
281
290
|
token: ResultItem[];
|
|
282
291
|
viewTransition: ResultItem[];
|
|
292
|
+
keyframes: ResultItem[];
|
|
283
293
|
recipe: {
|
|
284
294
|
[k: string]: ResultItem[];
|
|
285
295
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -35,6 +35,8 @@ interface FoldSelectionProperty {
|
|
|
35
35
|
text: string;
|
|
36
36
|
inert: boolean;
|
|
37
37
|
resolved?: unknown;
|
|
38
|
+
/** An object or an array, written as one or known to be one: a value no variant is named. */
|
|
39
|
+
structured: boolean;
|
|
38
40
|
}
|
|
39
41
|
interface FoldSelection {
|
|
40
42
|
identifier?: string;
|
|
@@ -49,7 +51,7 @@ interface FoldCxArgument {
|
|
|
49
51
|
}
|
|
50
52
|
interface FoldCall {
|
|
51
53
|
name: string;
|
|
52
|
-
kind: 'css' | 'pattern' | 'recipe' | 'token' | 'tokenValue' | 'viewTransition' | 'cva-call' | 'cva' | 'sva' | 'cx';
|
|
54
|
+
kind: 'css' | 'pattern' | 'recipe' | 'token' | 'tokenValue' | 'viewTransition' | 'keyframes' | 'cva-call' | 'cva' | 'sva' | 'cx';
|
|
53
55
|
span: FoldSpan;
|
|
54
56
|
slot?: string;
|
|
55
57
|
slotEnd?: number;
|
|
@@ -70,6 +72,8 @@ interface FoldCall {
|
|
|
70
72
|
};
|
|
71
73
|
binding?: string;
|
|
72
74
|
cxArguments: FoldCxArgument[];
|
|
75
|
+
/** For an exact `keyframes()` call: the name it returns, which the fold writes in its place. */
|
|
76
|
+
value?: string;
|
|
73
77
|
}
|
|
74
78
|
/**
|
|
75
79
|
* Code the evaluator does not run. `statement`: a helper's body uses one — `subject` is its
|
|
@@ -184,8 +188,10 @@ interface UnresolvedStyle {
|
|
|
184
188
|
* did not have no rule behind them, so they are simply absent.
|
|
185
189
|
* - `recipe` — a `cva`/`sva` config. A declaration the build cannot see has no rule behind
|
|
186
190
|
* any selection that includes it.
|
|
191
|
+
* - `keyframes` — a `keyframes()` call. Its name is a hash of its stops, so of stops the build
|
|
192
|
+
* cannot read whole there is no name, and no block.
|
|
187
193
|
*/
|
|
188
|
-
kind: 'atomic' | 'recipe';
|
|
194
|
+
kind: 'atomic' | 'recipe' | 'keyframes';
|
|
189
195
|
/** The property the build could not resolve, or `undefined` when only the count differs. */
|
|
190
196
|
prop?: string;
|
|
191
197
|
filePath: string;
|
|
@@ -217,6 +223,7 @@ declare class ParserResult implements ParserResultInterface {
|
|
|
217
223
|
sva: Set<ResultItem>;
|
|
218
224
|
token: Set<ResultItem>;
|
|
219
225
|
viewTransition: Set<ResultItem>;
|
|
226
|
+
keyframes: Set<ResultItem>;
|
|
220
227
|
recipe: Map<string, Set<ResultItem>>;
|
|
221
228
|
pattern: Map<string, Set<ResultItem>>;
|
|
222
229
|
filePath: string | undefined;
|
|
@@ -260,6 +267,8 @@ declare class ParserResult implements ParserResultInterface {
|
|
|
260
267
|
*/
|
|
261
268
|
setToken(result: ResultItem, kind?: 'token' | 'tokenValue'): void;
|
|
262
269
|
setViewTransition(result: ResultItem): void;
|
|
270
|
+
/** @param name What the call returns, which the extractor computed from the same stops. */
|
|
271
|
+
setKeyframes(result: ResultItem, name: string): void;
|
|
263
272
|
setPattern(name: string, result: ResultItem): void;
|
|
264
273
|
/**
|
|
265
274
|
* @param unresolved The variant axes the call site passed and the build could not read.
|
|
@@ -280,6 +289,7 @@ declare class ParserResult implements ParserResultInterface {
|
|
|
280
289
|
sva: ResultItem[];
|
|
281
290
|
token: ResultItem[];
|
|
282
291
|
viewTransition: ResultItem[];
|
|
292
|
+
keyframes: ResultItem[];
|
|
283
293
|
recipe: {
|
|
284
294
|
[k: string]: ResultItem[];
|
|
285
295
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -2940,6 +2940,7 @@ var ParserResult = class {
|
|
|
2940
2940
|
sva = /* @__PURE__ */ new Set();
|
|
2941
2941
|
token = /* @__PURE__ */ new Set();
|
|
2942
2942
|
viewTransition = /* @__PURE__ */ new Set();
|
|
2943
|
+
keyframes = /* @__PURE__ */ new Set();
|
|
2943
2944
|
recipe = /* @__PURE__ */ new Map();
|
|
2944
2945
|
pattern = /* @__PURE__ */ new Map();
|
|
2945
2946
|
filePath;
|
|
@@ -3027,6 +3028,11 @@ var ParserResult = class {
|
|
|
3027
3028
|
const encoder = this.encoder;
|
|
3028
3029
|
result.data.forEach((obj) => encoder.processViewTransition(obj));
|
|
3029
3030
|
}
|
|
3031
|
+
/** @param name What the call returns, which the extractor computed from the same stops. */
|
|
3032
|
+
setKeyframes(result, name) {
|
|
3033
|
+
this.keyframes.add(this.append(Object.assign({ type: "keyframes" }, result)));
|
|
3034
|
+
this.encoder.processKeyframes(name, result.data[0]);
|
|
3035
|
+
}
|
|
3030
3036
|
setPattern(name, result) {
|
|
3031
3037
|
getOrCreateSet(this.pattern, name).add(this.append(Object.assign({
|
|
3032
3038
|
type: "pattern",
|
|
@@ -3080,6 +3086,7 @@ var ParserResult = class {
|
|
|
3080
3086
|
sva: Array.from(this.sva),
|
|
3081
3087
|
token: Array.from(this.token),
|
|
3082
3088
|
viewTransition: Array.from(this.viewTransition),
|
|
3089
|
+
keyframes: Array.from(this.keyframes),
|
|
3083
3090
|
recipe: Object.fromEntries(Array.from(this.recipe.entries()).map(([key, value]) => [key, Array.from(value)])),
|
|
3084
3091
|
pattern: Object.fromEntries(Array.from(this.pattern.entries()).map(([key, value]) => [key, Array.from(value)]))
|
|
3085
3092
|
};
|
|
@@ -3749,6 +3756,12 @@ const unresolvedReasons = {
|
|
|
3749
3756
|
* its wording says which half is missing rather than implying the element is unstyled.
|
|
3750
3757
|
*/
|
|
3751
3758
|
function explainUnresolvedStyle(entry) {
|
|
3759
|
+
if (entry.kind === "keyframes") return {
|
|
3760
|
+
what: "these stops will not reach the stylesheet because they are not statically known",
|
|
3761
|
+
why: "The name `keyframes()` returns is a hash of its stops, so the build names a block, and writes it, only from stops it can read whole.",
|
|
3762
|
+
fix: "Write the stops out. What has to vary can be a custom property a stop reads, `opacity: 'var(--to)'`, or a property of the animation itself.",
|
|
3763
|
+
see: "https://bamboocss.com/docs/concepts/keyframes"
|
|
3764
|
+
};
|
|
3752
3765
|
const [loss] = unresolvedReasons[entry.reason](entry.prop ? `\`${entry.prop}\`` : "a property");
|
|
3753
3766
|
const what = entry.prop ? `${loss} at \`${entry.prop}\`` : loss;
|
|
3754
3767
|
return entry.kind === "recipe" ? {
|
|
@@ -4026,7 +4039,8 @@ var BambooContext = class extends Generator {
|
|
|
4026
4039
|
patternModules: this.imports.value.pattern,
|
|
4027
4040
|
recipeNames: this.recipes.keys,
|
|
4028
4041
|
patternNames: this.patterns.keys,
|
|
4029
|
-
references: options.references
|
|
4042
|
+
references: options.references,
|
|
4043
|
+
classPrefix: this.utility.prefix || void 0
|
|
4030
4044
|
});
|
|
4031
4045
|
};
|
|
4032
4046
|
/**
|
|
@@ -4179,7 +4193,8 @@ var BambooContext = class extends Generator {
|
|
|
4179
4193
|
"sva",
|
|
4180
4194
|
"cx",
|
|
4181
4195
|
"fallback",
|
|
4182
|
-
"viewTransition"
|
|
4196
|
+
"viewTransition",
|
|
4197
|
+
"keyframes"
|
|
4183
4198
|
]
|
|
4184
4199
|
},
|
|
4185
4200
|
{
|
|
@@ -4207,7 +4222,8 @@ var BambooContext = class extends Generator {
|
|
|
4207
4222
|
paths: values
|
|
4208
4223
|
})),
|
|
4209
4224
|
tokens: this.nativeTokens,
|
|
4210
|
-
jsx: this.jsx.isEnabled
|
|
4225
|
+
jsx: this.jsx.isEnabled,
|
|
4226
|
+
classPrefix: this.utility.prefix || void 0
|
|
4211
4227
|
};
|
|
4212
4228
|
let analyses;
|
|
4213
4229
|
try {
|
|
@@ -4299,7 +4315,9 @@ var BambooContext = class extends Generator {
|
|
|
4299
4315
|
} : void 0
|
|
4300
4316
|
};
|
|
4301
4317
|
const recipeConfig = call.kind === "css" && (call.importedName === "cva" || call.importedName === "sva");
|
|
4302
|
-
|
|
4318
|
+
const explicitlyNamed = recipeConfig && item.data.every((data) => typeof data.className === "string" && data.className !== "");
|
|
4319
|
+
const keyframes = call.kind === "css" && call.importedName === "keyframes";
|
|
4320
|
+
if (!explicitlyNamed && !keyframes) for (const loss of call.losses) result.unresolved.push({
|
|
4303
4321
|
kind: recipeConfig ? "recipe" : "atomic",
|
|
4304
4322
|
prop: loss.prop,
|
|
4305
4323
|
filePath,
|
|
@@ -4313,6 +4331,14 @@ var BambooContext = class extends Generator {
|
|
|
4313
4331
|
"sva"
|
|
4314
4332
|
].includes(call.importedName)) result.set(call.importedName, item);
|
|
4315
4333
|
else if (call.kind === "css" && call.importedName === "viewTransition") result.setViewTransition(item);
|
|
4334
|
+
else if (keyframes) if (call.value !== void 0) result.setKeyframes(item, call.value);
|
|
4335
|
+
else result.unresolved.push({
|
|
4336
|
+
kind: "keyframes",
|
|
4337
|
+
filePath,
|
|
4338
|
+
line: call.line,
|
|
4339
|
+
column: call.column,
|
|
4340
|
+
reason: "unresolvable-value"
|
|
4341
|
+
});
|
|
4316
4342
|
else if (call.kind === "pattern") result.setPattern(call.importedName, item);
|
|
4317
4343
|
else if (call.kind === "recipe") result.setRecipe(call.importedName, item, new Set(call.unresolvedKeys));
|
|
4318
4344
|
else if (call.kind === "token" || call.kind === "tokenValue") result.setToken(item, call.kind);
|
|
@@ -6454,11 +6480,11 @@ async function setupConfig(cwd, opts = {}) {
|
|
|
6454
6480
|
}
|
|
6455
6481
|
const { detect } = await import("package-manager-detector");
|
|
6456
6482
|
const pm = ((await detect({ cwd }))?.agent ?? "npm").split("@")[0];
|
|
6457
|
-
const cmd = pm === "npm" ? "
|
|
6483
|
+
const cmd = pm === "npm" ? "npx" : pm;
|
|
6458
6484
|
const file = lookItUpSync("tsconfig.json", cwd) ? "bamboo.config.ts" : "bamboo.config.mjs";
|
|
6459
|
-
logger.info("init:config", `creating bamboo config file: ${quote(file)}`);
|
|
6460
6485
|
if (!force && configFile) logger.warn("init:config", messages.configExists(cmd));
|
|
6461
6486
|
else {
|
|
6487
|
+
logger.info("init:config", `creating bamboo config file: ${quote(file)}`);
|
|
6462
6488
|
const content = outdent`
|
|
6463
6489
|
import { defineConfig } from "@bamboocss/dev"
|
|
6464
6490
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.1",
|
|
4
4
|
"description": "The core css bamboo library",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
"pkg-types": "2.3.0",
|
|
61
61
|
"pluralize": "8.0.0",
|
|
62
62
|
"ts-pattern": "5.9.0",
|
|
63
|
-
"@bamboocss/config": "1.
|
|
64
|
-
"@bamboocss/core": "1.
|
|
65
|
-
"@bamboocss/generator": "1.
|
|
66
|
-
"@bamboocss/logger": "1.
|
|
67
|
-
"@bamboocss/plugin-svelte": "1.
|
|
68
|
-
"@bamboocss/plugin-vue": "1.
|
|
69
|
-
"@bamboocss/reporter": "1.
|
|
70
|
-
"@bamboocss/shared": "1.
|
|
71
|
-
"@bamboocss/token-dictionary": "1.
|
|
72
|
-
"@bamboocss/types": "1.
|
|
63
|
+
"@bamboocss/config": "1.58.1",
|
|
64
|
+
"@bamboocss/core": "1.58.1",
|
|
65
|
+
"@bamboocss/generator": "1.58.1",
|
|
66
|
+
"@bamboocss/logger": "1.58.1",
|
|
67
|
+
"@bamboocss/plugin-svelte": "1.58.1",
|
|
68
|
+
"@bamboocss/plugin-vue": "1.58.1",
|
|
69
|
+
"@bamboocss/reporter": "1.58.1",
|
|
70
|
+
"@bamboocss/shared": "1.58.1",
|
|
71
|
+
"@bamboocss/token-dictionary": "1.58.1",
|
|
72
|
+
"@bamboocss/types": "1.58.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@astrojs/compiler": "3.0.1",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@types/fs-extra": "11.0.4",
|
|
78
78
|
"@types/picomatch": "4.0.2",
|
|
79
79
|
"boxen": "8.0.1",
|
|
80
|
-
"@bamboocss/native-extractor": "1.
|
|
80
|
+
"@bamboocss/native-extractor": "1.58.1"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@astrojs/compiler": ">=2",
|