diff --git a/getFlowTypeCheckMiddleware.js b/getFlowTypeCheckMiddleware.js index 3b659761..4ef2fd0c 100644 --- a/getFlowTypeCheckMiddleware.js +++ b/getFlowTypeCheckMiddleware.js @@ -11,7 +11,7 @@ var chalk = require('chalk'); var exec = require('child_process').exec; var url = require('url'); -var Activity = require('./react-packager/src/Activity'); +var Activity = require('./react-packager').Activity; var hasWarned = {}; diff --git a/react-packager/index.js b/react-packager/index.js index 4d87733f..23a15c09 100644 --- a/react-packager/index.js +++ b/react-packager/index.js @@ -22,7 +22,7 @@ exports.middleware = function(options) { return server.processRequest.bind(server); }; -exports.activityEvents = Activity.eventEmitter; +exports.Activity = Activity; // Renamed "package" to "bundle". But maintain backwards // compat.