@pandacss/node 0.0.0-dev-20230702075205 → 0.0.0-dev-20230702194035

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
@@ -2467,7 +2467,18 @@ var Builder = class {
2467
2467
  async setup(options = {}) {
2468
2468
  import_logger4.logger.debug("builder", "\u{1F6A7} Setup");
2469
2469
  const configPath = options.configPath ?? this.getConfigPath();
2470
- const { deps: configDeps } = (0, import_config2.getConfigDependencies)(configPath);
2470
+ let tsOptions = { baseUrl: void 0, pathMappings: [] };
2471
+ if (this.context?.tsconfig) {
2472
+ const options2 = this.context.tsconfig.compilerOptions;
2473
+ if (options2?.paths) {
2474
+ const baseUrl = options2.baseUrl;
2475
+ tsOptions = {
2476
+ baseUrl,
2477
+ pathMappings: (0, import_config2.convertTsPathsToRegexes)(options2?.paths, baseUrl ?? this.context.config.cwd)
2478
+ };
2479
+ }
2480
+ }
2481
+ const { deps: configDeps } = (0, import_config2.getConfigDependencies)(configPath, tsOptions);
2471
2482
  const deps = this.checkConfigDeps(configPath, configDeps);
2472
2483
  if (deps.isModified) {
2473
2484
  await this.setupContext({
package/dist/index.mjs CHANGED
@@ -756,7 +756,7 @@ var writeAnalyzeJSON = (fileName, result, ctx) => {
756
756
 
757
757
  // src/builder.ts
758
758
  init_esm_shims();
759
- import { getConfigDependencies } from "@pandacss/config";
759
+ import { getConfigDependencies, convertTsPathsToRegexes } from "@pandacss/config";
760
760
  import { discardDuplicate, mergeCss as mergeCss2 } from "@pandacss/core";
761
761
  import { ConfigNotFoundError } from "@pandacss/error";
762
762
  import { logger as logger4 } from "@pandacss/logger";
@@ -2453,7 +2453,18 @@ var Builder = class {
2453
2453
  async setup(options = {}) {
2454
2454
  logger4.debug("builder", "\u{1F6A7} Setup");
2455
2455
  const configPath = options.configPath ?? this.getConfigPath();
2456
- const { deps: configDeps } = getConfigDependencies(configPath);
2456
+ let tsOptions = { baseUrl: void 0, pathMappings: [] };
2457
+ if (this.context?.tsconfig) {
2458
+ const options2 = this.context.tsconfig.compilerOptions;
2459
+ if (options2?.paths) {
2460
+ const baseUrl = options2.baseUrl;
2461
+ tsOptions = {
2462
+ baseUrl,
2463
+ pathMappings: convertTsPathsToRegexes(options2?.paths, baseUrl ?? this.context.config.cwd)
2464
+ };
2465
+ }
2466
+ }
2467
+ const { deps: configDeps } = getConfigDependencies(configPath, tsOptions);
2457
2468
  const deps = this.checkConfigDeps(configPath, configDeps);
2458
2469
  if (deps.isModified) {
2459
2470
  await this.setupContext({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.0.0-dev-20230702075205",
3
+ "version": "0.0.0-dev-20230702194035",
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": "18.0.0",
35
35
  "ts-pattern": "4.3.0",
36
36
  "tsconfck": "^2.1.1",
37
- "@pandacss/config": "0.0.0-dev-20230702075205",
38
- "@pandacss/core": "0.0.0-dev-20230702075205",
39
- "@pandacss/error": "0.0.0-dev-20230702075205",
40
- "@pandacss/extractor": "0.0.0-dev-20230702075205",
41
- "@pandacss/generator": "0.0.0-dev-20230702075205",
42
- "@pandacss/is-valid-prop": "0.0.0-dev-20230702075205",
43
- "@pandacss/logger": "0.0.0-dev-20230702075205",
44
- "@pandacss/parser": "0.0.0-dev-20230702075205",
45
- "@pandacss/shared": "0.0.0-dev-20230702075205",
46
- "@pandacss/token-dictionary": "0.0.0-dev-20230702075205",
47
- "@pandacss/types": "0.0.0-dev-20230702075205"
37
+ "@pandacss/config": "0.0.0-dev-20230702194035",
38
+ "@pandacss/core": "0.0.0-dev-20230702194035",
39
+ "@pandacss/error": "0.0.0-dev-20230702194035",
40
+ "@pandacss/extractor": "0.0.0-dev-20230702194035",
41
+ "@pandacss/generator": "0.0.0-dev-20230702194035",
42
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230702194035",
43
+ "@pandacss/logger": "0.0.0-dev-20230702194035",
44
+ "@pandacss/parser": "0.0.0-dev-20230702194035",
45
+ "@pandacss/shared": "0.0.0-dev-20230702194035",
46
+ "@pandacss/token-dictionary": "0.0.0-dev-20230702194035",
47
+ "@pandacss/types": "0.0.0-dev-20230702194035"
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.29",
55
55
  "boxen": "^7.1.0",
56
- "@pandacss/fixture": "0.0.0-dev-20230702075205"
56
+ "@pandacss/fixture": "0.0.0-dev-20230702194035"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",