@pandacss/parser 1.10.0 → 1.11.0
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 +6 -1
- package/dist/index.mjs +8 -2
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -857,6 +857,11 @@ function createParser(context) {
|
|
|
857
857
|
}
|
|
858
858
|
|
|
859
859
|
// src/project.ts
|
|
860
|
+
var normalizeCompilerOptions = (raw) => {
|
|
861
|
+
if (!raw) return {};
|
|
862
|
+
const { options } = import_ts_morph2.ts.convertCompilerOptionsFromJson(raw, process.cwd());
|
|
863
|
+
return options;
|
|
864
|
+
};
|
|
860
865
|
var createTsProject = (options) => new import_ts_morph2.Project({
|
|
861
866
|
skipAddingFilesFromTsConfig: true,
|
|
862
867
|
skipFileDependencyResolution: true,
|
|
@@ -866,7 +871,7 @@ var createTsProject = (options) => new import_ts_morph2.Project({
|
|
|
866
871
|
allowJs: true,
|
|
867
872
|
strictNullChecks: false,
|
|
868
873
|
skipLibCheck: true,
|
|
869
|
-
...options.compilerOptions
|
|
874
|
+
...normalizeCompilerOptions(options.compilerOptions)
|
|
870
875
|
}
|
|
871
876
|
});
|
|
872
877
|
var Project = class {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// src/project.ts
|
|
2
2
|
import {
|
|
3
3
|
ScriptKind,
|
|
4
|
-
Project as TsProject
|
|
4
|
+
Project as TsProject,
|
|
5
|
+
ts
|
|
5
6
|
} from "ts-morph";
|
|
6
7
|
|
|
7
8
|
// src/classify.ts
|
|
@@ -833,6 +834,11 @@ function createParser(context) {
|
|
|
833
834
|
}
|
|
834
835
|
|
|
835
836
|
// src/project.ts
|
|
837
|
+
var normalizeCompilerOptions = (raw) => {
|
|
838
|
+
if (!raw) return {};
|
|
839
|
+
const { options } = ts.convertCompilerOptionsFromJson(raw, process.cwd());
|
|
840
|
+
return options;
|
|
841
|
+
};
|
|
836
842
|
var createTsProject = (options) => new TsProject({
|
|
837
843
|
skipAddingFilesFromTsConfig: true,
|
|
838
844
|
skipFileDependencyResolution: true,
|
|
@@ -842,7 +848,7 @@ var createTsProject = (options) => new TsProject({
|
|
|
842
848
|
allowJs: true,
|
|
843
849
|
strictNullChecks: false,
|
|
844
850
|
skipLibCheck: true,
|
|
845
|
-
...options.compilerOptions
|
|
851
|
+
...normalizeCompilerOptions(options.compilerOptions)
|
|
846
852
|
}
|
|
847
853
|
});
|
|
848
854
|
var Project = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/parser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "The static parser for panda css",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"ts-morph": "28.0.0",
|
|
33
33
|
"ts-pattern": "5.9.0",
|
|
34
|
-
"@pandacss/
|
|
35
|
-
"@pandacss/
|
|
36
|
-
"@pandacss/
|
|
37
|
-
"@pandacss/logger": "1.
|
|
38
|
-
"@pandacss/shared": "1.
|
|
39
|
-
"@pandacss/types": "1.
|
|
34
|
+
"@pandacss/config": "^1.11.0",
|
|
35
|
+
"@pandacss/core": "^1.11.0",
|
|
36
|
+
"@pandacss/extractor": "1.11.0",
|
|
37
|
+
"@pandacss/logger": "1.11.0",
|
|
38
|
+
"@pandacss/shared": "1.11.0",
|
|
39
|
+
"@pandacss/types": "1.11.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@pandacss/generator": "1.
|
|
43
|
-
"@pandacss/plugin-svelte": "1.
|
|
44
|
-
"@pandacss/plugin-vue": "1.
|
|
42
|
+
"@pandacss/generator": "1.11.0",
|
|
43
|
+
"@pandacss/plugin-svelte": "1.11.0",
|
|
44
|
+
"@pandacss/plugin-vue": "1.11.0"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"dist"
|