@pandacss/node 0.29.0 → 0.29.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
@@ -2973,6 +2973,7 @@ init_cjs_shims();
2973
2973
  var import_config7 = require("@pandacss/config");
2974
2974
  var import_core2 = require("@pandacss/core");
2975
2975
  var import_logger11 = require("@pandacss/logger");
2976
+ var import_shared3 = require("@pandacss/shared");
2976
2977
  var import_fs_extra2 = __toESM(require("fs-extra"));
2977
2978
  var import_look_it_up2 = require("look-it-up");
2978
2979
  var import_outdent2 = require("outdent");
@@ -2981,7 +2982,14 @@ var import_preferred_pm = __toESM(require("preferred-pm"));
2981
2982
  var import_prettier = __toESM(require("prettier"));
2982
2983
  async function setupConfig(cwd, opts = {}) {
2983
2984
  const { force, outExtension, jsxFramework, syntax } = opts;
2984
- const configFile = (0, import_config7.findConfig)({ cwd });
2985
+ let configFile;
2986
+ try {
2987
+ configFile = (0, import_config7.findConfig)({ cwd });
2988
+ } catch (err) {
2989
+ if (!(err instanceof import_shared3.PandaError)) {
2990
+ throw err;
2991
+ }
2992
+ }
2985
2993
  const pmResult = await (0, import_preferred_pm.default)(cwd);
2986
2994
  const pm = pmResult?.name ?? "npm";
2987
2995
  const cmd = pm === "npm" ? "npm run" : pm;
package/dist/index.mjs CHANGED
@@ -2948,6 +2948,7 @@ init_esm_shims();
2948
2948
  import { findConfig as findConfig2 } from "@pandacss/config";
2949
2949
  import { messages } from "@pandacss/core";
2950
2950
  import { logger as logger11, quote } from "@pandacss/logger";
2951
+ import { PandaError as PandaError2 } from "@pandacss/shared";
2951
2952
  import fsExtra2 from "fs-extra";
2952
2953
  import { lookItUpSync as lookItUpSync2 } from "look-it-up";
2953
2954
  import { outdent as outdent2 } from "outdent";
@@ -2956,7 +2957,14 @@ import getPackageManager from "preferred-pm";
2956
2957
  import prettier from "prettier";
2957
2958
  async function setupConfig(cwd, opts = {}) {
2958
2959
  const { force, outExtension, jsxFramework, syntax } = opts;
2959
- const configFile = findConfig2({ cwd });
2960
+ let configFile;
2961
+ try {
2962
+ configFile = findConfig2({ cwd });
2963
+ } catch (err) {
2964
+ if (!(err instanceof PandaError2)) {
2965
+ throw err;
2966
+ }
2967
+ }
2960
2968
  const pmResult = await getPackageManager(cwd);
2961
2969
  const pm = pmResult?.name ?? "npm";
2962
2970
  const cmd = pm === "npm" ? "npm run" : pm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.29.0",
3
+ "version": "0.29.1",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -53,15 +53,15 @@
53
53
  "ts-pattern": "5.0.5",
54
54
  "tsconfck": "^2.1.2",
55
55
  "v8-profiler-next": "^1.10.0",
56
- "@pandacss/config": "0.29.0",
57
- "@pandacss/core": "0.29.0",
58
- "@pandacss/extractor": "0.29.0",
59
- "@pandacss/generator": "0.29.0",
60
- "@pandacss/logger": "0.29.0",
61
- "@pandacss/parser": "0.29.0",
62
- "@pandacss/shared": "0.29.0",
63
- "@pandacss/token-dictionary": "0.29.0",
64
- "@pandacss/types": "0.29.0"
56
+ "@pandacss/config": "0.29.1",
57
+ "@pandacss/core": "0.29.1",
58
+ "@pandacss/extractor": "0.29.1",
59
+ "@pandacss/generator": "0.29.1",
60
+ "@pandacss/logger": "0.29.1",
61
+ "@pandacss/parser": "0.29.1",
62
+ "@pandacss/shared": "0.29.1",
63
+ "@pandacss/token-dictionary": "0.29.1",
64
+ "@pandacss/types": "0.29.1"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/fs-extra": "11.0.4",