@pandacss/node 0.27.1 → 0.27.2

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
@@ -791,7 +791,7 @@ var import_core = require("@pandacss/core");
791
791
  var import_error = require("@pandacss/error");
792
792
  var import_logger6 = require("@pandacss/logger");
793
793
  var import_fs = require("fs");
794
- var import_pathe3 = require("pathe");
794
+ var import_path3 = require("path");
795
795
 
796
796
  // src/codegen.ts
797
797
  init_cjs_shims();
@@ -2286,7 +2286,7 @@ var import_logger3 = require("@pandacss/logger");
2286
2286
  var import_chokidar = __toESM(require("chokidar"));
2287
2287
  var import_fast_glob = __toESM(require("fast-glob"));
2288
2288
  var import_fs_extra = __toESM(require("fs-extra"));
2289
- var import_pathe = require("pathe");
2289
+ var import_path = require("path");
2290
2290
  var nodeRuntime = {
2291
2291
  cwd() {
2292
2292
  return process.cwd();
@@ -2295,15 +2295,15 @@ var nodeRuntime = {
2295
2295
  return process.env[name];
2296
2296
  },
2297
2297
  path: {
2298
- join: import_pathe.join,
2299
- relative: import_pathe.relative,
2300
- dirname: import_pathe.dirname,
2301
- extname: import_pathe.extname,
2302
- isAbsolute: import_pathe.isAbsolute,
2303
- sep: import_pathe.sep,
2304
- resolve: import_pathe.resolve,
2298
+ join: import_path.join,
2299
+ relative: import_path.relative,
2300
+ dirname: import_path.dirname,
2301
+ extname: import_path.extname,
2302
+ isAbsolute: import_path.isAbsolute,
2303
+ sep: import_path.sep,
2304
+ resolve: import_path.resolve,
2305
2305
  abs(cwd, str) {
2306
- return (0, import_pathe.isAbsolute)(str) ? str : (0, import_pathe.join)(cwd, str);
2306
+ return (0, import_path.isAbsolute)(str) ? str : (0, import_path.join)(cwd, str);
2307
2307
  }
2308
2308
  },
2309
2309
  fs: {
@@ -2549,7 +2549,7 @@ async function loadConfigAndCreateContext(options = {}) {
2549
2549
  // src/parse-dependency.ts
2550
2550
  init_cjs_shims();
2551
2551
  var import_is_glob = __toESM(require("is-glob"));
2552
- var import_pathe2 = require("pathe");
2552
+ var import_path2 = require("path");
2553
2553
 
2554
2554
  // src/parse-glob.ts
2555
2555
  init_cjs_shims();
@@ -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.normalize)((0, import_pathe2.resolve)(base)), glob: glob2 };
2583
+ message = { type: "dir-dependency", dir: (0, import_path2.normalize)((0, import_path2.resolve)(base)), glob: glob2 };
2584
2584
  } else {
2585
- message = { type: "dependency", file: (0, import_pathe2.normalize)((0, import_pathe2.resolve)(fileOrGlob)) };
2585
+ message = { type: "dependency", file: (0, import_path2.normalize)((0, import_path2.resolve)(fileOrGlob)) };
2586
2586
  }
2587
2587
  if (message.type === "dir-dependency" && process.env.ROLLUP_WATCH === "true") {
2588
- message = { type: "dependency", file: (0, import_pathe2.normalize)((0, import_pathe2.resolve)(message.dir)) };
2588
+ message = { type: "dependency", file: (0, import_path2.normalize)((0, import_path2.resolve)(message.dir)) };
2589
2589
  }
2590
2590
  return message;
2591
2591
  }
@@ -2615,7 +2615,7 @@ var Builder = class {
2615
2615
  const cwd = options?.cwd ?? this.context?.config.cwd ?? process.cwd();
2616
2616
  const configDeps = /* @__PURE__ */ new Set([
2617
2617
  ...foundDeps,
2618
- ...(this.context?.conf.dependencies ?? []).map((file) => (0, import_pathe3.resolve)(cwd, file))
2618
+ ...(this.context?.conf.dependencies ?? []).map((file) => (0, import_path3.resolve)(cwd, file))
2619
2619
  ]);
2620
2620
  this.configDependencies = configDeps;
2621
2621
  import_logger6.logger.debug("builder", "Config dependencies");
@@ -2732,7 +2732,7 @@ var Builder = class {
2732
2732
  fn(dependency);
2733
2733
  }
2734
2734
  for (const file of this.configDependencies) {
2735
- fn({ type: "dependency", file: (0, import_pathe3.normalize)((0, import_pathe3.resolve)(file)) });
2735
+ fn({ type: "dependency", file: (0, import_path3.normalize)((0, import_path3.resolve)(file)) });
2736
2736
  }
2737
2737
  };
2738
2738
  };
