Skip to content

Commit

Permalink
Retain ability to deep import from '@redwoodjs/cli/dist/lib/loadEnvFi…
Browse files Browse the repository at this point in the history
…les'

This commit can be reverted in a followup PR, thus introducing a
breaking change for the next major version.
  • Loading branch information
Philzen committed Jan 7, 2025
1 parent 1a98bbb commit 5686f64
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/cli-helpers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
export * from './lib/index.js'
export * from './lib/colors.js'
export { loadEnvFiles } from './lib/loadEnvFiles.js'
export {
loadDefaultEnvFiles,
loadNodeEnvDerivedEnvFile,
loadUserSpecifiedEnvFiles,
} from './lib/loadEnvFiles.js'
export * from './lib/paths.js'
export * from './lib/project.js'
export * from './lib/version.js'
Expand Down
16 changes: 16 additions & 0 deletions packages/cli/src/lib/loadEnvFiles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// @ts-check

export {
loadEnvFiles,
loadDefaultEnvFiles,
loadNodeEnvDerivedEnvFile,
loadUserSpecifiedEnvFiles,
} from '@redwoodjs/cli-helpers'

/**
* Retaining the file here as per https://github.com/redwoodjs/redwood/pull/11885#issuecomment-2575847407
*
* This ensures there are no breaking changes in case people are deep-importing any of these methods.
*
* This file can finally be removed in the next major version as a documented breaking change.
*/

0 comments on commit 5686f64

Please sign in to comment.