@pandacss/node 0.0.0-dev-20240214214337 → 0.0.0-dev-20240216221415

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
@@ -2224,8 +2224,12 @@ var limit = pLimit(20);
2224
2224
  async function codegen(ctx, ids) {
2225
2225
  if (ctx.config.clean)
2226
2226
  ctx.output.empty();
2227
- const artifacts = ctx.getArtifacts(ids);
2228
- await ctx.hooks["codegen:prepare"]?.({ changed: ids, artifacts });
2227
+ let artifacts = ctx.getArtifacts(ids);
2228
+ if (ctx.hooks["codegen:prepare"]) {
2229
+ const results = await ctx.hooks["codegen:prepare"]?.({ changed: ids, artifacts });
2230
+ if (results)
2231
+ artifacts = results;
2232
+ }
2229
2233
  const promises = artifacts.map((artifact) => limit(() => ctx.output.write(artifact)));
2230
2234
  await Promise.allSettled(promises);
2231
2235
  await ctx.hooks["codegen:done"]?.({ changed: ids });
package/dist/index.mjs CHANGED
@@ -2198,8 +2198,12 @@ var limit = pLimit(20);
2198
2198
  async function codegen(ctx, ids) {
2199
2199
  if (ctx.config.clean)
2200
2200
  ctx.output.empty();
2201
- const artifacts = ctx.getArtifacts(ids);
2202
- await ctx.hooks["codegen:prepare"]?.({ changed: ids, artifacts });
2201
+ let artifacts = ctx.getArtifacts(ids);
2202
+ if (ctx.hooks["codegen:prepare"]) {
2203
+ const results = await ctx.hooks["codegen:prepare"]?.({ changed: ids, artifacts });
2204
+ if (results)
2205
+ artifacts = results;
2206
+ }
2203
2207
  const promises = artifacts.map((artifact) => limit(() => ctx.output.write(artifact)));
2204
2208
  await Promise.allSettled(promises);
2205
2209
  await ctx.hooks["codegen:done"]?.({ changed: ids });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.0.0-dev-20240214214337",
3
+ "version": "0.0.0-dev-20240216221415",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -52,15 +52,15 @@
52
52
  "ts-morph": "19.0.0",
53
53
  "ts-pattern": "5.0.5",
54
54
  "tsconfck": "^2.1.2",
55
- "@pandacss/config": "0.0.0-dev-20240214214337",
56
- "@pandacss/core": "0.0.0-dev-20240214214337",
57
- "@pandacss/extractor": "0.0.0-dev-20240214214337",
58
- "@pandacss/generator": "0.0.0-dev-20240214214337",
59
- "@pandacss/logger": "0.0.0-dev-20240214214337",
60
- "@pandacss/parser": "0.0.0-dev-20240214214337",
61
- "@pandacss/shared": "0.0.0-dev-20240214214337",
62
- "@pandacss/token-dictionary": "0.0.0-dev-20240214214337",
63
- "@pandacss/types": "0.0.0-dev-20240214214337"
55
+ "@pandacss/config": "0.0.0-dev-20240216221415",
56
+ "@pandacss/core": "0.0.0-dev-20240216221415",
57
+ "@pandacss/extractor": "0.0.0-dev-20240216221415",
58
+ "@pandacss/generator": "0.0.0-dev-20240216221415",
59
+ "@pandacss/logger": "0.0.0-dev-20240216221415",
60
+ "@pandacss/parser": "0.0.0-dev-20240216221415",
61
+ "@pandacss/shared": "0.0.0-dev-20240216221415",
62
+ "@pandacss/token-dictionary": "0.0.0-dev-20240216221415",
63
+ "@pandacss/types": "0.0.0-dev-20240216221415"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/fs-extra": "11.0.4",