@@ -2774,7 +2774,7 @@ var cssgen = async (ctx, options) => {
2774
2774
  // src/debug.ts
2775
2775
  init_cjs_shims();
2776
2776
  var import_logger8 = require("@pandacss/logger");
2777
- var import_pathe4 = require("pathe");
2777
+ var import_path4 = require("path");
2778
2778
  async function debug(ctx, options) {
2779
2779
  const files = ctx.getFiles();
2780
2780
  const measureTotal = import_logger8.logger.time.debug(`Done parsing ${files.length} files`);
@@ -2809,7 +2809,7 @@ async function debug(ctx, options) {
2809
2809
  }
2810
2810
  if (outdir) {
2811
2811
  filesWithCss.push(file);
2812
- const parsedPath = (0, import_pathe4.parse)(file);
2812
+ const parsedPath = (0, import_path4.parse)(file);
2813
2813
  const relative2 = path.relative(ctx.config.cwd, parsedPath.dir);
2814
2814
  const astJsonPath = `${relative2}/${parsedPath.name}.ast.json`.replaceAll(path.sep, "__");
2815
2815
  const cssPath = `${relative2}/${parsedPath.name}.css`.replaceAll(path.sep, "__");
@@ -2929,7 +2929,7 @@ var import_logger10 = require("@pandacss/logger");
2929
2929
  var import_fs_extra2 = __toESM(require("fs-extra"));
2930
2930
  var import_look_it_up2 = require("look-it-up");
2931
2931
  var import_outdent2 = require("outdent");
2932
- var import_pathe5 = require("pathe");
2932
+ var import_path5 = require("path");
2933
2933
  var import_preferred_pm = __toESM(require("preferred-pm"));
2934
2934
  var import_prettier = __toESM(require("prettier"));
2935
2935
  async function setupConfig(cwd, opts = {}) {
@@ -2974,7 +2974,7 @@ jsxFramework: '${jsxFramework}',` : ""}
2974
2974
  syntax: '${syntax}'` : ""}
2975
2975
  })
2976
2976
  `;
2977
- await import_fs_extra2.default.writeFile((0, import_pathe5.join)(cwd, file), import_prettier.default.format(content));
2977
+ await import_fs_extra2.default.writeFile((0, import_path5.join)(cwd, file), import_prettier.default.format(content));
2978
2978
  import_logger10.logger.log(import_core2.messages.thankYou());
2979
2979
  }
2980
2980
  }
@@ -2987,7 +2987,7 @@ module.exports = {
2987
2987
  },
2988
2988
  }
2989
2989
  `;
2990
- await import_fs_extra2.default.writeFile((0, import_pathe5.join)(cwd, "postcss.config.cjs"), content);
2990
+ await import_fs_extra2.default.writeFile((0, import_path5.join)(cwd, "postcss.config.cjs"), content);
2991
2991
  }
2992
2992
  // Annotate the CommonJS export names for ESM import in node:
2993
2993
  0 && (module.exports = {
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 { normalize as normalize2, resolve as resolve3 } from "pathe";
770
+ import { normalize as normalize2, resolve as resolve3 } from "path";
771
771
 
772
772
  // src/codegen.ts
773
773
  init_esm_shims();
@@ -2262,7 +2262,7 @@ import { logger as logger3 } from "@pandacss/logger";
2262
2262
  import chokidar from "chokidar";
2263
2263
  import glob from "fast-glob";
2264
2264
  import fsExtra from "fs-extra";
2265
- import { dirname, extname, isAbsolute, join, relative, sep, resolve } from "pathe";
2265
+ import { dirname, extname, isAbsolute, join, relative, resolve, sep } from "path";
2266
2266
  var nodeRuntime = {
2267
2267
  cwd() {
2268
2268
  return process.cwd();
@@ -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, normalize } from "pathe";
2528
+ import { normalize, resolve as resolve2 } from "path";
2529
2529
 
2530
2530
  // src/parse-glob.ts
2531
2531
  init_esm_shims();
@@ -2750,7 +2750,7 @@ var cssgen = async (ctx, options) => {
2750
2750
  // src/debug.ts
2751
2751
  init_esm_shims();
2752
2752
  import { colors as colors2, logger as logger8 } from "@pandacss/logger";
2753
- import { parse as parse2 } from "pathe";
2753
+ import { parse as parse2 } from "path";
2754
2754
  async function debug(ctx, options) {
2755
2755
  const files = ctx.getFiles();
2756
2756
  const measureTotal = logger8.time.debug(`Done parsing ${files.length} files`);
@@ -2905,7 +2905,7 @@ import { logger as logger10, quote } from "@pandacss/logger";
2905
2905
  import fsExtra2 from "fs-extra";
2906
2906
  import { lookItUpSync as lookItUpSync2 } from "look-it-up";
2907
2907
  import { outdent as outdent2 } from "outdent";
2908
- import { join as join2 } from "pathe";
2908
+ import { join as join2 } from "path";
2909
2909
  import getPackageManager from "preferred-pm";
2910
2910
  import prettier from "prettier";
2911
2911
  async function setupConfig(cwd, opts = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.27.1",
3
+ "version": "0.27.2",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -44,7 +44,6 @@
44
44
  "lodash.merge": "4.6.2",
45
45
  "look-it-up": "2.1.0",
46
46
  "outdent": " ^0.8.0",
47
- "pathe": "^1.1.1",
48
47
  "perfect-debounce": "^1.0.0",
49
48
  "pkg-types": "1.0.3",
50
49
  "pluralize": "8.0.0",
@@ -54,16 +53,16 @@
54
53
  "ts-morph": "19.0.0",
55
54
  "ts-pattern": "5.0.5",
56
55
  "tsconfck": "^2.1.2",
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"
56
+ "@pandacss/config": "0.27.2",
57
+ "@pandacss/core": "0.27.2",
58
+ "@pandacss/error": "0.27.2",
59
+ "@pandacss/extractor": "0.27.2",
60
+ "@pandacss/generator": "0.27.2",
61
+ "@pandacss/logger": "0.27.2",
62
+ "@pandacss/parser": "0.27.2",
63
+ "@pandacss/shared": "0.27.2",
64
+ "@pandacss/token-dictionary": "0.27.2",
65
+ "@pandacss/types": "0.27.2"
67
66
  },
68
67
  "devDependencies": {
69
68
  "@types/fs-extra": "11.0.4",