Skip to content

Commit 2901024

Browse files
committed
Add support for cjs config files
closes intercom#116
1 parent ee3f7d2 commit 2901024

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/loadEnvironment.ts

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ function determineEnvironmentPath() {
6060

6161
if (fs.existsSync(`${pathWithoutExtension}.ts`)) {
6262
return `${pathWithoutExtension}.ts`
63+
} else if (fs.existsSync(`${pathWithoutExtension}.cjs`)) {
64+
return `${pathWithoutExtension}.cjs`
6365
}
6466

6567
return `${pathWithoutExtension}.js`

0 commit comments

Comments
 (0)