@pandacss/node 0.27.0 → 0.27.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.js CHANGED
@@ -2580,12 +2580,12 @@ function parseDependency(fileOrGlob) {
2580
2580
  let message = null;
2581
2581
  if ((0, import_is_glob.default)(fileOrGlob)) {
2582
2582
  const { base, glob: glob2 } = parseGlob(fileOrGlob);
2583
- message = { type: "dir-dependency", dir: (0, import_pathe2.resolve)(base), glob: glob2 };
2583
+ message = { type: "dir-dependency", dir: (0, import_pathe2.normalize)((0, import_pathe2.resolve)(base)), glob: glob2 };
2584
2584
  } else {
2585
- message = { type: "dependency", file: (0, import_pathe2.resolve)(fileOrGlob) };
2585
+ message = { type: "dependency", file: (0, import_pathe2.normalize)((0, import_pathe2.resolve)(fileOrGlob)) };
2586
2586
  }
2587
2587
  if (message.type === "dir-dependency" && process.env.ROLLUP_WATCH === "true") {
2588
- message = { type: "dependency", file: (0, import_pathe2.resolve)(message.dir) };
2588
+ message = { type: "dependency", file: (0, import_pathe2.normalize)((0, import_pathe2.resolve)(message.dir)) };
2589
2589
  }
2590
2590
  return message;
2591
2591
  }
@@ -2714,7 +2714,6 @@ var Builder = class {
2714
2714
  write = (root) => {
2715
2715
  const ctx = this.getContextOrThrow();
2716
2716
  const sheet = ctx.createSheet();
2717
- ctx.appendLayerParams(sheet);
2718
2717
  ctx.appendBaselineCss(sheet);
2719
2718
  const css = ctx.getCss(sheet);
2720
2719
  root.append(
@@ -2729,12 +2728,11 @@ var Builder = class {
2729
2728
  const ctx = this.getContextOrThrow();
2730
2729
  for (const fileOrGlob of ctx.config.include) {
2731
2730
  const dependency = parseDependency(fileOrGlob);
2732
- if (dependency) {
2731
+ if (dependency)
2733
2732
  fn(dependency);
2734
- }
2735
2733
  }
2736
2734
  for (const file of this.configDependencies) {
2737
- fn({ type: "dependency", file: ctx.runtime.path.resolve(file) });
2735
+ fn({ type: "dependency", file: (0, import_pathe3.normalize)((0, import_pathe3.resolve)(file)) });
2738
2736
  }
2739
2737
  };
2740
2738
  };
package/dist/index.mjs CHANGED
@@ -767,7 +767,7 @@ import { optimizeCss } from "@pandacss/core";
767
767
  import { ConfigNotFoundError } from "@pandacss/error";
768
768
  import { logger as logger6 } from "@pandacss/logger";
769
769
  import { existsSync, statSync } from "fs";
770
- import { resolve as resolve3 } from "pathe";
770
+ import { normalize as normalize2, resolve as resolve3 } from "pathe";
771
771
 
772
772
  // src/codegen.ts
773
773
  init_esm_shims();
@@ -2525,7 +2525,7 @@ async function loadConfigAndCreateContext(options = {}) {
2525
2525
  // src/parse-dependency.ts
2526
2526
  init_esm_shims();
2527
2527
  import isGlob from "is-glob";
2528
- import { resolve as resolve2 } from "pathe";
2528
+ import { resolve as resolve2, normalize } from "pathe";
2529
2529
 
2530
2530
  // src/parse-glob.ts
2531
2531
  init_esm_shims();
@@ -2556,12 +2556,12 @@ function parseDependency(fileOrGlob) {
2556
2556
  let message = null;
2557
2557
  if (isGlob(fileOrGlob)) {
2558
2558
  const { base, glob: glob2 } = parseGlob(fileOrGlob);
2559
- message = { type: "dir-dependency", dir: resolve2(base), glob: glob2 };
2559
+ message = { type: "dir-dependency", dir: normalize(resolve2(base)), glob: glob2 };
2560
2560
  } else {
2561
- message = { type: "dependency", file: resolve2(fileOrGlob) };
2561
+ message = { type: "dependency", file: normalize(resolve2(fileOrGlob)) };
2562
2562
  }
2563
2563
  if (message.type === "dir-dependency" && process.env.ROLLUP_WATCH === "true") {
2564
- message = { type: "dependency", file: resolve2(message.dir) };
2564
+ message = { type: "dependency", file: normalize(resolve2(message.dir)) };
2565
2565
  }
2566
2566
  return message;
2567
2567
  }
@@ -2690,7 +2690,6 @@ var Builder = class {
2690
2690
  write = (root) => {
2691
2691
  const ctx = this.getContextOrThrow();
2692
2692
  const sheet = ctx.createSheet();
2693
- ctx.appendLayerParams(sheet);
2694
2693
  ctx.appendBaselineCss(sheet);
2695
2694
  const css = ctx.getCss(sheet);
2696
2695
  root.append(
@@ -2705,12 +2704,11 @@ var Builder = class {
2705
2704
  const ctx = this.getContextOrThrow();
2706
2705
  for (const fileOrGlob of ctx.config.include) {
2707
2706
  const dependency = parseDependency(fileOrGlob);
2708
- if (dependency) {
2707
+ if (dependency)
2709
2708
  fn(dependency);
2710
- }
2711
2709
  }
2712
2710
  for (const file of this.configDependencies) {
2713
- fn({ type: "dependency", file: ctx.runtime.path.resolve(file) });
2711
+ fn({ type: "dependency", file: normalize2(resolve3(file)) });
2714
2712
  }
2715
2713
  };
2716
2714
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -54,16 +54,16 @@
54
54
  "ts-morph": "19.0.0",
55
55
  "ts-pattern": "5.0.5",
56
56
  "tsconfck": "^2.1.2",
57
- "@pandacss/config": "0.27.0",
58
- "@pandacss/core": "0.27.0",
59
- "@pandacss/error": "0.27.0",
60
- "@pandacss/extractor": "0.27.0",
61
- "@pandacss/generator": "0.27.0",
62
- "@pandacss/logger": "0.27.0",
63
- "@pandacss/parser": "0.27.0",
64
- "@pandacss/shared": "0.27.0",
65
- "@pandacss/token-dictionary": "0.27.0",
66
- "@pandacss/types": "0.27.0"
57
+ "@pandacss/config": "0.27.1",
58
+ "@pandacss/core": "0.27.1",
59
+ "@pandacss/error": "0.27.1",
60
+ "@pandacss/extractor": "0.27.1",
61
+ "@pandacss/generator": "0.27.1",
62
+ "@pandacss/logger": "0.27.1",
63
+ "@pandacss/parser": "0.27.1",
64
+ "@pandacss/shared": "0.27.1",
65
+ "@pandacss/token-dictionary": "0.27.1",
66
+ "@pandacss/types": "0.27.1"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/fs-extra": "11.0.4",