Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

install: do not create component.json if it doesn't exist #283

Merged
merged 1 commit into from

2 participants

@eldargab

Annoys when you install to a not boot component dir.

@tj tj merged commit 34248e3 into from
@eldargab eldargab deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/component-install
View
4 bin/component-install
@@ -102,7 +102,9 @@ if (!local) {
pkg = parsePackage(pkg);
conf.dependencies[pkg.name] = pkg.version || '*';
});
- saveConfig();
+ if (exists('component.json')) {
+ saveConfig();
+ }
}
// implicit remotes
Something went wrong with that request. Please try again.