Skip to content

Commit c329357

Browse files
committed
Check for presence of config before starting migration. Fixes #139 (#147)
1 parent 4009d14 commit c329357

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

commands/tools-migrate.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ module.exports = new Command('tools:migrate')
2121
.description('ensure your firebase.json format is up to date')
2222
.option('-y, --confirm', 'pass this option to bypass confirmation prompt')
2323
.action(function(options) {
24+
if (!options.config) {
25+
return utils.reject('Must run ' + chalk.bold('tools:migrate') + ' from a directory with a firebase.json');
26+
}
27+
2428
utils.logBullet('Checking feature configuration...');
2529
var out = _.cloneDeep(options.config._src);
2630
var changed = false;

0 commit comments

Comments
 (0)