Skip to content

Commit

Permalink
fix: --client override --prodcution (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse committed Jan 25, 2019
1 parent c64f3cc commit 8dc3842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/local_install.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ function* _install(options) {
options.rootPkgDependencies = rootPkgDependencies;
options.resolution = createResolution(rootPkg, options);
if (pkgs.length === 0) {
if (options.production) {
pkgs = rootPkgDependencies.prod;
} else if (options.client) {
if (options.client) {
pkgs = rootPkgDependencies.client;
} else if (options.production) {
pkgs = rootPkgDependencies.prod;
} else {
pkgs = rootPkgDependencies.all;
}
Expand Down
2 changes: 1 addition & 1 deletion test/seperate-dependencies.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('test/seperate-dependencies.test.js', () => {
});

it('should install client', function* () {
yield coffee.fork(bin, [ '--client' ], {
yield coffee.fork(bin, [ '--client', '--prodcution' ], {
cwd: root,
}).end();
yield checkPkg('koa', undefined);
Expand Down

0 comments on commit 8dc3842

Please sign in to comment.