Skip to content

Commit f3397a9

Browse files
committed
fix(codeql): enforce CommonJS behavior in environment setup
* Updated `getCleanEnvironment()` method to set `NODE_OPTIONS` to `--no-experimental-modules`. * This change prevents ES module conflicts during CodeQL execution, ensuring compatibility with various project configurations.
1 parent 85bdf1a commit f3397a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ES_MODULE_FIX.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ static getCleanEnvironment(): Record<string, string> {
3030
const cleanEnv = Object.fromEntries(
3131
Object.entries(process.env).filter(([, value]) => value !== undefined),
3232
) as Record<string, string>;
33-
33+
3434
// Force CommonJS behavior to prevent ES module conflicts with CodeQL
3535
cleanEnv.NODE_OPTIONS = '--no-experimental-modules';
36-
36+
3737
return cleanEnv;
3838
}
3939
```

0 commit comments

Comments
 (0)