@pandacss/node 0.37.1 → 0.38.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/index.js CHANGED
@@ -42,7 +42,7 @@ var init_cjs_shims = __esm({
42
42
 
43
43
  // ../../node_modules/.pnpm/eastasianwidth@0.2.0/node_modules/eastasianwidth/eastasianwidth.js
44
44
  var require_eastasianwidth = __commonJS({
45
- "../../node_modules/.pnpm/eastasianwidth@0.2.0/node_modules/eastasianwidth/eastasianwidth.js"(exports, module2) {
45
+ "../../node_modules/.pnpm/eastasianwidth@0.2.0/node_modules/eastasianwidth/eastasianwidth.js"(exports2, module2) {
46
46
  "use strict";
47
47
  init_cjs_shims();
48
48
  var eaw = {};
@@ -129,7 +129,7 @@ var require_eastasianwidth = __commonJS({
129
129
 
130
130
  // ../../node_modules/.pnpm/emoji-regex@9.2.2/node_modules/emoji-regex/index.js
131
131
  var require_emoji_regex = __commonJS({
132
- "../../node_modules/.pnpm/emoji-regex@9.2.2/node_modules/emoji-regex/index.js"(exports, module2) {
132
+ "../../node_modules/.pnpm/emoji-regex@9.2.2/node_modules/emoji-regex/index.js"(exports2, module2) {
133
133
  "use strict";
134
134
  init_cjs_shims();
135
135
  module2.exports = function() {
@@ -140,7 +140,7 @@ var require_emoji_regex = __commonJS({
140
140
 
141
141
  // ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
142
142
  var require_boxes = __commonJS({
143
- "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(exports, module2) {
143
+ "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(exports2, module2) {
144
144
  module2.exports = {
145
145
  single: {
146
146
  topLeft: "\u250C",
@@ -228,7 +228,7 @@ var require_boxes = __commonJS({
228
228
 
229
229
  // ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js
230
230
  var require_cli_boxes = __commonJS({
231
- "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(exports, module2) {
231
+ "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(exports2, module2) {
232
232
  "use strict";
233
233
  init_cjs_shims();
234
234
  var cliBoxes2 = require_boxes();
@@ -239,7 +239,7 @@ var require_cli_boxes = __commonJS({
239
239
 
240
240
  // ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
241
241
  var require_ansi_regex = __commonJS({
242
- "../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module2) {
242
+ "../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
243
243
  "use strict";
244
244
  init_cjs_shims();
245
245
  module2.exports = ({ onlyFirst = false } = {}) => {
@@ -254,7 +254,7 @@ var require_ansi_regex = __commonJS({
254
254
 
255
255
  // ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
256
256
  var require_strip_ansi = __commonJS({
257
- "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module2) {
257
+ "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
258
258
  "use strict";
259
259
  init_cjs_shims();
260
260
  var ansiRegex2 = require_ansi_regex();
@@ -264,7 +264,7 @@ var require_strip_ansi = __commonJS({
264
264
 
265
265
  // ../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
266
266
  var require_is_fullwidth_code_point = __commonJS({
267
- "../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports, module2) {
267
+ "../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
268
268
  "use strict";
269
269
  init_cjs_shims();
270
270
  var isFullwidthCodePoint = (codePoint) => {
@@ -298,7 +298,7 @@ var require_is_fullwidth_code_point = __commonJS({
298
298
 
299
299
  // ../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
300
300
  var require_emoji_regex2 = __commonJS({
301
- "../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports, module2) {
301
+ "../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports2, module2) {
302
302
  "use strict";
303
303
  init_cjs_shims();
304
304
  module2.exports = function() {
@@ -309,7 +309,7 @@ var require_emoji_regex2 = __commonJS({
309
309
 
310
310
  // ../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
311
311
  var require_string_width = __commonJS({
312
- "../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports, module2) {
312
+ "../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
313
313
  "use strict";
314
314
  init_cjs_shims();
315
315
  var stripAnsi2 = require_strip_ansi();
@@ -347,7 +347,7 @@ var require_string_width = __commonJS({
347
347
 
348
348
  // ../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js
349
349
  var require_ansi_align = __commonJS({
350
- "../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js"(exports, module2) {
350
+ "../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js"(exports2, module2) {
351
351
  "use strict";
352
352
  init_cjs_shims();
353
353
  var stringWidth2 = require_string_width();
@@ -2619,7 +2619,7 @@ function parseDependency(fileOrGlob) {
2619
2619
  }
2620
2620
 
2621
2621
  // src/builder.ts
2622
- var fileModifiedMap = /* @__PURE__ */ new Map();
2622
+ var fileModifiedMap = new import_shared2.CacheMap();
2623
2623
  var Builder = class {
2624
2624
  /**
2625
2625
  * The current panda context
@@ -2927,13 +2927,13 @@ async function debug(ctx, options) {
2927
2927
  filesWithCss.push(file);
2928
2928
  const parsedPath = (0, import_path4.parse)(file);
2929
2929
  const relative2 = path3.relative(ctx.config.cwd, parsedPath.dir);
2930
- const astJsonPath = `${relative2}/${parsedPath.name}.ast.json`.replaceAll(path3.sep, "__");
2931
- const cssPath = `${relative2}/${parsedPath.name}.css`.replaceAll(path3.sep, "__");
2930
+ const astJsonPath = `${relative2}${path3.sep}${parsedPath.name}.ast.json`.replaceAll(path3.sep, "__");
2931
+ const cssPath = `${relative2}${path3.sep}${parsedPath.name}.css`.replaceAll(path3.sep, "__");
2932
2932
  import_logger9.logger.info("cli", `Writing ${import_logger9.colors.bold(`${outdir}/${astJsonPath}`)}`);
2933
2933
  import_logger9.logger.info("cli", `Writing ${import_logger9.colors.bold(`${outdir}/${cssPath}`)}`);
2934
2934
  return Promise.allSettled([
2935
- fs3.writeFile(`${outdir}/${astJsonPath}`, JSON.stringify(result.toJSON(), null, 2)),
2936
- fs3.writeFile(`${outdir}/${cssPath}`, css)
2935
+ fs3.writeFile(`${outdir}${path3.sep}${astJsonPath}`, JSON.stringify(result.toJSON(), null, 2)),
2936
+ fs3.writeFile(`${outdir}${path3.sep}${cssPath}`, css)
2937
2937
  ]);
2938
2938
  }
2939
2939
  });
package/dist/index.mjs CHANGED
@@ -765,7 +765,7 @@ init_esm_shims();
765
765
  import { findConfig, getConfigDependencies } from "@pandacss/config";
766
766
  import { optimizeCss } from "@pandacss/core";
767
767
  import { logger as logger6 } from "@pandacss/logger";
768
- import { PandaError, uniq as uniq2 } from "@pandacss/shared";
768
+ import { CacheMap, PandaError, uniq as uniq2 } from "@pandacss/shared";
769
769
  import { existsSync, statSync } from "fs";
770
770
  import { normalize as normalize2, resolve as resolve3 } from "path";
771
771
 
@@ -2593,7 +2593,7 @@ function parseDependency(fileOrGlob) {
2593
2593
  }
2594
2594
 
2595
2595
  // src/builder.ts
2596
- var fileModifiedMap = /* @__PURE__ */ new Map();
2596
+ var fileModifiedMap = new CacheMap();
2597
2597
  var Builder = class {
2598
2598
  /**
2599
2599
  * The current panda context
@@ -2901,13 +2901,13 @@ async function debug(ctx, options) {
2901
2901
  filesWithCss.push(file);
2902
2902
  const parsedPath = parse(file);
2903
2903
  const relative2 = path3.relative(ctx.config.cwd, parsedPath.dir);
2904
- const astJsonPath = `${relative2}/${parsedPath.name}.ast.json`.replaceAll(path3.sep, "__");
2905
- const cssPath = `${relative2}/${parsedPath.name}.css`.replaceAll(path3.sep, "__");
2904
+ const astJsonPath = `${relative2}${path3.sep}${parsedPath.name}.ast.json`.replaceAll(path3.sep, "__");
2905
+ const cssPath = `${relative2}${path3.sep}${parsedPath.name}.css`.replaceAll(path3.sep, "__");
2906
2906
  logger9.info("cli", `Writing ${colors2.bold(`${outdir}/${astJsonPath}`)}`);
2907
2907
  logger9.info("cli", `Writing ${colors2.bold(`${outdir}/${cssPath}`)}`);
2908
2908
  return Promise.allSettled([
2909
- fs3.writeFile(`${outdir}/${astJsonPath}`, JSON.stringify(result.toJSON(), null, 2)),
2910
- fs3.writeFile(`${outdir}/${cssPath}`, css)
2909
+ fs3.writeFile(`${outdir}${path3.sep}${astJsonPath}`, JSON.stringify(result.toJSON(), null, 2)),
2910
+ fs3.writeFile(`${outdir}${path3.sep}${cssPath}`, css)
2911
2911
  ]);
2912
2912
  }
2913
2913
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.37.1",
3
+ "version": "0.38.0",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "chokidar": "3.6.0",
37
37
  "fast-glob": "3.3.2",
38
38
  "file-size": "1.0.0",
39
- "filesize": "10.1.0",
39
+ "filesize": "10.1.1",
40
40
  "fs-extra": "11.2.0",
41
41
  "glob-parent": "6.0.2",
42
42
  "is-glob": "4.0.3",
@@ -52,15 +52,15 @@
52
52
  "ts-morph": "21.0.1",
53
53
  "ts-pattern": "5.0.8",
54
54
  "tsconfck": "3.0.2",
55
- "@pandacss/config": "0.37.1",
56
- "@pandacss/core": "0.37.1",
57
- "@pandacss/extractor": "0.37.1",
58
- "@pandacss/generator": "0.37.1",
59
- "@pandacss/logger": "0.37.1",
60
- "@pandacss/parser": "0.37.1",
61
- "@pandacss/shared": "0.37.1",
62
- "@pandacss/token-dictionary": "0.37.1",
63
- "@pandacss/types": "0.37.1"
55
+ "@pandacss/config": "0.38.0",
56
+ "@pandacss/core": "0.38.0",
57
+ "@pandacss/extractor": "0.38.0",
58
+ "@pandacss/generator": "0.38.0",
59
+ "@pandacss/logger": "0.38.0",
60
+ "@pandacss/parser": "0.38.0",
61
+ "@pandacss/shared": "0.38.0",
62
+ "@pandacss/token-dictionary": "0.38.0",
63
+ "@pandacss/types": "0.38.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/fs-extra": "11.0.4",