@pandacss/parser 0.0.0-dev-20230602151911 → 0.0.0-dev-20230602153951
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.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -138,7 +138,7 @@ var ParserResult = class {
|
|
|
138
138
|
result.jsx.forEach((item) => this.jsx.add(item));
|
|
139
139
|
return this;
|
|
140
140
|
}
|
|
141
|
-
static
|
|
141
|
+
static fromJSON(json) {
|
|
142
142
|
const data = JSON.parse(json);
|
|
143
143
|
const result = new ParserResult();
|
|
144
144
|
result.css = new Set(data.css);
|
|
@@ -393,7 +393,7 @@ var createProject = ({ getFiles, readFile, parserOptions, ...projectOptions }) =
|
|
|
393
393
|
scriptKind: import_ts_morph2.ScriptKind.TSX
|
|
394
394
|
}),
|
|
395
395
|
parseSourceFile: (filePath) => {
|
|
396
|
-
return filePath.endsWith(".json") ? ParserResult.
|
|
396
|
+
return filePath.endsWith(".json") ? ParserResult.fromJSON(readFile(filePath)) : parser(project.getSourceFile(filePath));
|
|
397
397
|
}
|
|
398
398
|
})),
|
|
399
399
|
(0, import_lil_fp.tap)(({ createSourceFile }) => {
|
package/dist/index.mjs
CHANGED
|
@@ -110,7 +110,7 @@ var ParserResult = class {
|
|
|
110
110
|
result.jsx.forEach((item) => this.jsx.add(item));
|
|
111
111
|
return this;
|
|
112
112
|
}
|
|
113
|
-
static
|
|
113
|
+
static fromJSON(json) {
|
|
114
114
|
const data = JSON.parse(json);
|
|
115
115
|
const result = new ParserResult();
|
|
116
116
|
result.css = new Set(data.css);
|
|
@@ -365,7 +365,7 @@ var createProject = ({ getFiles, readFile, parserOptions, ...projectOptions }) =
|
|
|
365
365
|
scriptKind: ScriptKind.TSX
|
|
366
366
|
}),
|
|
367
367
|
parseSourceFile: (filePath) => {
|
|
368
|
-
return filePath.endsWith(".json") ? ParserResult.
|
|
368
|
+
return filePath.endsWith(".json") ? ParserResult.fromJSON(readFile(filePath)) : parser(project.getSourceFile(filePath));
|
|
369
369
|
}
|
|
370
370
|
})),
|
|
371
371
|
tap(({ createSourceFile }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/parser",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230602153951",
|
|
4
4
|
"description": "The static parser for panda css",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"lil-fp": "1.4.5",
|
|
15
15
|
"ts-morph": "18.0.0",
|
|
16
16
|
"ts-pattern": "4.3.0",
|
|
17
|
-
"@pandacss/extractor": "0.0.0-dev-
|
|
18
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
19
|
-
"@pandacss/
|
|
20
|
-
"@pandacss/
|
|
21
|
-
"@pandacss/types": "0.0.0-dev-
|
|
17
|
+
"@pandacss/extractor": "0.0.0-dev-20230602153951",
|
|
18
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230602153951",
|
|
19
|
+
"@pandacss/logger": "0.0.0-dev-20230602153951",
|
|
20
|
+
"@pandacss/shared": "0.0.0-dev-20230602153951",
|
|
21
|
+
"@pandacss/types": "0.0.0-dev-20230602153951"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@pandacss/
|
|
25
|
-
"@pandacss/
|
|
24
|
+
"@pandacss/fixture": "0.0.0-dev-20230602153951",
|
|
25
|
+
"@pandacss/generator": "0.0.0-dev-20230602153951"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|