init project

This commit is contained in:
root
2026-07-31 13:12:54 -04:00
parent 0da92d5e02
commit f3863f760c
7215 changed files with 1860260 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
import { config } from '../../config.js';
import { detectProject } from '../../lib/frameworks/detect.js';
import { ReactAdapter } from '../../lib/frameworks/react.js';
export function requireReact() {
const detected = detectProject(config.workspaceRoot);
if (detected.frontend instanceof ReactAdapter) {
return detected.frontend;
}
if (detected.primary instanceof ReactAdapter) {
return detected.primary;
}
throw new Error('No React project detected in WORKSPACE_ROOT. ' +
'Expected a package.json with a react dependency (or react-scripts/vite/next config) at the workspace root.');
}
//# sourceMappingURL=requireReact.js.map