- Added new CLI options for diff scanning and project selection.
- Improved README with detailed configuration examples for `react-doctor.config.json` and `package.json`.
- Enhanced type definitions for scan options and diff information.
- Updated error handling in the CLI to improve user experience during scans.
knip requires typescript >=5.0.4 as a peer dependency for its Astro
plugin. When react-doctor is executed via npx or pnpm dlx, the isolated
environment does not have access to the host project's node_modules,
causing ERR_MODULE_NOT_FOUND for typescript.
Adding typescript explicitly as a dependency ensures it is always
available when react-doctor is installed.
Fixes: ERR_MODULE_NOT_FOUND: Cannot find package 'typescript' imported
from knip/dist/plugins/astro/resolveFromAST.js
- Improved error logging for dead code analysis failures, ensuring better visibility into issues.
- Maintained consistent return types for diagnostics in case of errors.
- Added type definitions and default entry points for the react-doctor-plugin in package.json.
- Enhanced README with programmatic usage examples for the diagnose function and detailed diagnostic interface.
- Updated tsdown configuration to include the react-doctor-plugin entry point.
- Added homepage and bugs fields to package.json for better project visibility.
- Introduced new constants for React Native deprecated modules and legacy Expo package replacements in constants.ts.
- Updated index.ts to include new rules for React Native diagnostics.