Skip to content

Commit 7b16ea2

Browse files
committed
remove default loading of environment variable files
1 parent 27b856b commit 7b16ea2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/catalyst/src/cli/program.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { Command } from 'commander';
22
import { colorize } from 'consola/utils';
3-
import { config } from 'dotenv';
4-
import { resolve } from 'node:path';
53

64
import PACKAGE_INFO from '../../package.json';
75

@@ -17,16 +15,6 @@ import { consola } from './lib/logger';
1715

1816
export const program = new Command();
1917

20-
config({
21-
path: [
22-
resolve(process.cwd(), '.env'),
23-
resolve(process.cwd(), '.env.local'),
24-
// Assumes the parent directory is the monorepo root:
25-
resolve(process.cwd(), '..', '.env'),
26-
resolve(process.cwd(), '..', '.env.local'),
27-
],
28-
});
29-
3018
consola.log(colorize('cyanBright', `◢ ${PACKAGE_INFO.name} v${PACKAGE_INFO.version}\n`));
3119

3220
program

0 commit comments

Comments
 (0)