@pandacss/node 0.0.0-dev-20221216164037 → 0.0.0-dev-20221217040050

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
@@ -1041,7 +1041,7 @@ function generateRecipes(ctx) {
1041
1041
  }
1042
1042
 
1043
1043
  ${description ? `/** ${description} */` : ""}
1044
- export declare function ${name}(value: ${(0, import_shared9.capitalize)(name)}Variants): string
1044
+ export declare function ${name}(value?: ${(0, import_shared9.capitalize)(name)}Variants): string
1045
1045
  `);
1046
1046
  });
1047
1047
  return {
@@ -1775,6 +1775,8 @@ function createContext(conf, io = fileSystem) {
1775
1775
  return io.read(fileName);
1776
1776
  },
1777
1777
  getFiles() {
1778
+ if (!(0, import_fs_extra2.existsSync)(chunks.dir))
1779
+ return [];
1778
1780
  return (0, import_fs3.readdirSync)(chunks.dir);
1779
1781
  },
1780
1782
  format(file) {
package/dist/index.mjs CHANGED
@@ -995,7 +995,7 @@ function generateRecipes(ctx) {
995
995
  }
996
996
 
997
997
  ${description ? `/** ${description} */` : ""}
998
- export declare function ${name}(value: ${capitalize8(name)}Variants): string
998
+ export declare function ${name}(value?: ${capitalize8(name)}Variants): string
999
999
  `);
1000
1000
  });
1001
1001
  return {
@@ -1735,6 +1735,8 @@ function createContext(conf, io = fileSystem) {
1735
1735
  return io.read(fileName);
1736
1736
  },
1737
1737
  getFiles() {
1738
+ if (!existsSync(chunks.dir))
1739
+ return [];
1738
1740
  return readdirSync(chunks.dir);
1739
1741
  },
1740
1742
  format(file) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.0.0-dev-20221216164037",
3
+ "version": "0.0.0-dev-20221217040050",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -30,15 +30,15 @@
30
30
  "telejson": "7.0.4",
31
31
  "ts-pattern": "4.0.6",
32
32
  "ts-morph": "17.0.1",
33
- "@pandacss/types": "0.0.0-dev-20221216164037",
34
- "@pandacss/is-valid-prop": "0.0.0-dev-20221216164037",
35
- "@pandacss/error": "0.0.0-dev-20221216164037",
36
- "@pandacss/parser": "0.0.0-dev-20221216164037",
37
- "@pandacss/shared": "0.0.0-dev-20221216164037",
38
- "@pandacss/token-dictionary": "0.0.0-dev-20221216164037",
39
- "@pandacss/logger": "0.0.0-dev-20221216164037",
40
- "@pandacss/core": "0.0.0-dev-20221216164037",
41
- "@pandacss/config": "0.0.0-dev-20221216164037"
33
+ "@pandacss/types": "0.0.0-dev-20221217040050",
34
+ "@pandacss/is-valid-prop": "0.0.0-dev-20221217040050",
35
+ "@pandacss/error": "0.0.0-dev-20221217040050",
36
+ "@pandacss/parser": "0.0.0-dev-20221217040050",
37
+ "@pandacss/shared": "0.0.0-dev-20221217040050",
38
+ "@pandacss/token-dictionary": "0.0.0-dev-20221217040050",
39
+ "@pandacss/logger": "0.0.0-dev-20221217040050",
40
+ "@pandacss/core": "0.0.0-dev-20221217040050",
41
+ "@pandacss/config": "0.0.0-dev-20221217040050"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/fs-extra": "9.0.13",
@@ -46,7 +46,7 @@
46
46
  "@types/glob-parent": "^5.1.1",
47
47
  "@types/pluralize": "0.0.29",
48
48
  "@types/lodash.merge": "4.6.7",
49
- "@pandacss/fixture": "0.0.0-dev-20221216164037"
49
+ "@pandacss/fixture": "0.0.0-dev-20221217040050"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",