Skip to content

Commit

Permalink
Renames config file
Browse files Browse the repository at this point in the history
- Renames `bubblewrap-config.json` to `config.json`, as the config
  already sits in the `~/.bubblewrap` directory.
  • Loading branch information
andreban committed Jul 1, 2020
1 parent 3c2b4b0 commit e38ea22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {existsSync} from 'fs';
import {promises as fsPromises} from 'fs';

const DEFAULT_CONFIG_FOLDER = join(homedir(), '.bubblewrap');
const DEFAULT_CONFIG_NAME = 'bubblewrap-config.json';
const DEFAULT_CONFIG_NAME = 'config.json';
const DEFAULT_CONFIG_FILE_PATH = join(DEFAULT_CONFIG_FOLDER, DEFAULT_CONFIG_NAME);
const LEGACY_CONFIG_FOLDER = join(homedir(), '.llama-pack');
const LEGACY_CONFIG_NAME = 'llama-pack-config.json';
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/spec/configSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import * as mock from 'mock-fs';
import * as inquirer from 'inquirer';

const DEFAULT_CONFIG_FOLDER = join(homedir(), '.bubblewrap');
const DEFAULT_CONFIG_NAME = 'bubblewrap-config.json';
const DEFAULT_CONFIG_NAME = 'config.json';
const DEFAULT_CONFIG_FILE_PATH = join(DEFAULT_CONFIG_FOLDER, DEFAULT_CONFIG_NAME);
const LEGACY_CONFIG_FOLDER = join(homedir(), '.llama-pack');
const LEGACY_CONFIG_NAME = 'llama-pack-config.json';
Expand Down Expand Up @@ -91,7 +91,7 @@ describe('config', () => {
'llama-pack-config.json': '{"content":"some old content"}',
},
[DEFAULT_CONFIG_FOLDER]: {
'bubblewrap-config.json': '{"content":"some new content"}',
'config.json': '{"content":"some new content"}',
}});
await loadOrCreateConfig();
// Checks if both of the files exists.
Expand Down

0 comments on commit e38ea22

Please sign in to comment.