@pandacss/parser 0.0.0-dev-20230203181426 → 0.0.0-dev-20230203182017

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { CompilerOptions, Project, SourceFile } from 'ts-morph';
1
+ import { ProjectOptions, Project, SourceFile } from 'ts-morph';
2
2
 
3
3
  type Result = {
4
4
  name?: string;
@@ -26,7 +26,7 @@ declare class Collector {
26
26
  get isEmpty(): boolean;
27
27
  }
28
28
 
29
- declare function createProject(compilerOptions?: Partial<CompilerOptions>): Project;
29
+ declare function createProject(options?: Partial<ProjectOptions>): Project;
30
30
  type ParserNodeOptions = {
31
31
  name: string;
32
32
  type: 'pattern' | 'recipe';
package/dist/index.js CHANGED
@@ -248,16 +248,17 @@ function visitJsxElement(file, options) {
248
248
  }
249
249
 
250
250
  // src/parser.ts
251
- function createProject(compilerOptions = {}) {
251
+ function createProject(options = {}) {
252
252
  return new import_ts_morph4.Project({
253
253
  skipAddingFilesFromTsConfig: true,
254
254
  skipFileDependencyResolution: true,
255
255
  skipLoadingLibFiles: true,
256
+ ...options,
256
257
  compilerOptions: {
257
258
  allowJs: true,
258
259
  strictNullChecks: false,
259
260
  skipLibCheck: true,
260
- ...compilerOptions
261
+ ...options.compilerOptions
261
262
  }
262
263
  });
263
264
  }
package/dist/index.mjs CHANGED
@@ -223,16 +223,17 @@ function visitJsxElement(file, options) {
223
223
  }
224
224
 
225
225
  // src/parser.ts
226
- function createProject(compilerOptions = {}) {
226
+ function createProject(options = {}) {
227
227
  return new Project({
228
228
  skipAddingFilesFromTsConfig: true,
229
229
  skipFileDependencyResolution: true,
230
230
  skipLoadingLibFiles: true,
231
+ ...options,
231
232
  compilerOptions: {
232
233
  allowJs: true,
233
234
  strictNullChecks: false,
234
235
  skipLibCheck: true,
235
- ...compilerOptions
236
+ ...options.compilerOptions
236
237
  }
237
238
  });
238
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/parser",
3
- "version": "0.0.0-dev-20230203181426",
3
+ "version": "0.0.0-dev-20230203182017",
4
4
  "description": "The static parser for panda css",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13,13 +13,13 @@
13
13
  "dependencies": {
14
14
  "ts-pattern": "4.1.3",
15
15
  "ts-morph": "17.0.1",
16
- "@pandacss/logger": "0.0.0-dev-20230203181426",
17
- "@pandacss/shared": "0.0.0-dev-20230203181426",
18
- "@pandacss/is-valid-prop": "0.0.0-dev-20230203181426",
19
- "@pandacss/types": "0.0.0-dev-20230203181426"
16
+ "@pandacss/logger": "0.0.0-dev-20230203182017",
17
+ "@pandacss/shared": "0.0.0-dev-20230203182017",
18
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230203182017",
19
+ "@pandacss/types": "0.0.0-dev-20230203182017"
20
20
  },
21
21
  "devDependencies": {
22
- "@pandacss/fixture": "0.0.0-dev-20230203181426"
22
+ "@pandacss/fixture": "0.0.0-dev-20230203182017"
23
23
  },
24
24
  "files": [
25
25
  "dist"