firebase-os 1.0.0 → 1.1.0
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/package.json +1 -1
- package/scripts/postinstall.js +7 -2
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -41,10 +41,15 @@ if (pkgJson.name === 'firebase-os') {
|
|
|
41
41
|
process.exit(0);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
console.log('\n[firebase-os] Setting up project for zero-config usage...\n');
|
|
45
|
-
|
|
46
44
|
const srcDir = path.join(consumerRoot, 'src');
|
|
47
45
|
|
|
46
|
+
// No src/ directory means this isn't a Vite/React project — skip silently
|
|
47
|
+
if (!fs.existsSync(srcDir)) {
|
|
48
|
+
process.exit(0);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
console.log('\n[firebase-os] Setting up project for zero-config usage...\n');
|
|
52
|
+
|
|
48
53
|
// ── 1. Clear Vite's default conflicting CSS files ───────────────────────────
|
|
49
54
|
const cssFiles = ['index.css', 'App.css'];
|
|
50
55
|
for (const file of cssFiles) {
|