Check if Preact is installed before installing React deps

This commit is contained in:
9Morello
2026-03-26 08:51:52 -03:00
parent f533e6339b
commit 4b36e4af03

View File

@@ -213,7 +213,7 @@ export function checkReactInstalled() {
const appDir = getMeteorAppDir();
// Check if React is a dependency in the project
const isReactInstalled = checkNpmDependencyExists('react', { cwd: appDir });
const isReactInstalled = checkNpmDependencyExists('react', { cwd: appDir }) && !checkNpmDependencyExists('preact', { cwd: appDir });
if (isReactInstalled) {
// Set environment variable to indicate React is enabled