bertui 1.1.3 → 1.1.5
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 +214 -432
- package/package.json +1 -1
- package/src/build/generators/html-generator.js +58 -30
- package/src/client/compiler.js +8 -8
- package/src/server/dev-server.js +204 -505
- package/src/utils/env.js +4 -5
package/src/utils/env.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// bertui/src/utils/env.js - FIXED
|
|
1
|
+
// bertui/src/utils/env.js - COMPLETE FIXED VERSION
|
|
2
2
|
import { join } from 'path';
|
|
3
|
-
import { existsSync } from 'fs';
|
|
3
|
+
import { existsSync, readFileSync } from 'fs';
|
|
4
4
|
import logger from '../logger/logger.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -14,9 +14,8 @@ export function loadEnvVariables(root) {
|
|
|
14
14
|
|
|
15
15
|
if (existsSync(envPath)) {
|
|
16
16
|
try {
|
|
17
|
-
// ✅ FIXED: Use
|
|
18
|
-
const
|
|
19
|
-
const envContent = file.text();
|
|
17
|
+
// ✅ FIXED: Use Node.js readFileSync instead of Bun.file().text()
|
|
18
|
+
const envContent = readFileSync(envPath, 'utf-8');
|
|
20
19
|
const lines = envContent.split('\n');
|
|
21
20
|
|
|
22
21
|
for (const line of lines) {
|