Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better TTL; more deps

  • Loading branch information...
commit 840df963343dff5a548a53f37e5b3ebed6506eda 1 parent fefb62a
Christoph Dorn cadorn authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  lib/commands/install.js
  2. +2 −1  package.json
3  lib/commands/install.js
View
@@ -9,6 +9,8 @@ var command = exports["install"] = new ARGS_PARSER();
command.help("Install package/program.");
command.arg(".../[package.json|program.json]").optional();
command.option("--dev").bool().help("Install dev dependencies as well.");
+// NOTE: We don't default to 'now' on install as we want to be able to install 100% from cache in case network is down.
+command.option("-n", "--now").bool().help("Aggressively fetch latest remote info.");
command.option("-N", "--no-native-install").bool().help("Don't call native package installer (if applicable).");
command.option("-c", "--cached").bool().help("Create from cache if exists. i.e. Don't check latest sources. Use `sm update` later.");
command.helpful();
@@ -20,7 +22,6 @@ command.action(function (options) {
return;
}
- options.latest = false;
options.verbose = true;
PM.forProgramPath(basePath).then(function(pm) {
3  package.json
View
@@ -40,7 +40,8 @@
"dependencies": {
"sourcemint-pinf-js": "0.1.x",
"sourcemint-util-js": "0.1.x",
- "sourcemint-pm-sm": "0.1.x"
+ "sourcemint-pm-sm": "0.1.x",
+ "semver": "1.x"
},
"shrinkwrap": true,
"scripts": {
Please sign in to comment.
Something went wrong with that request. Please try again.