Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 9b328b3

Browse files
committed
inline require is a bad idea
1 parent 157e5f5 commit 9b328b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* jshint node: true */
22
'use strict';
33
var BasePlugin = require('ember-cli-deploy-plugin');
4+
var fbTools = require('firebase-tools');
45

56
module.exports = {
67
name: 'ember-cli-deploy-firebase',
@@ -16,7 +17,7 @@ module.exports = {
1617
public: context.config.build.outputPath,
1718
message: (context.revisionData || {}).revisionKey
1819
};
19-
return require('firebase-tools').deploy.hosting(options).then(function() {
20+
return fbTools.deploy.hosting(options).then(function() {
2021
// outer.log('it worked yay');
2122
}).catch(function(err) {
2223
// handle error

0 commit comments

Comments
 (0)