diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index d950ff802..0a4d02828 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -9,7 +9,6 @@ 'use strict'; const log = require('../util/log').out('bundle'); -const Promise = require('promise'); const Server = require('../../packager/react-packager/src/Server'); const outputBundle = require('./output/bundle'); diff --git a/local-cli/bundle/output/bundle.js b/local-cli/bundle/output/bundle.js index 9fbf4d892..a54ebe9de 100644 --- a/local-cli/bundle/output/bundle.js +++ b/local-cli/bundle/output/bundle.js @@ -8,8 +8,6 @@ */ 'use strict'; -const Promise = require('promise'); - const meta = require('./meta'); const writeFile = require('./writeFile'); diff --git a/local-cli/bundle/output/unbundle/as-assets.js b/local-cli/bundle/output/unbundle/as-assets.js index 41bd5565d..468dddfa8 100644 --- a/local-cli/bundle/output/unbundle/as-assets.js +++ b/local-cli/bundle/output/unbundle/as-assets.js @@ -9,7 +9,6 @@ 'use strict'; const MAGIC_UNBUNDLE_NUMBER = require('./magic-number'); -const Promise = require('promise'); const buildSourceMapWithMetaData = require('./build-unbundle-sourcemap-with-metadata'); const mkdirp = require('mkdirp'); diff --git a/local-cli/bundle/output/unbundle/as-indexed-file.js b/local-cli/bundle/output/unbundle/as-indexed-file.js index ea9d2e54f..573a0df5a 100644 --- a/local-cli/bundle/output/unbundle/as-indexed-file.js +++ b/local-cli/bundle/output/unbundle/as-indexed-file.js @@ -9,7 +9,6 @@ 'use strict'; const MAGIC_UNBUNDLE_FILE_HEADER = require('./magic-number'); -const Promise = require('promise'); const buildSourceMapWithMetaData = require('./build-unbundle-sourcemap-with-metadata'); const fs = require('fs'); diff --git a/local-cli/bundle/output/unbundle/write-sourcemap.js b/local-cli/bundle/output/unbundle/write-sourcemap.js index f64b1cd2c..f10e8aa2d 100644 --- a/local-cli/bundle/output/unbundle/write-sourcemap.js +++ b/local-cli/bundle/output/unbundle/write-sourcemap.js @@ -8,8 +8,6 @@ */ 'use strict'; -const Promise = require('promise'); - const writeFile = require('../writeFile'); function writeSourcemap(fileName, contents, log) { diff --git a/local-cli/bundle/output/writeFile.js b/local-cli/bundle/output/writeFile.js index 5f7d7db0d..794b39020 100644 --- a/local-cli/bundle/output/writeFile.js +++ b/local-cli/bundle/output/writeFile.js @@ -8,8 +8,6 @@ */ 'use strict'; -const Promise = require('promise'); - const fs = require('fs'); function writeFile(file, data, encoding) { diff --git a/local-cli/cliEntry.js b/local-cli/cliEntry.js index 9ed389d5d..6933741ab 100644 --- a/local-cli/cliEntry.js +++ b/local-cli/cliEntry.js @@ -11,7 +11,6 @@ 'use strict'; const Config = require('./util/Config'); -const Promise = require('promise'); const assertRequiredOptions = require('./util/assertRequiredOptions'); const chalk = require('chalk'); diff --git a/local-cli/library/library.js b/local-cli/library/library.js index 318b56830..7bef11f7d 100644 --- a/local-cli/library/library.js +++ b/local-cli/library/library.js @@ -12,7 +12,6 @@ const copyAndReplace = require('../util/copyAndReplace'); const fs = require('fs'); const isValidPackageName = require('../util/isValidPackageName'); const path = require('path'); -const Promise = require('promise'); const walk = require('../util/walk'); /** diff --git a/local-cli/logAndroid/logAndroid.js b/local-cli/logAndroid/logAndroid.js index 6005d24d9..be3cc12f6 100644 --- a/local-cli/logAndroid/logAndroid.js +++ b/local-cli/logAndroid/logAndroid.js @@ -10,7 +10,6 @@ const chalk = require('chalk'); const child_process = require('child_process'); -const Promise = require('promise'); /** * Starts adb logcat diff --git a/local-cli/logIOS/logIOS.js b/local-cli/logIOS/logIOS.js index 4a898ad5e..0a9fb1461 100644 --- a/local-cli/logIOS/logIOS.js +++ b/local-cli/logIOS/logIOS.js @@ -1,10 +1,17 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ 'use strict'; const chalk = require('chalk'); const child_process = require('child_process'); const os = require('os'); const path = require('path'); -const Promise = require('promise'); /** * Starts iOS device syslog tail diff --git a/local-cli/runAndroid/runAndroid.js b/local-cli/runAndroid/runAndroid.js index d9796a197..c809594b2 100644 --- a/local-cli/runAndroid/runAndroid.js +++ b/local-cli/runAndroid/runAndroid.js @@ -8,8 +8,6 @@ */ 'use strict'; -const Promise = require('promise'); - const adb = require('./adb'); const chalk = require('chalk'); const child_process = require('child_process'); diff --git a/local-cli/upgrade/upgrade.js b/local-cli/upgrade/upgrade.js index 549987405..f07e15138 100644 --- a/local-cli/upgrade/upgrade.js +++ b/local-cli/upgrade/upgrade.js @@ -8,8 +8,6 @@ */ 'use strict'; -const Promise = require('promise'); - const chalk = require('chalk'); const copyProjectTemplateAndReplace = require('../generator/copyProjectTemplateAndReplace'); const fs = require('fs');