From 461f169a9effef5f682920ff635ac0b528c0abba Mon Sep 17 00:00:00 2001 From: Steve Lacy Date: Thu, 2 Apr 2015 16:58:35 -0700 Subject: [PATCH] Update deps order - core modules first Summary: **packager/packager.js** - Update deps order - node core modules first The core deps do not get installed, and do not need to be after the dep check. Closes https://github.com/facebook/react-native/pull/224 Github Author: Steve Lacy Test Plan: Imported from GitHub, without a `Test Plan:` line. --- packager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packager.js b/packager.js index ad47d1d9..e2a32f2c 100644 --- a/packager.js +++ b/packager.js @@ -10,6 +10,8 @@ var fs = require('fs'); var path = require('path'); +var exec = require('child_process').exec; +var http = require('http'); if (!fs.existsSync(path.resolve(__dirname, '..', 'node_modules'))) { console.log( @@ -21,11 +23,9 @@ if (!fs.existsSync(path.resolve(__dirname, '..', 'node_modules'))) { process.exit(); } -var exec = require('child_process').exec; +var connect = require('connect'); var ReactPackager = require('./react-packager'); var blacklist = require('./blacklist.js'); -var connect = require('connect'); -var http = require('http'); var launchEditor = require('./launchEditor.js'); var parseCommandLine = require('./parseCommandLine.js'); var webSocketProxy = require('./webSocketProxy.js');