Merge pull request #41 from vgcman16/codex/check-for-bugs-and-errors

Fix dynamic import for system info
This commit is contained in:
vgcman16 2025-06-05 22:04:32 -05:00 committed by GitHub
commit da810228a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -8,8 +8,8 @@ try {
// Check if we're in a Node.js environment
if (typeof process !== 'undefined' && process.platform) {
// Using dynamic import to avoid require()
const childProcess = { execSync: null };
execSync = childProcess.execSync;
const { execSync: importedExecSync } = await import('child_process');
execSync = importedExecSync;
}
} catch {
// In Cloudflare environment, this will fail, which is expected

View File

@ -8,8 +8,8 @@ try {
// Check if we're in a Node.js environment
if (typeof process !== 'undefined' && process.platform) {
// Using dynamic import to avoid require()
const childProcess = { execSync: null };
execSync = childProcess.execSync;
const { execSync: importedExecSync } = await import('child_process');
execSync = importedExecSync;
}
} catch {
// In Cloudflare environment, this will fail, which is expected

View File

@ -8,8 +8,8 @@ try {
// Check if we're in a Node.js environment
if (typeof process !== 'undefined' && process.platform) {
// Using dynamic import to avoid require()
const childProcess = { execSync: null };
execSync = childProcess.execSync;
const { execSync: importedExecSync } = await import('child_process');
execSync = importedExecSync;
}
} catch {
// In Cloudflare environment, this will fail, which is expected