@pandacss/node 0.8.0 → 0.9.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
@@ -195,6 +195,7 @@ declare class Builder {
195
195
  getConfigPath(): string;
196
196
  setup(options?: {
197
197
  configPath?: string;
198
+ cwd?: string;
198
199
  }): Promise<void>;
199
200
  setupContext(options: {
200
201
  configPath: string;
package/dist/index.d.ts CHANGED
@@ -195,6 +195,7 @@ declare class Builder {
195
195
  getConfigPath(): string;
196
196
  setup(options?: {
197
197
  configPath?: string;
198
+ cwd?: string;
198
199
  }): Promise<void>;
199
200
  setupContext(options: {
200
201
  configPath: string;
package/dist/index.js CHANGED
@@ -2461,7 +2461,10 @@ var Builder = class {
2461
2461
  const newModified = /* @__PURE__ */ new Map();
2462
2462
  const prevModified = configCache.get(configPath)?.depsModifiedMap;
2463
2463
  for (const file of deps) {
2464
- const time = (0, import_fs_extra2.statSync)(file).mtimeMs;
2464
+ const stats = (0, import_fs_extra2.statSync)(file, { throwIfNoEntry: false });
2465
+ if (!stats)
2466
+ continue;
2467
+ const time = stats.mtimeMs;
2465
2468
  newModified.set(file, time);
2466
2469
  if (!prevModified || !prevModified.has(file) || time > prevModified.get(file)) {
2467
2470
  modified = true;
@@ -2491,7 +2494,7 @@ var Builder = class {
2491
2494
  const tsOptions = this.context?.tsOptions ?? { baseUrl: void 0, pathMappings: [] };
2492
2495
  const compilerOptions = this.context?.tsconfig?.compilerOptions ?? {};
2493
2496
  const { deps: foundDeps } = (0, import_config2.getConfigDependencies)(configPath, tsOptions, compilerOptions);
2494
- const cwd = this.context?.config.cwd ?? (0, import_path2.dirname)(configPath);
2497
+ const cwd = options?.cwd ?? this.context?.config.cwd ?? process.cwd();
2495
2498
  const configDeps = /* @__PURE__ */ new Set([...foundDeps, ...(this.context?.dependencies ?? []).map((file) => (0, import_path2.resolve)(cwd, file))]);
2496
2499
  this.configDependencies = configDeps;
2497
2500
  const deps = this.checkConfigDeps(configPath, configDeps);
package/dist/index.mjs CHANGED
@@ -762,7 +762,7 @@ import { ConfigNotFoundError } from "@pandacss/error";
762
762
  import { logger as logger4 } from "@pandacss/logger";
763
763
  import { existsSync as existsSync2 } from "fs";
764
764
  import { statSync } from "fs-extra";
765
- import { dirname as dirname2, resolve as resolve2 } from "path";
765
+ import { resolve as resolve2 } from "path";
766
766
 
767
767
  // src/config.ts
768
768
  init_esm_shims();
@@ -2447,7 +2447,10 @@ var Builder = class {
2447
2447
  const newModified = /* @__PURE__ */ new Map();
2448
2448
  const prevModified = configCache.get(configPath)?.depsModifiedMap;
2449
2449
  for (const file of deps) {
2450
- const time = statSync(file).mtimeMs;
2450
+ const stats = statSync(file, { throwIfNoEntry: false });
2451
+ if (!stats)
2452
+ continue;
2453
+ const time = stats.mtimeMs;
2451
2454
  newModified.set(file, time);
2452
2455
  if (!prevModified || !prevModified.has(file) || time > prevModified.get(file)) {
2453
2456
  modified = true;
@@ -2477,7 +2480,7 @@ var Builder = class {
2477
2480
  const tsOptions = this.context?.tsOptions ?? { baseUrl: void 0, pathMappings: [] };
2478
2481
  const compilerOptions = this.context?.tsconfig?.compilerOptions ?? {};
2479
2482
  const { deps: foundDeps } = getConfigDependencies(configPath, tsOptions, compilerOptions);
2480
- const cwd = this.context?.config.cwd ?? dirname2(configPath);
2483
+ const cwd = options?.cwd ?? this.context?.config.cwd ?? process.cwd();
2481
2484
  const configDeps = /* @__PURE__ */ new Set([...foundDeps, ...(this.context?.dependencies ?? []).map((file) => resolve2(cwd, file))]);
2482
2485
  this.configDependencies = configDeps;
2483
2486
  const deps = this.checkConfigDeps(configPath, configDeps);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,17 +34,17 @@
34
34
  "ts-morph": "19.0.0",
35
35
  "ts-pattern": "5.0.4",
36
36
  "tsconfck": "^2.1.1",
37
- "@pandacss/config": "0.8.0",
38
- "@pandacss/core": "0.8.0",
39
- "@pandacss/error": "0.8.0",
40
- "@pandacss/extractor": "0.8.0",
41
- "@pandacss/generator": "0.8.0",
42
- "@pandacss/is-valid-prop": "0.8.0",
43
- "@pandacss/logger": "0.8.0",
44
- "@pandacss/parser": "0.8.0",
45
- "@pandacss/shared": "0.8.0",
46
- "@pandacss/token-dictionary": "0.8.0",
47
- "@pandacss/types": "0.8.0"
37
+ "@pandacss/config": "0.9.0",
38
+ "@pandacss/core": "0.9.0",
39
+ "@pandacss/error": "0.9.0",
40
+ "@pandacss/extractor": "0.9.0",
41
+ "@pandacss/generator": "0.9.0",
42
+ "@pandacss/is-valid-prop": "0.9.0",
43
+ "@pandacss/logger": "0.9.0",
44
+ "@pandacss/parser": "0.9.0",
45
+ "@pandacss/shared": "0.9.0",
46
+ "@pandacss/token-dictionary": "0.9.0",
47
+ "@pandacss/types": "0.9.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/fs-extra": "11.0.1",
@@ -53,7 +53,7 @@
53
53
  "@types/lodash.merge": "4.6.7",
54
54
  "@types/pluralize": "0.0.30",
55
55
  "boxen": "^7.1.1",
56
- "@pandacss/fixture": "0.8.0"
56
+ "@pandacss/fixture": "0.9.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",