@pandacss/node 0.17.5 → 0.18.0

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.d.mts CHANGED
@@ -217,6 +217,7 @@ declare function loadConfigAndCreateContext(options?: {
217
217
  declare function debugFiles(ctx: PandaContext, options: {
218
218
  outdir: string;
219
219
  dry: boolean;
220
+ onlyConfig?: boolean;
220
221
  }): Promise<void>;
221
222
 
222
223
  declare function execCommand(cmd: string, cwd: string): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -217,6 +217,7 @@ declare function loadConfigAndCreateContext(options?: {
217
217
  declare function debugFiles(ctx: PandaContext, options: {
218
218
  outdir: string;
219
219
  dry: boolean;
220
+ onlyConfig?: boolean;
220
221
  }): Promise<void>;
221
222
 
222
223
  declare function execCommand(cmd: string, cwd: string): Promise<void>;
package/dist/index.js CHANGED
@@ -2786,6 +2786,10 @@ async function debugFiles(ctx, options) {
2786
2786
  import_logger6.logger.info("cli", `Writing ${import_logger6.colors.bold(`${outdir}/config.json`)}`);
2787
2787
  await fs.writeFile(`${outdir}/config.json`, JSON.stringify(ctx.config, null, 2));
2788
2788
  }
2789
+ if (options.onlyConfig) {
2790
+ measureTotal();
2791
+ return;
2792
+ }
2789
2793
  const filesWithCss = [];
2790
2794
  await Promise.allSettled(
2791
2795
  files.map(async (file) => {
@@ -2931,6 +2935,7 @@ var import_look_it_up3 = require("look-it-up");
2931
2935
  var import_outdent2 = require("outdent");
2932
2936
  var import_path3 = require("path");
2933
2937
  var import_preferred_pm2 = __toESM(require("preferred-pm"));
2938
+ var import_prettier = __toESM(require("prettier"));
2934
2939
  async function setupConfig(cwd, opts = {}) {
2935
2940
  const { force, outExtension, jsxFramework, syntax } = opts;
2936
2941
  const configFile = findConfig();
@@ -2973,7 +2978,7 @@ jsxFramework: '${jsxFramework}',` : ""}
2973
2978
  syntax: '${syntax}'` : ""}
2974
2979
  })
2975
2980
  `;
2976
- await import_fs_extra3.default.writeFile((0, import_path3.join)(cwd, file), content);
2981
+ await import_fs_extra3.default.writeFile((0, import_path3.join)(cwd, file), import_prettier.default.format(content));
2977
2982
  import_logger9.logger.log(import_generator2.messages.thankYou());
2978
2983
  }
2979
2984
  }
package/dist/index.mjs CHANGED
@@ -2762,6 +2762,10 @@ async function debugFiles(ctx, options) {
2762
2762
  logger6.info("cli", `Writing ${colors.bold(`${outdir}/config.json`)}`);
2763
2763
  await fs.writeFile(`${outdir}/config.json`, JSON.stringify(ctx.config, null, 2));
2764
2764
  }
2765
+ if (options.onlyConfig) {
2766
+ measureTotal();
2767
+ return;
2768
+ }
2765
2769
  const filesWithCss = [];
2766
2770
  await Promise.allSettled(
2767
2771
  files.map(async (file) => {
@@ -2907,6 +2911,7 @@ import { lookItUpSync as lookItUpSync3 } from "look-it-up";
2907
2911
  import { outdent as outdent2 } from "outdent";
2908
2912
  import { join as join2 } from "path";
2909
2913
  import getPackageManager2 from "preferred-pm";
2914
+ import prettier from "prettier";
2910
2915
  async function setupConfig(cwd, opts = {}) {
2911
2916
  const { force, outExtension, jsxFramework, syntax } = opts;
2912
2917
  const configFile = findConfig();
@@ -2949,7 +2954,7 @@ jsxFramework: '${jsxFramework}',` : ""}
2949
2954
  syntax: '${syntax}'` : ""}
2950
2955
  })
2951
2956
  `;
2952
- await fsExtra3.writeFile(join2(cwd, file), content);
2957
+ await fsExtra3.writeFile(join2(cwd, file), prettier.format(content));
2953
2958
  logger9.log(messages.thankYou());
2954
2959
  }
2955
2960
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.17.5",
3
+ "version": "0.18.0",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -43,20 +43,21 @@
43
43
  "pluralize": "8.0.0",
44
44
  "postcss": "^8.4.31",
45
45
  "preferred-pm": "^3.0.3",
46
+ "prettier": "^2.8.8",
46
47
  "ts-morph": "19.0.0",
47
48
  "ts-pattern": "5.0.5",
48
49
  "tsconfck": "^2.1.2",
49
- "@pandacss/config": "0.17.5",
50
- "@pandacss/core": "0.17.5",
51
- "@pandacss/error": "0.17.5",
52
- "@pandacss/extractor": "0.17.5",
53
- "@pandacss/generator": "0.17.5",
54
- "@pandacss/is-valid-prop": "0.17.5",
55
- "@pandacss/logger": "0.17.5",
56
- "@pandacss/parser": "0.17.5",
57
- "@pandacss/shared": "0.17.5",
58
- "@pandacss/token-dictionary": "0.17.5",
59
- "@pandacss/types": "0.17.5"
50
+ "@pandacss/config": "0.18.0",
51
+ "@pandacss/core": "0.18.0",
52
+ "@pandacss/error": "0.18.0",
53
+ "@pandacss/extractor": "0.18.0",
54
+ "@pandacss/generator": "0.18.0",
55
+ "@pandacss/is-valid-prop": "0.18.0",
56
+ "@pandacss/logger": "0.18.0",
57
+ "@pandacss/parser": "0.18.0",
58
+ "@pandacss/shared": "0.18.0",
59
+ "@pandacss/token-dictionary": "0.18.0",
60
+ "@pandacss/types": "0.18.0"
60
61
  },
61
62
  "devDependencies": {
62
63
  "@types/fs-extra": "11.0.3",
@@ -66,7 +67,7 @@
66
67
  "@types/pluralize": "0.0.30",
67
68
  "boxen": "^7.1.1",
68
69
  "p-limit": "^4.0.0",
69
- "@pandacss/fixture": "0.17.5"
70
+ "@pandacss/fixture": "0.18.0"
70
71
  },
71
72
  "scripts": {
72
73
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",