diff options
author | isaacs <i@izs.me> | 2010-08-10 11:57:39 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-10 11:57:39 +0400 |
commit | 7c490f2d3a1691cf4fc038be9cdefabcd2003589 (patch) | |
tree | 6b5c64d97dd13ab95266176b2affb9f6fad9be1f /npm.js | |
parent | 3dbc28f321728ab54f0a4cae6a4576874d3d4b76 (diff) |
First pass at a weird broken starter repl. Anyone wanna do the rest of it?
Diffstat (limited to 'npm.js')
-rwxr-xr-x | npm.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -49,6 +49,7 @@ var commandCache = {} , "update" , "update-dependents" , "view" + , "repl" ].forEach(function (c) { Object.defineProperty(npm.commands, c, { get : function () { c = c === "list" ? "ls" @@ -56,7 +57,7 @@ var commandCache = {} : c if (c in commandCache) return commandCache[c] return commandCache[c] = require(__dirname+"/lib/"+c) - }}) + }, enumerable: true}) }) // Local store for package data, so it won't have to be fetched/read more than |