diff options
author | Evan Meagher <evan.meagher@gmail.com> | 2010-12-09 02:08:58 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-12-16 23:39:29 +0300 |
commit | 98119c13964003acc15e643d6026c8c245a9ea8d (patch) | |
tree | 0663184abc1fb530223ec196348cd91c6bb0f082 /lib/init.js | |
parent | 4e9e32a82337e7a5a1a63ba4dd4f306f6e738bb6 (diff) |
Don't double-parenthesize "none" in `npm init` output.
Diffstat (limited to 'lib/init.js')
-rw-r--r-- | lib/init.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/init.js b/lib/init.js index ba5f5ae7d..e9d8874f6 100644 --- a/lib/init.js +++ b/lib/init.js @@ -60,9 +60,9 @@ function init_ (data, folder, cb) { }) }, []) ( prompt - , ["Project homepage: ", data.homepage || data.url || "(none)"] + , ["Project homepage: ", data.homepage || data.url || "none"] , function (u) { - if (u === "(none)") return + if (u === "none") return data.homepage = u delete data.url } @@ -87,23 +87,23 @@ function init_ (data, folder, cb) { } ) ( prompt - , ["Author email: ", data.author && data.author.email || "(none)"] + , ["Author email: ", data.author && data.author.email || "none"] , function (n) { - if (n === "(none)") return + if (n === "none") return (data.author = data.author || {}).email = n } ) ( prompt - , ["Author url: ", data.author && data.author.url || "(none)"] + , ["Author url: ", data.author && data.author.url || "none"] , function (n) { - if (n === "(none)") return + if (n === "none") return (data.author = data.author || {}).url = n } ) ( prompt - , ["Main module/entry point: ", data.main || "(none)"] + , ["Main module/entry point: ", data.main || "none"] , function (m) { - if (m === "(none)") { + if (m === "none") { delete data.main return } @@ -116,7 +116,7 @@ function init_ (data, folder, cb) { } , [] , function (l) { - if (l === "(none)") { + if (l === "none") { if (data.directories && data.directories.lib) { delete data.directories.lib } @@ -126,9 +126,9 @@ function init_ (data, folder, cb) { } ) ( prompt - , ["Test command: ", data.scripts && data.scripts.test || "(none)"] + , ["Test command: ", data.scripts && data.scripts.test || "none"] , function (t) { - if (t === "(none)") return + if (t === "none") return (data.scripts = data.scripts || {}).test = t } ) |