@pandacss/node 0.17.3 → 0.17.5

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
@@ -170,7 +170,7 @@ declare function analyzeTokens(ctx: PandaContext, options?: Options): {
170
170
  }>;
171
171
  };
172
172
  };
173
- declare const writeAnalyzeJSON: (fileName: string, result: ReturnType<typeof analyzeTokens>, ctx: PandaContext) => Promise<void>;
173
+ declare const writeAnalyzeJSON: (filePath: string, result: ReturnType<typeof analyzeTokens>, ctx: PandaContext) => Promise<void>;
174
174
 
175
175
  interface ConfigDepsResult {
176
176
  modifiedMap: Map<string, number>;
package/dist/index.d.ts CHANGED
@@ -170,7 +170,7 @@ declare function analyzeTokens(ctx: PandaContext, options?: Options): {
170
170
  }>;
171
171
  };
172
172
  };
173
- declare const writeAnalyzeJSON: (fileName: string, result: ReturnType<typeof analyzeTokens>, ctx: PandaContext) => Promise<void>;
173
+ declare const writeAnalyzeJSON: (filePath: string, result: ReturnType<typeof analyzeTokens>, ctx: PandaContext) => Promise<void>;
174
174
 
175
175
  interface ConfigDepsResult {
176
176
  modifiedMap: Map<string, number>;
package/dist/index.js CHANGED
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.31_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@7.1.0_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.31_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@7.1.0_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  "use strict";
40
40
  }
41
41
  });
@@ -756,12 +756,14 @@ var analyzeResultSerializer = (_key, value) => {
756
756
  }
757
757
  return value;
758
758
  };
759
- var writeAnalyzeJSON = (fileName, result, ctx) => {
759
+ var writeAnalyzeJSON = (filePath, result, ctx) => {
760
760
  result.details.byInstanceId.forEach((item) => {
761
761
  item.box = item.box.toJSON();
762
762
  });
763
+ const dirname2 = ctx.runtime.path.dirname(filePath);
764
+ ctx.runtime.fs.ensureDirSync(dirname2);
763
765
  return (0, import_promises.writeFile)(
764
- fileName,
766
+ filePath,
765
767
  JSON.stringify(
766
768
  Object.assign(result, {
767
769
  cwd: ctx.config.cwd,
@@ -3011,6 +3013,8 @@ async function shipFiles(ctx, outfile) {
3011
3013
  const minify = ctx.config.minify;
3012
3014
  import_logger10.logger.info("cli", `Writing ${minify ? "[min] " : " "}${import_logger10.colors.bold(outfile)}`);
3013
3015
  const output = JSON.stringify(extractResult.toJSON(), null, minify ? 0 : 2);
3016
+ const dirname2 = ctx.runtime.path.dirname(outfile);
3017
+ ctx.runtime.fs.ensureDirSync(dirname2);
3014
3018
  await (0, import_promises3.writeFile)(outfile, output);
3015
3019
  import_logger10.logger.info("cli", "Done!");
3016
3020
  }
package/dist/index.mjs CHANGED
@@ -34,9 +34,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  mod
35
35
  ));
36
36
 
37
- // ../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.31_typescript@5.2.2/node_modules/tsup/assets/esm_shims.js
37
+ // ../../node_modules/.pnpm/tsup@7.1.0_typescript@5.2.2/node_modules/tsup/assets/esm_shims.js
38
38
  var init_esm_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.31_typescript@5.2.2/node_modules/tsup/assets/esm_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@7.1.0_typescript@5.2.2/node_modules/tsup/assets/esm_shims.js"() {
40
40
  "use strict";
41
41
  }
42
42
  });
@@ -732,12 +732,14 @@ var analyzeResultSerializer = (_key, value) => {
732
732
  }
733
733
  return value;
734
734
  };
735
- var writeAnalyzeJSON = (fileName, result, ctx) => {
735
+ var writeAnalyzeJSON = (filePath, result, ctx) => {
736
736
  result.details.byInstanceId.forEach((item) => {
737
737
  item.box = item.box.toJSON();
738
738
  });
739
+ const dirname2 = ctx.runtime.path.dirname(filePath);
740
+ ctx.runtime.fs.ensureDirSync(dirname2);
739
741
  return writeFile(
740
- fileName,
742
+ filePath,
741
743
  JSON.stringify(
742
744
  Object.assign(result, {
743
745
  cwd: ctx.config.cwd,
@@ -2987,6 +2989,8 @@ async function shipFiles(ctx, outfile) {
2987
2989
  const minify = ctx.config.minify;
2988
2990
  logger10.info("cli", `Writing ${minify ? "[min] " : " "}${colors2.bold(outfile)}`);
2989
2991
  const output = JSON.stringify(extractResult.toJSON(), null, minify ? 0 : 2);
2992
+ const dirname2 = ctx.runtime.path.dirname(outfile);
2993
+ ctx.runtime.fs.ensureDirSync(dirname2);
2990
2994
  await writeFile3(outfile, output);
2991
2995
  logger10.info("cli", "Done!");
2992
2996
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.17.3",
3
+ "version": "0.17.5",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -46,17 +46,17 @@
46
46
  "ts-morph": "19.0.0",
47
47
  "ts-pattern": "5.0.5",
48
48
  "tsconfck": "^2.1.2",
49
- "@pandacss/config": "0.17.3",
50
- "@pandacss/core": "0.17.3",
51
- "@pandacss/error": "0.17.3",
52
- "@pandacss/extractor": "0.17.3",
53
- "@pandacss/generator": "0.17.3",
54
- "@pandacss/is-valid-prop": "0.17.3",
55
- "@pandacss/logger": "0.17.3",
56
- "@pandacss/parser": "0.17.3",
57
- "@pandacss/shared": "0.17.3",
58
- "@pandacss/token-dictionary": "0.17.3",
59
- "@pandacss/types": "0.17.3"
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"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/fs-extra": "11.0.3",
@@ -66,7 +66,7 @@
66
66
  "@types/pluralize": "0.0.30",
67
67
  "boxen": "^7.1.1",
68
68
  "p-limit": "^4.0.0",
69
- "@pandacss/fixture": "0.17.3"
69
+ "@pandacss/fixture": "0.17.5"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",