@pandacss/node 0.0.0-dev-20231218193213 → 0.0.0-dev-20231219195022

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
@@ -2715,7 +2715,7 @@ var Builder = class {
2715
2715
  };
2716
2716
  extractFile = async (ctx, file) => {
2717
2717
  const meta = this.getFileMeta(file);
2718
- if (meta.isUnchanged) {
2718
+ if (meta.isUnchanged && this.affecteds?.hasConfigChanged) {
2719
2719
  ctx.appendParserCss(parserResultMap.get(file));
2720
2720
  return;
2721
2721
  }
@@ -2801,7 +2801,6 @@ async function debugFiles(ctx, options) {
2801
2801
  measureTotal();
2802
2802
  return;
2803
2803
  }
2804
- const filesWithCss = [];
2805
2804
  const results = await Promise.all(
2806
2805
  files.map(async (file) => {
2807
2806
  const measure = import_logger7.logger.time.debug(`Parsed ${file}`);
@@ -2810,9 +2809,8 @@ async function debugFiles(ctx, options) {
2810
2809
  return { file, result };
2811
2810
  })
2812
2811
  );
2813
- results.forEach(({ file, result }) => {
2814
- if (!result)
2815
- return;
2812
+ const filteredResults = results.filter(({ result }) => result && !result.isEmpty());
2813
+ filteredResults.forEach(({ file, result }) => {
2816
2814
  ctx.stylesheet.clean();
2817
2815
  ctx.appendParserCss(result);
2818
2816
  const css2 = ctx.stylesheet.toCss({ optimize: true, minify: false });
@@ -2820,7 +2818,6 @@ async function debugFiles(ctx, options) {
2820
2818
  console.log({ path: file, ast: result, code: css2 });
2821
2819
  }
2822
2820
  if (outdir) {
2823
- filesWithCss.push(file);
2824
2821
  const parsedPath = (0, import_pathe4.parse)(file);
2825
2822
  const relative3 = path2.relative(ctx.config.cwd, parsedPath.dir);
2826
2823
  const astJsonPath = `${relative3}/${parsedPath.name}.ast.json`.replaceAll(path2.sep, "__");
@@ -2833,7 +2830,7 @@ async function debugFiles(ctx, options) {
2833
2830
  ]);
2834
2831
  }
2835
2832
  });
2836
- import_logger7.logger.info("cli", `Found ${import_logger7.colors.bold(`${filesWithCss.length}/${files.length}`)} files using Panda`);
2833
+ import_logger7.logger.info("cli", `Found ${import_logger7.colors.bold(`${filteredResults.length}/${files.length}`)} files using Panda`);
2837
2834
  measureTotal();
2838
2835
  }
2839
2836
 
package/dist/index.mjs CHANGED
@@ -2689,7 +2689,7 @@ var Builder = class {
2689
2689
  };
2690
2690
  extractFile = async (ctx, file) => {
2691
2691
  const meta = this.getFileMeta(file);
2692
- if (meta.isUnchanged) {
2692
+ if (meta.isUnchanged && this.affecteds?.hasConfigChanged) {
2693
2693
  ctx.appendParserCss(parserResultMap.get(file));
2694
2694
  return;
2695
2695
  }
@@ -2775,7 +2775,6 @@ async function debugFiles(ctx, options) {
2775
2775
  measureTotal();
2776
2776
  return;
2777
2777
  }
2778
- const filesWithCss = [];
2779
2778
  const results = await Promise.all(
2780
2779
  files.map(async (file) => {
2781
2780
  const measure = logger7.time.debug(`Parsed ${file}`);
@@ -2784,9 +2783,8 @@ async function debugFiles(ctx, options) {
2784
2783
  return { file, result };
2785
2784
  })
2786
2785
  );
2787
- results.forEach(({ file, result }) => {
2788
- if (!result)
2789
- return;
2786
+ const filteredResults = results.filter(({ result }) => result && !result.isEmpty());
2787
+ filteredResults.forEach(({ file, result }) => {
2790
2788
  ctx.stylesheet.clean();
2791
2789
  ctx.appendParserCss(result);
2792
2790
  const css2 = ctx.stylesheet.toCss({ optimize: true, minify: false });
@@ -2794,7 +2792,6 @@ async function debugFiles(ctx, options) {
2794
2792
  console.log({ path: file, ast: result, code: css2 });
2795
2793
  }
2796
2794
  if (outdir) {
2797
- filesWithCss.push(file);
2798
2795
  const parsedPath = parse2(file);
2799
2796
  const relative3 = path2.relative(ctx.config.cwd, parsedPath.dir);
2800
2797
  const astJsonPath = `${relative3}/${parsedPath.name}.ast.json`.replaceAll(path2.sep, "__");
@@ -2807,7 +2804,7 @@ async function debugFiles(ctx, options) {
2807
2804
  ]);
2808
2805
  }
2809
2806
  });
2810
- logger7.info("cli", `Found ${colors.bold(`${filesWithCss.length}/${files.length}`)} files using Panda`);
2807
+ logger7.info("cli", `Found ${colors.bold(`${filteredResults.length}/${files.length}`)} files using Panda`);
2811
2808
  measureTotal();
2812
2809
  }
2813
2810
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.0.0-dev-20231218193213",
3
+ "version": "0.0.0-dev-20231219195022",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -48,17 +48,17 @@
48
48
  "ts-morph": "19.0.0",
49
49
  "ts-pattern": "5.0.5",
50
50
  "tsconfck": "^2.1.2",
51
- "@pandacss/config": "0.0.0-dev-20231218193213",
52
- "@pandacss/core": "0.0.0-dev-20231218193213",
53
- "@pandacss/error": "0.0.0-dev-20231218193213",
54
- "@pandacss/extractor": "0.0.0-dev-20231218193213",
55
- "@pandacss/generator": "0.0.0-dev-20231218193213",
56
- "@pandacss/is-valid-prop": "0.0.0-dev-20231218193213",
57
- "@pandacss/logger": "0.0.0-dev-20231218193213",
58
- "@pandacss/parser": "0.0.0-dev-20231218193213",
59
- "@pandacss/shared": "0.0.0-dev-20231218193213",
60
- "@pandacss/token-dictionary": "0.0.0-dev-20231218193213",
61
- "@pandacss/types": "0.0.0-dev-20231218193213"
51
+ "@pandacss/config": "0.0.0-dev-20231219195022",
52
+ "@pandacss/core": "0.0.0-dev-20231219195022",
53
+ "@pandacss/error": "0.0.0-dev-20231219195022",
54
+ "@pandacss/generator": "0.0.0-dev-20231219195022",
55
+ "@pandacss/extractor": "0.0.0-dev-20231219195022",
56
+ "@pandacss/is-valid-prop": "0.0.0-dev-20231219195022",
57
+ "@pandacss/logger": "0.0.0-dev-20231219195022",
58
+ "@pandacss/parser": "0.0.0-dev-20231219195022",
59
+ "@pandacss/shared": "0.0.0-dev-20231219195022",
60
+ "@pandacss/token-dictionary": "0.0.0-dev-20231219195022",
61
+ "@pandacss/types": "0.0.0-dev-20231219195022"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/fs-extra": "11.0.4",
@@ -68,7 +68,7 @@
68
68
  "@types/pluralize": "0.0.33",
69
69
  "boxen": "^7.1.1",
70
70
  "p-limit": "^4.0.0",
71
- "@pandacss/fixture": "0.0.0-dev-20231218193213"
71
+ "@pandacss/fixture": "0.0.0-dev-20231219195022"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",