File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import fs from 'fs';
33import path from 'path' ;
44import { normalizeOptions } from '../config/options.js' ;
55import { discoverEnvFiles } from '../services/envDiscovery.js' ;
6- import { pairWithExample } from '../services /envPairing.js' ;
6+ import { pairWithExample } from '../core /envPairing.js' ;
77import { ensureFilesOrPrompt } from '../services/ensureFilesOrPrompt.js' ;
88import { compareMany } from '../commands/compare.js' ;
99import {
Original file line number Diff line number Diff line change 11import fs from 'fs' ;
22import path from 'path' ;
3- import type { Discovery } from './envDiscovery.js' ;
3+ import type { Discovery } from '../services/envDiscovery.js' ;
4+ import type { FilePair } from '../config/types.js' ;
45
56/**
67 * Pairs each environment file with its corresponding example file.
78 * @param d - The discovery object containing environment and example file information.
89 * @returns An array of objects containing the environment name, path, and example path.
910 */
10- export function pairWithExample (
11- d : Discovery ,
12- ) : Array < { envName : string ; envPath : string ; examplePath : string } > {
13- const pairs : Array < {
14- envName : string ;
15- envPath : string ;
16- examplePath : string ;
17- } > = [ ] ;
11+ export function pairWithExample ( d : Discovery ) : Array < FilePair > {
12+ const pairs : Array < FilePair > = [ ] ;
1813 const list = d . envFiles . length > 0 ? d . envFiles : [ d . primaryEnv ] ;
1914
2015 for ( const envName of list ) {
You can’t perform that action at this time.
0 commit comments