Add missing `assetRegistryPath` to dependencies command

Reviewed By: BYK

Differential Revision: D5507660

fbshipit-source-id: 6c3070eeb417cf2c2c88767b68dbea7381ab8687
This commit is contained in:
David Aurelio 2017-07-27 17:58:57 -07:00 committed by Facebook Github Bot
parent c03ce7fdf3
commit 6a4fb5edf2
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,8 @@ const denodeify = require('denodeify');
const fs = require('fs');
const path = require('path');
const {ASSET_REGISTRY_PATH} = require('../core/Constants');
function dependencies(argv, config, args, packagerInstance) {
const rootModuleAbsolutePath = args.entryFile;
if (!fs.existsSync(rootModuleAbsolutePath)) {
@ -26,6 +28,7 @@ function dependencies(argv, config, args, packagerInstance) {
undefined;
const packageOpts = {
assetRegistryPath: ASSET_REGISTRY_PATH,
projectRoots: config.getProjectRoots(),
blacklistRE: config.getBlacklistRE(),
getPolyfills: config.getPolyfills,