react-doctor 0.0.23 → 0.0.24

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 CHANGED
@@ -62,6 +62,7 @@ Options:
62
62
  -y, --yes skip prompts, scan all workspace projects
63
63
  --project <name> select workspace project (comma-separated for multiple)
64
64
  --diff [base] scan only files changed vs base branch
65
+ --no-ami skip Ami-related prompts
65
66
  --fix open Ami to auto-fix all issues
66
67
  --prompt copy latest scan output to clipboard
67
68
  -h, --help display help for command
package/dist/cli.js CHANGED
@@ -183,6 +183,11 @@ const VITE_CONFIG_FILENAMES = [
183
183
  "vite.config.mjs",
184
184
  "vite.config.cjs"
185
185
  ];
186
+ const EXPO_APP_CONFIG_FILENAMES = [
187
+ "app.json",
188
+ "app.config.js",
189
+ "app.config.ts"
190
+ ];
186
191
  const REACT_COMPILER_CONFIG_PATTERN = /react-compiler|reactCompiler/;
187
192
  const FRAMEWORK_PACKAGES = {
188
193
  next: "nextjs",
@@ -369,6 +374,7 @@ const detectReactCompiler = (directory, packageJson) => {
369
374
  if (hasCompilerInConfigFiles(directory, NEXT_CONFIG_FILENAMES)) return true;
370
375
  if (hasCompilerInConfigFiles(directory, BABEL_CONFIG_FILENAMES)) return true;
371
376
  if (hasCompilerInConfigFiles(directory, VITE_CONFIG_FILENAMES)) return true;
377
+ if (hasCompilerInConfigFiles(directory, EXPO_APP_CONFIG_FILENAMES)) return true;
372
378
  let ancestorDirectory = path.dirname(directory);
373
379
  while (ancestorDirectory !== path.dirname(ancestorDirectory)) {
374
380
  const ancestorPackagePath = path.join(ancestorDirectory, "package.json");
@@ -1759,7 +1765,7 @@ const maybePromptSkillInstall = async (shouldSkipPrompts) => {
1759
1765
 
1760
1766
  //#endregion
1761
1767
  //#region src/cli.ts
1762
- const VERSION = "0.0.23";
1768
+ const VERSION = "0.0.24";
1763
1769
  const exitWithFixHint = () => {
1764
1770
  logger.break();
1765
1771
  logger.log("Cancelled.");