@pandacss/node 0.0.0-dev-20230207064855 → 0.0.0-dev-20230207084836

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
@@ -1866,10 +1866,16 @@ function extractFile(ctx, file) {
1866
1866
  { file: path.abs(cwd, file) },
1867
1867
  (0, import_lil_fp2.tap)(() => import_logger2.logger.debug("file:extract", file)),
1868
1868
  import_lil_fp2.Obj.bind("measure", () => import_logger2.logger.time.debug(`Extracted ${file}`)),
1869
- import_lil_fp2.Obj.bind("result", ({ file: file2 }) => ctx.project.parseSourceFile(file2)),
1869
+ import_lil_fp2.Obj.bind(
1870
+ "result",
1871
+ (0, import_lil_fp2.tryCatch)(
1872
+ ({ file: file2 }) => ctx.project.parseSourceFile(file2),
1873
+ (error) => import_logger2.logger.error("file:parse", error)
1874
+ )
1875
+ ),
1870
1876
  import_lil_fp2.Obj.bind("css", ({ result }) => result ? ctx.getParserCss(result) : void 0),
1871
1877
  (0, import_lil_fp2.tap)(({ measure }) => measure()),
1872
- ({ css }) => css
1878
+ import_lil_fp2.Obj.get("css")
1873
1879
  );
1874
1880
  }
1875
1881
  function extractFiles(ctx) {
package/dist/index.mjs CHANGED
@@ -579,7 +579,7 @@ async function loadConfigAndCreateContext(options = {}) {
579
579
  // src/extract.ts
580
580
  init_esm_shims();
581
581
  import { logger as logger2 } from "@pandacss/logger";
582
- import { Obj as Obj2, pipe as pipe2, tap as tap2 } from "lil-fp";
582
+ import { Obj as Obj2, pipe as pipe2, tap as tap2, tryCatch } from "lil-fp";
583
583
 
584
584
  // src/cli-box.ts
585
585
  init_esm_shims();
@@ -1853,10 +1853,16 @@ function extractFile(ctx, file) {
1853
1853
  { file: path.abs(cwd, file) },
1854
1854
  tap2(() => logger2.debug("file:extract", file)),
1855
1855
  Obj2.bind("measure", () => logger2.time.debug(`Extracted ${file}`)),
1856
- Obj2.bind("result", ({ file: file2 }) => ctx.project.parseSourceFile(file2)),
1856
+ Obj2.bind(
1857
+ "result",
1858
+ tryCatch(
1859
+ ({ file: file2 }) => ctx.project.parseSourceFile(file2),
1860
+ (error) => logger2.error("file:parse", error)
1861
+ )
1862
+ ),
1857
1863
  Obj2.bind("css", ({ result }) => result ? ctx.getParserCss(result) : void 0),
1858
1864
  tap2(({ measure }) => measure()),
1859
- ({ css }) => css
1865
+ Obj2.get("css")
1860
1866
  );
1861
1867
  }
1862
1868
  function extractFiles(ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.0.0-dev-20230207064855",
3
+ "version": "0.0.0-dev-20230207084836",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21,7 +21,7 @@
21
21
  "hookable": "5.4.2",
22
22
  "is-glob": "^4.0.3",
23
23
  "javascript-stringify": "2.1.0",
24
- "lil-fp": "1.2.3",
24
+ "lil-fp": "1.2.5",
25
25
  "lodash.merge": "4.6.2",
26
26
  "look-it-up": "2.1.0",
27
27
  "outdent": " ^0.8.0",
@@ -31,16 +31,16 @@
31
31
  "preferred-pm": "^3.0.3",
32
32
  "ts-pattern": "4.1.4",
33
33
  "ts-morph": "17.0.1",
34
- "@pandacss/config": "0.0.0-dev-20230207064855",
35
- "@pandacss/generator": "0.0.0-dev-20230207064855",
36
- "@pandacss/core": "0.0.0-dev-20230207064855",
37
- "@pandacss/error": "0.0.0-dev-20230207064855",
38
- "@pandacss/is-valid-prop": "0.0.0-dev-20230207064855",
39
- "@pandacss/logger": "0.0.0-dev-20230207064855",
40
- "@pandacss/parser": "0.0.0-dev-20230207064855",
41
- "@pandacss/shared": "0.0.0-dev-20230207064855",
42
- "@pandacss/token-dictionary": "0.0.0-dev-20230207064855",
43
- "@pandacss/types": "0.0.0-dev-20230207064855"
34
+ "@pandacss/config": "0.0.0-dev-20230207084836",
35
+ "@pandacss/generator": "0.0.0-dev-20230207084836",
36
+ "@pandacss/core": "0.0.0-dev-20230207084836",
37
+ "@pandacss/error": "0.0.0-dev-20230207084836",
38
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230207084836",
39
+ "@pandacss/logger": "0.0.0-dev-20230207084836",
40
+ "@pandacss/parser": "0.0.0-dev-20230207084836",
41
+ "@pandacss/shared": "0.0.0-dev-20230207084836",
42
+ "@pandacss/token-dictionary": "0.0.0-dev-20230207084836",
43
+ "@pandacss/types": "0.0.0-dev-20230207084836"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/fs-extra": "11.0.1",
@@ -49,7 +49,7 @@
49
49
  "@types/lodash.merge": "4.6.7",
50
50
  "@types/pluralize": "0.0.29",
51
51
  "boxen": "^7.0.1",
52
- "@pandacss/fixture": "0.0.0-dev-20230207064855"
52
+ "@pandacss/fixture": "0.0.0-dev-20230207084836"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",