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

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
@@ -2676,6 +2676,7 @@ var Builder = class {
2676
2676
  this.context = new PandaContext({ ...conf, hooks: ctx.hooks });
2677
2677
  this.context.appendBaselineCss();
2678
2678
  });
2679
+ import_logger6.logger.debug("builder", this.affecteds);
2679
2680
  if (this.affecteds.hasConfigChanged) {
2680
2681
  import_logger6.logger.debug("builder", "\u2699\uFE0F Config changed, reloading");
2681
2682
  await ctx.hooks.callHook("config:change", ctx.config);
@@ -2683,11 +2684,13 @@ var Builder = class {
2683
2684
  }
2684
2685
  this.hasFilesChanged = this.checkFilesChanged(ctx.getFiles());
2685
2686
  if (this.hasFilesChanged) {
2687
+ import_logger6.logger.debug("builder", "Files changed, invalidating them");
2686
2688
  ctx.project.reloadSourceFiles();
2687
2689
  }
2688
2690
  };
2689
2691
  async emit() {
2690
2692
  if (this.hasEmitted && this.affecteds?.hasConfigChanged) {
2693
+ import_logger6.logger.debug("builder", "Emit artifacts after config change");
2691
2694
  await emitArtifacts(this.getContextOrThrow(), Array.from(this.affecteds.artifacts));
2692
2695
  }
2693
2696
  this.hasEmitted = true;
@@ -2728,8 +2731,10 @@ var Builder = class {
2728
2731
  }
2729
2732
  extract = async () => {
2730
2733
  const hasConfigChanged = this.affecteds ? this.affecteds.hasConfigChanged : true;
2731
- if (!this.hasFilesChanged && !hasConfigChanged)
2734
+ if (!this.hasFilesChanged && !hasConfigChanged) {
2735
+ import_logger6.logger.debug("builder", "No files or config changed, skipping extract");
2732
2736
  return;
2737
+ }
2733
2738
  const ctx = this.getContextOrThrow();
2734
2739
  const files = ctx.getFiles();
2735
2740
  const done = import_logger6.logger.time.info("Extracted in");
package/dist/index.mjs CHANGED
@@ -2650,6 +2650,7 @@ var Builder = class {
2650
2650
  this.context = new PandaContext({ ...conf, hooks: ctx.hooks });
2651
2651
  this.context.appendBaselineCss();
2652
2652
  });
2653
+ logger6.debug("builder", this.affecteds);
2653
2654
  if (this.affecteds.hasConfigChanged) {
2654
2655
  logger6.debug("builder", "\u2699\uFE0F Config changed, reloading");
2655
2656
  await ctx.hooks.callHook("config:change", ctx.config);
@@ -2657,11 +2658,13 @@ var Builder = class {
2657
2658
  }
2658
2659
  this.hasFilesChanged = this.checkFilesChanged(ctx.getFiles());
2659
2660
  if (this.hasFilesChanged) {
2661
+ logger6.debug("builder", "Files changed, invalidating them");
2660
2662
  ctx.project.reloadSourceFiles();
2661
2663
  }
2662
2664
  };
2663
2665
  async emit() {
2664
2666
  if (this.hasEmitted && this.affecteds?.hasConfigChanged) {
2667
+ logger6.debug("builder", "Emit artifacts after config change");
2665
2668
  await emitArtifacts(this.getContextOrThrow(), Array.from(this.affecteds.artifacts));
2666
2669
  }
2667
2670
  this.hasEmitted = true;
@@ -2702,8 +2705,10 @@ var Builder = class {
2702
2705
  }
2703
2706
  extract = async () => {
2704
2707
  const hasConfigChanged = this.affecteds ? this.affecteds.hasConfigChanged : true;
2705
- if (!this.hasFilesChanged && !hasConfigChanged)
2708
+ if (!this.hasFilesChanged && !hasConfigChanged) {
2709
+ logger6.debug("builder", "No files or config changed, skipping extract");
2706
2710
  return;
2711
+ }
2707
2712
  const ctx = this.getContextOrThrow();
2708
2713
  const files = ctx.getFiles();
2709
2714
  const done = logger6.time.info("Extracted in");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.0.0-dev-20231217184959",
3
+ "version": "0.0.0-dev-20231218193213",
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-20231217184959",
52
- "@pandacss/extractor": "0.0.0-dev-20231217184959",
53
- "@pandacss/core": "0.0.0-dev-20231217184959",
54
- "@pandacss/error": "0.0.0-dev-20231217184959",
55
- "@pandacss/generator": "0.0.0-dev-20231217184959",
56
- "@pandacss/is-valid-prop": "0.0.0-dev-20231217184959",
57
- "@pandacss/logger": "0.0.0-dev-20231217184959",
58
- "@pandacss/parser": "0.0.0-dev-20231217184959",
59
- "@pandacss/shared": "0.0.0-dev-20231217184959",
60
- "@pandacss/types": "0.0.0-dev-20231217184959",
61
- "@pandacss/token-dictionary": "0.0.0-dev-20231217184959"
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"
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-20231217184959"
71
+ "@pandacss/fixture": "0.0.0-dev-20231218193213"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",