@pandacss/parser 0.0.0-dev-20230601202405 → 0.0.0-dev-20230602151911
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResultItem, AnyRecipeConfig } from '@pandacss/types';
|
|
2
1
|
import * as ts_morph from 'ts-morph';
|
|
3
2
|
import { ProjectOptions as ProjectOptions$1 } from 'ts-morph';
|
|
3
|
+
import { ResultItem, AnyRecipeConfig } from '@pandacss/types';
|
|
4
4
|
|
|
5
5
|
declare class ParserResult {
|
|
6
6
|
jsx: Set<ResultItem>;
|
package/dist/index.js
CHANGED
|
@@ -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 parser(project.getSourceFile(filePath));
|
|
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
|
@@ -365,7 +365,7 @@ var createProject = ({ getFiles, readFile, parserOptions, ...projectOptions }) =
|
|
|
365
365
|
scriptKind: ScriptKind.TSX
|
|
366
366
|
}),
|
|
367
367
|
parseSourceFile: (filePath) => {
|
|
368
|
-
return parser(project.getSourceFile(filePath));
|
|
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-20230602151911",
|
|
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-20230602151911",
|
|
18
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230602151911",
|
|
19
|
+
"@pandacss/shared": "0.0.0-dev-20230602151911",
|
|
20
|
+
"@pandacss/logger": "0.0.0-dev-20230602151911",
|
|
21
|
+
"@pandacss/types": "0.0.0-dev-20230602151911"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@pandacss/generator": "0.0.0-dev-
|
|
25
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
24
|
+
"@pandacss/generator": "0.0.0-dev-20230602151911",
|
|
25
|
+
"@pandacss/fixture": "0.0.0-dev-20230602151911"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|