mirror of
https://github.com/zhigang1992/firebase-tools.git
synced 2026-01-12 22:47:24 +08:00
15 lines
338 B
JavaScript
15 lines
338 B
JavaScript
'use strict';
|
|
|
|
var RSVP = require('rsvp');
|
|
var FirebaseError = require('./error');
|
|
|
|
module.exports = function(options) {
|
|
if (options.config) {
|
|
return RSVP.resolve();
|
|
}
|
|
return RSVP.reject(
|
|
options.configError ||
|
|
new FirebaseError('Not in a Firebase project directory (could not locate firebase.json)', {exit: 1})
|
|
);
|
|
};
|