react-doctor 0.2.14-dev.daef23c → 0.2.14-dev.f1913f2
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/README.md +8 -0
- package/dist/cli.js +539 -38
- package/dist/index.d.ts +16 -0
- package/dist/index.js +500 -31
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -369,6 +369,22 @@ interface ProjectInfo {
|
|
|
369
369
|
* — no `rn-*` rules load for the project at all.
|
|
370
370
|
*/
|
|
371
371
|
hasReactNativeWorkspace: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* The declared `expo` package version spec (e.g. `"~51.0.0"`), looked up
|
|
374
|
+
* in the project or any of its workspace packages, or `null` when `expo`
|
|
375
|
+
* isn't a dependency. Doubles as react-doctor's "is this an Expo project?"
|
|
376
|
+
* signal (`expoVersion !== null`) and its SDK-version source — the `expo`
|
|
377
|
+
* major tracks the Expo SDK release one-to-one — paralleling how
|
|
378
|
+
* `reactVersion` models the React runtime.
|
|
379
|
+
*
|
|
380
|
+
* Keyed off the dependency rather than `framework === "expo"` because
|
|
381
|
+
* `detectFramework` returns the first matching package, so a project
|
|
382
|
+
* declaring both `expo` and a web bundler (`vite` / `next`) classifies as
|
|
383
|
+
* the web framework yet is still an Expo project. Drives the `expo`
|
|
384
|
+
* capability in `buildCapabilities` (which gates every Expo-specific
|
|
385
|
+
* rule) and the ported expo-doctor checks.
|
|
386
|
+
*/
|
|
387
|
+
expoVersion: string | null;
|
|
372
388
|
/**
|
|
373
389
|
* `true` when the project (or any of its workspace packages) declares
|
|
374
390
|
* `react-native-reanimated`. Lets diagnostics surface reanimated's
|