Skip to content

Commit ec78e77

Browse files
Merge pull request #2769 from micalevisk/feat-issue-2765
feat!: drop uncommon variants of nest cli config file name
2 parents 57fb5e0 + 1e34706 commit ec78e77

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/configuration/nest-configuration.loader.ts

-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ export class NestConfigurationLoader implements ConfigurationLoader {
2727
? this.reader.read(name)
2828
: this.reader.readAnyOf([
2929
'nest-cli.json',
30-
'.nestcli.json',
3130
'.nest-cli.json',
32-
'nest.json',
3331
]);
3432

3533
if (contentOrError) {

test/lib/configuration/nest-configuration.loader.spec.ts

-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ describe('Nest Configuration Loader', () => {
3030
const configuration: Configuration = await loader.load();
3131
expect(reader.readAnyOf).toHaveBeenCalledWith([
3232
'nest-cli.json',
33-
'.nestcli.json',
3433
'.nest-cli.json',
35-
'nest.json',
3634
]);
3735
expect(configuration).toEqual({
3836
language: 'ts',

0 commit comments

Comments
 (0)