Skip to content

Commit

Permalink
RENAME loadNxEnv to disableNxEnvFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
pziemkowski committed Feb 14, 2024
1 parent 06ba48f commit 409e116
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/internal/cli/src/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function loadVersionEnv() {
return version;
}

export const loadNxEnv = () => {
export const disableNxEnvFiles = () => {
process.env.NX_LOAD_DOT_ENV_FILES = 'false';
};

Expand Down
4 changes: 2 additions & 2 deletions packages/internal/cli/src/config/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Command } from '@oclif/core';
import { color } from '@oclif/color';
import { trace } from '@opentelemetry/api';

import { ENV_STAGE_LOCAL, getRootPath, loadVersionEnv, loadNxEnv } from './env';
import { ENV_STAGE_LOCAL, getRootPath, loadVersionEnv, disableNxEnvFiles } from './env';
import { initAWS } from './aws';
import { loadEnvStage } from './storage';

Expand All @@ -26,7 +26,7 @@ export const initConfig = async (
const rootPath = await getRootPath();
const version = await loadVersionEnv();
const envStage = await loadEnvStage();
loadNxEnv();
disableNxEnvFiles();
const projectName = process.env.PROJECT_NAME;

if (!projectName) {
Expand Down

0 comments on commit 409e116

Please sign in to comment.