Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/curvy-pandas-stop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@bigcommerce/catalyst": patch
---

Remove the reading of default environment variable files.

## Migration

Ensure that environment variables are passed explicitly using flags if they are not already included in the `project.json` config file.
12 changes: 0 additions & 12 deletions packages/catalyst/src/cli/program.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Command } from 'commander';
import { colorize } from 'consola/utils';
import { config } from 'dotenv';
Comment thread
jamesqquick marked this conversation as resolved.
import { resolve } from 'node:path';

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

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

export const program = new Command();

config({
path: [
resolve(process.cwd(), '.env'),
resolve(process.cwd(), '.env.local'),
// Assumes the parent directory is the monorepo root:
resolve(process.cwd(), '..', '.env'),
resolve(process.cwd(), '..', '.env.local'),
],
});

consola.log(colorize('cyanBright', `◢ ${PACKAGE_INFO.name} v${PACKAGE_INFO.version}\n`));

program
Expand Down