Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
Fix package control can't install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Heejin committed Apr 13, 2016
1 parent 79e5bb1 commit 009148e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main-es6/plugins/hain-package-manager/package-control.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const lo_size = require('lodash.size');
const fs = require('fs');
const co = require('co');
const got = require('got');
Expand Down Expand Up @@ -96,7 +97,7 @@ function* installPackage(packageName, versionRange, destDir, tempDir) {
try {
yield* downloadAndExtractPackage(packageName, versionRange, incompleteDir, tempDir);

if (data.dependencies && (data.dependencies.length > 0)) {
if (data.dependencies && (lo_size(data.dependencies) > 0)) {
const modulePath = path.join(incompleteDir, 'node_modules');
yield fileutil.ensureDir(modulePath);

Expand Down

0 comments on commit 009148e

Please sign in to comment.