@bamboocss/dev 1.55.7 → 1.56.0
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/cli-default.cjs +12 -13
- package/dist/cli-default.mjs +13 -14
- package/dist/cli-main.cjs +14 -15
- package/dist/cli-main.mjs +14 -15
- package/dist/{interactive-DxAZkk1T.cjs → interactive-BBNcXWz_.cjs} +1 -1
- package/dist/{interactive-Dd3q49hC.mjs → interactive-C86Ts71a.mjs} +1 -1
- package/dist/interactive.cjs +1 -1
- package/dist/interactive.mjs +1 -1
- package/dist/{mcp-init-ClvEyk_9.mjs → mcp-init-CmBmEWAB.mjs} +1 -1
- package/dist/{mcp-init-Cz3Jp2fq.cjs → mcp-init-kTUBSmo8.cjs} +1 -1
- package/dist/{package-Cu1_sd0u.mjs → package-B3YzHrNw.mjs} +1 -1
- package/dist/{package-CB8nHWvN.cjs → package-D3cu_689.cjs} +1 -1
- package/dist/{update-notifier-Cyxqzy7H.mjs → update-notifier-SlOlBi-b.mjs} +1 -1
- package/package.json +8 -8
package/dist/cli-default.cjs
CHANGED
|
@@ -125,7 +125,7 @@ function isLocError(error) {
|
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region package.json
|
|
127
127
|
var name = "@bamboocss/dev";
|
|
128
|
-
var version = "1.
|
|
128
|
+
var version = "1.56.0";
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region src/cli-main.ts
|
|
131
131
|
/**
|
|
@@ -287,14 +287,13 @@ async function main() {
|
|
|
287
287
|
poll
|
|
288
288
|
});
|
|
289
289
|
ctx.watchFiles(async (event, file) => {
|
|
290
|
+
const filePath = ctx.runtime.path.abs(cwd, file);
|
|
290
291
|
if (event === "unlink") {
|
|
291
|
-
ctx.project.removeSourceFile(
|
|
292
|
+
ctx.project.removeSourceFile(filePath);
|
|
293
|
+
ctx.forgetNativeFile(filePath);
|
|
292
294
|
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
293
|
-
} else if (event === "change") {
|
|
294
|
-
ctx.project.reloadSourceFile(
|
|
295
|
-
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
296
|
-
} else if (event === "add") {
|
|
297
|
-
ctx.project.createSourceFile(ctx.runtime.path.abs(cwd, file));
|
|
295
|
+
} else if (event === "change" || event === "add") {
|
|
296
|
+
ctx.project.reloadSourceFile(filePath);
|
|
298
297
|
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
299
298
|
}
|
|
300
299
|
});
|
|
@@ -408,12 +407,12 @@ async function main() {
|
|
|
408
407
|
poll
|
|
409
408
|
});
|
|
410
409
|
ctx.watchFiles(async (event, file) => {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
ctx.project.
|
|
414
|
-
|
|
415
|
-
} else if (event === "add") {
|
|
416
|
-
ctx.project.
|
|
410
|
+
const filePath = ctx.runtime.path.abs(cwd, file);
|
|
411
|
+
if (event === "unlink") {
|
|
412
|
+
ctx.project.removeSourceFile(filePath);
|
|
413
|
+
ctx.forgetNativeFile(filePath);
|
|
414
|
+
} else if (event === "change" || event === "add") {
|
|
415
|
+
ctx.project.reloadSourceFile(filePath);
|
|
417
416
|
await (0, _bamboocss_node.buildInfo)(ctx, outfile);
|
|
418
417
|
}
|
|
419
418
|
});
|
package/dist/cli-default.mjs
CHANGED
|
@@ -123,7 +123,7 @@ function isLocError(error) {
|
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region package.json
|
|
125
125
|
var name = "@bamboocss/dev";
|
|
126
|
-
var version = "1.
|
|
126
|
+
var version = "1.56.0";
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region src/cli-main.ts
|
|
129
129
|
/**
|
|
@@ -285,14 +285,13 @@ async function main() {
|
|
|
285
285
|
poll
|
|
286
286
|
});
|
|
287
287
|
ctx.watchFiles(async (event, file) => {
|
|
288
|
+
const filePath = ctx.runtime.path.abs(cwd, file);
|
|
288
289
|
if (event === "unlink") {
|
|
289
|
-
ctx.project.removeSourceFile(
|
|
290
|
+
ctx.project.removeSourceFile(filePath);
|
|
291
|
+
ctx.forgetNativeFile(filePath);
|
|
290
292
|
await cssgen(ctx, options);
|
|
291
|
-
} else if (event === "change") {
|
|
292
|
-
ctx.project.reloadSourceFile(
|
|
293
|
-
await cssgen(ctx, options);
|
|
294
|
-
} else if (event === "add") {
|
|
295
|
-
ctx.project.createSourceFile(ctx.runtime.path.abs(cwd, file));
|
|
293
|
+
} else if (event === "change" || event === "add") {
|
|
294
|
+
ctx.project.reloadSourceFile(filePath);
|
|
296
295
|
await cssgen(ctx, options);
|
|
297
296
|
}
|
|
298
297
|
});
|
|
@@ -406,12 +405,12 @@ async function main() {
|
|
|
406
405
|
poll
|
|
407
406
|
});
|
|
408
407
|
ctx.watchFiles(async (event, file) => {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
ctx.project.
|
|
412
|
-
|
|
413
|
-
} else if (event === "add") {
|
|
414
|
-
ctx.project.
|
|
408
|
+
const filePath = ctx.runtime.path.abs(cwd, file);
|
|
409
|
+
if (event === "unlink") {
|
|
410
|
+
ctx.project.removeSourceFile(filePath);
|
|
411
|
+
ctx.forgetNativeFile(filePath);
|
|
412
|
+
} else if (event === "change" || event === "add") {
|
|
413
|
+
ctx.project.reloadSourceFile(filePath);
|
|
415
414
|
await buildInfo(ctx, outfile);
|
|
416
415
|
}
|
|
417
416
|
});
|
|
@@ -520,7 +519,7 @@ async function main() {
|
|
|
520
519
|
* lands in a log nobody opens. Gating on a TTY and importing dynamically keeps the tree in a
|
|
521
520
|
* chunk that only an interactive run loads.
|
|
522
521
|
*/
|
|
523
|
-
if (process.stdout.isTTY) import("./update-notifier-
|
|
522
|
+
if (process.stdout.isTTY) import("./update-notifier-SlOlBi-b.mjs").then(({ default: updateNotifier }) => updateNotifier({
|
|
524
523
|
pkg: {
|
|
525
524
|
name,
|
|
526
525
|
version
|
package/dist/cli-main.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./chunk-CKQMccvm.cjs");
|
|
3
|
-
const require_package = require("./package-
|
|
3
|
+
const require_package = require("./package-D3cu_689.cjs");
|
|
4
4
|
let _bamboocss_logger = require("@bamboocss/logger");
|
|
5
5
|
let _bamboocss_node = require("@bamboocss/node");
|
|
6
6
|
let _bamboocss_shared = require("@bamboocss/shared");
|
|
@@ -45,7 +45,7 @@ async function main() {
|
|
|
45
45
|
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-values [mode]", "Require every style value to be a token, so a raw css value is written `[14px]`").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
46
46
|
let options = {};
|
|
47
47
|
if (initFlags.interactive) {
|
|
48
|
-
const { interactive } = await Promise.resolve().then(() => require("./interactive-
|
|
48
|
+
const { interactive } = await Promise.resolve().then(() => require("./interactive-BBNcXWz_.cjs"));
|
|
49
49
|
options = await interactive({ cwd: (0, path.resolve)(initFlags.cwd ?? "") });
|
|
50
50
|
}
|
|
51
51
|
const flags = {
|
|
@@ -166,14 +166,13 @@ async function main() {
|
|
|
166
166
|
poll
|
|
167
167
|
});
|
|
168
168
|
ctx.watchFiles(async (event, file) => {
|
|
169
|
+
const filePath = ctx.runtime.path.abs(cwd, file);
|
|
169
170
|
if (event === "unlink") {
|
|
170
|
-
ctx.project.removeSourceFile(
|
|
171
|
+
ctx.project.removeSourceFile(filePath);
|
|
172
|
+
ctx.forgetNativeFile(filePath);
|
|
171
173
|
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
172
|
-
} else if (event === "change") {
|
|
173
|
-
ctx.project.reloadSourceFile(
|
|
174
|
-
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
175
|
-
} else if (event === "add") {
|
|
176
|
-
ctx.project.createSourceFile(ctx.runtime.path.abs(cwd, file));
|
|
174
|
+
} else if (event === "change" || event === "add") {
|
|
175
|
+
ctx.project.reloadSourceFile(filePath);
|
|
177
176
|
await (0, _bamboocss_node.cssgen)(ctx, options);
|
|
178
177
|
}
|
|
179
178
|
});
|
|
@@ -287,12 +286,12 @@ async function main() {
|
|
|
287
286
|
poll
|
|
288
287
|
});
|
|
289
288
|
ctx.watchFiles(async (event, file) => {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
ctx.project.
|
|
293
|
-
|
|
294
|
-
} else if (event === "add") {
|
|
295
|
-
ctx.project.
|
|
289
|
+
const filePath = ctx.runtime.path.abs(cwd, file);
|
|
290
|
+
if (event === "unlink") {
|
|
291
|
+
ctx.project.removeSourceFile(filePath);
|
|
292
|
+
ctx.forgetNativeFile(filePath);
|
|
293
|
+
} else if (event === "change" || event === "add") {
|
|
294
|
+
ctx.project.reloadSourceFile(filePath);
|
|
296
295
|
await (0, _bamboocss_node.buildInfo)(ctx, outfile);
|
|
297
296
|
}
|
|
298
297
|
});
|
|
@@ -375,7 +374,7 @@ async function main() {
|
|
|
375
374
|
process.exitCode = 1;
|
|
376
375
|
});
|
|
377
376
|
cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
|
|
378
|
-
const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-
|
|
377
|
+
const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-kTUBSmo8.cjs"));
|
|
379
378
|
const resolvedCwd = (0, path.resolve)(mcpInitFlags.cwd ?? cwd);
|
|
380
379
|
let clients;
|
|
381
380
|
if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
|
package/dist/cli-main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as version } from "./package-
|
|
1
|
+
import { t as version } from "./package-B3YzHrNw.mjs";
|
|
2
2
|
import { logger } from "@bamboocss/logger";
|
|
3
3
|
import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, generate, generatePackageExports, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, spec, startProfiling } from "@bamboocss/node";
|
|
4
4
|
import { BambooError, compact } from "@bamboocss/shared";
|
|
@@ -43,7 +43,7 @@ async function main() {
|
|
|
43
43
|
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-values [mode]", "Require every style value to be a token, so a raw css value is written `[14px]`").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
44
44
|
let options = {};
|
|
45
45
|
if (initFlags.interactive) {
|
|
46
|
-
const { interactive } = await import("./interactive-
|
|
46
|
+
const { interactive } = await import("./interactive-C86Ts71a.mjs");
|
|
47
47
|
options = await interactive({ cwd: resolve(initFlags.cwd ?? "") });
|
|
48
48
|
}
|
|
49
49
|
const flags = {
|
|
@@ -164,14 +164,13 @@ async function main() {
|
|
|
164
164
|
poll
|
|
165
165
|
});
|
|
166
166
|
ctx.watchFiles(async (event, file) => {
|
|
167
|
+
const filePath = ctx.runtime.path.abs(cwd, file);
|
|
167
168
|
if (event === "unlink") {
|
|
168
|
-
ctx.project.removeSourceFile(
|
|
169
|
+
ctx.project.removeSourceFile(filePath);
|
|
170
|
+
ctx.forgetNativeFile(filePath);
|
|
169
171
|
await cssgen(ctx, options);
|
|
170
|
-
} else if (event === "change") {
|
|
171
|
-
ctx.project.reloadSourceFile(
|
|
172
|
-
await cssgen(ctx, options);
|
|
173
|
-
} else if (event === "add") {
|
|
174
|
-
ctx.project.createSourceFile(ctx.runtime.path.abs(cwd, file));
|
|
172
|
+
} else if (event === "change" || event === "add") {
|
|
173
|
+
ctx.project.reloadSourceFile(filePath);
|
|
175
174
|
await cssgen(ctx, options);
|
|
176
175
|
}
|
|
177
176
|
});
|
|
@@ -285,12 +284,12 @@ async function main() {
|
|
|
285
284
|
poll
|
|
286
285
|
});
|
|
287
286
|
ctx.watchFiles(async (event, file) => {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
ctx.project.
|
|
291
|
-
|
|
292
|
-
} else if (event === "add") {
|
|
293
|
-
ctx.project.
|
|
287
|
+
const filePath = ctx.runtime.path.abs(cwd, file);
|
|
288
|
+
if (event === "unlink") {
|
|
289
|
+
ctx.project.removeSourceFile(filePath);
|
|
290
|
+
ctx.forgetNativeFile(filePath);
|
|
291
|
+
} else if (event === "change" || event === "add") {
|
|
292
|
+
ctx.project.reloadSourceFile(filePath);
|
|
294
293
|
await buildInfo(ctx, outfile);
|
|
295
294
|
}
|
|
296
295
|
});
|
|
@@ -373,7 +372,7 @@ async function main() {
|
|
|
373
372
|
process.exitCode = 1;
|
|
374
373
|
});
|
|
375
374
|
cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
|
|
376
|
-
const { initMcpConfig } = await import("./mcp-init-
|
|
375
|
+
const { initMcpConfig } = await import("./mcp-init-CmBmEWAB.mjs");
|
|
377
376
|
const resolvedCwd = resolve(mcpInitFlags.cwd ?? cwd);
|
|
378
377
|
let clients;
|
|
379
378
|
if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_package = require("./package-
|
|
2
|
+
const require_package = require("./package-D3cu_689.cjs");
|
|
3
3
|
let _clack_prompts = require("@clack/prompts");
|
|
4
4
|
_clack_prompts = require_chunk.__toESM(_clack_prompts);
|
|
5
5
|
//#region src/interactive.ts
|
package/dist/interactive.cjs
CHANGED
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
let _clack_prompts = require("@clack/prompts");
|
|
25
25
|
_clack_prompts = __toESM(_clack_prompts);
|
|
26
26
|
//#region package.json
|
|
27
|
-
var version = "1.
|
|
27
|
+
var version = "1.56.0";
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/interactive.ts
|
|
30
30
|
const interactive = async (_options = {}) => {
|
package/dist/interactive.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_package = require("./package-
|
|
2
|
+
const require_package = require("./package-D3cu_689.cjs");
|
|
3
3
|
let _bamboocss_logger = require("@bamboocss/logger");
|
|
4
4
|
let path = require("path");
|
|
5
5
|
let _clack_prompts = require("@clack/prompts");
|
|
@@ -4166,7 +4166,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4166
4166
|
__exportStar(require_ca_file(), exports);
|
|
4167
4167
|
}));
|
|
4168
4168
|
//#endregion
|
|
4169
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@typescript+typescript6@6.0.2_oxc-resolver@11.19.1_@emnapi+core@1.10.0_@emnapi+runtime@1.
|
|
4169
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@typescript+typescript6@6.0.2_oxc-resolver@11.19.1_@emnapi+core@1.10.0_@emnapi+runtime@1.11.3__tsx@4.20.6/node_modules/tsdown/esm-shims.js
|
|
4170
4170
|
var getFilename, getDirname, __dirname$2;
|
|
4171
4171
|
var init_esm_shims = __esmMin((() => {
|
|
4172
4172
|
getFilename = () => fileURLToPath(import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/dev",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.56.0",
|
|
4
4
|
"description": "Build-time, type-safe, zero-runtime CSS-in-JS",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@clack/prompts": "0.11.0",
|
|
54
54
|
"cac": "6.7.14",
|
|
55
|
-
"@bamboocss/logger": "1.
|
|
56
|
-
"@bamboocss/node": "1.
|
|
57
|
-
"@bamboocss/preset-bamboo": "1.
|
|
58
|
-
"@bamboocss/preset-base": "1.
|
|
59
|
-
"@bamboocss/shared": "1.
|
|
60
|
-
"@bamboocss/token-dictionary": "1.
|
|
61
|
-
"@bamboocss/types": "1.
|
|
55
|
+
"@bamboocss/logger": "1.56.0",
|
|
56
|
+
"@bamboocss/node": "1.56.0",
|
|
57
|
+
"@bamboocss/preset-bamboo": "1.56.0",
|
|
58
|
+
"@bamboocss/preset-base": "1.56.0",
|
|
59
|
+
"@bamboocss/shared": "1.56.0",
|
|
60
|
+
"@bamboocss/token-dictionary": "1.56.0",
|
|
61
|
+
"@bamboocss/types": "1.56.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/update-notifier": "6.0.8",
|