Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-07-31 02:42:01 +0400
committerisaacs <i@izs.me>2014-07-31 02:42:01 +0400
commit63fe0eef518df6d21440044b3c3febf89f7302e3 (patch)
tree2502b437049628e90afcaf44e5195516cca7c12c /node_modules/init-package-json
parentf53669562d73d96a116706cba5d6978dce9a6aba (diff)
init-package-json@1.0.0
Defaults package versions in 'npm init' to 1.0.0 instead of 0.0.0
Diffstat (limited to 'node_modules/init-package-json')
-rw-r--r--node_modules/init-package-json/default-input.js2
-rw-r--r--node_modules/init-package-json/node_modules/promzard/package.json3
-rw-r--r--node_modules/init-package-json/package.json31
3 files changed, 26 insertions, 10 deletions
diff --git a/node_modules/init-package-json/default-input.js b/node_modules/init-package-json/default-input.js
index 0cbd85b81..8b335f967 100644
--- a/node_modules/init-package-json/default-input.js
+++ b/node_modules/init-package-json/default-input.js
@@ -40,7 +40,7 @@ function readDeps (test) { return function (cb) {
exports.name = prompt('name', package.name || basename)
-exports.version = prompt('version', package.version || '0.0.0')
+exports.version = prompt('version', package.version || config.get('init.version') || '1.0.0')
if (!package.description) {
exports.description = prompt('description')
}
diff --git a/node_modules/init-package-json/node_modules/promzard/package.json b/node_modules/init-package-json/node_modules/promzard/package.json
index 1f1bfc6d4..bba3057d9 100644
--- a/node_modules/init-package-json/node_modules/promzard/package.json
+++ b/node_modules/init-package-json/node_modules/promzard/package.json
@@ -44,5 +44,6 @@
"tarball": "http://registry.npmjs.org/promzard/-/promzard-0.2.2.tgz"
},
"directories": {},
- "_resolved": "https://registry.npmjs.org/promzard/-/promzard-0.2.2.tgz"
+ "_resolved": "https://registry.npmjs.org/promzard/-/promzard-0.2.2.tgz",
+ "readme": "ERROR: No README data found!"
}
diff --git a/node_modules/init-package-json/package.json b/node_modules/init-package-json/package.json
index a03182a12..ff9f926fc 100644
--- a/node_modules/init-package-json/package.json
+++ b/node_modules/init-package-json/package.json
@@ -1,6 +1,6 @@
{
"name": "init-package-json",
- "version": "0.1.0",
+ "version": "1.0.0",
"main": "init-package-json.js",
"scripts": {
"test": "tap test/*.js"
@@ -21,7 +21,7 @@
"promzard": "~0.2.0",
"read": "~1.0.1",
"read-package-json": "1",
- "semver": "2.x"
+ "semver": "2.x || 3.x"
},
"devDependencies": {
"tap": "~0.2.5",
@@ -37,14 +37,29 @@
"prompt",
"start"
],
- "readme": "# init-package-json\n\nA node module to get your node module started.\n\n## Usage\n\n```javascript\nvar init = require('init-package-json')\nvar path = require('path')\n\n// a path to a promzard module. In the event that this file is\n// not found, one will be provided for you.\nvar initFile = path.resolve(process.env.HOME, '.npm-init')\n\n// the dir where we're doin stuff.\nvar dir = process.cwd()\n\n// extra stuff that gets put into the PromZard module's context.\n// In npm, this is the resolved config object. Exposed as 'config'\n// Optional.\nvar configData = { some: 'extra stuff' }\n\n// Any existing stuff from the package.json file is also exposed in the\n// PromZard module as the `package` object. There will also be free\n// vars for:\n// * `filename` path to the package.json file\n// * `basename` the tip of the package dir\n// * `dirname` the parent of the package dir\n\ninit(dir, initFile, configData, function (er, data) {\n // the data's already been written to {dir}/package.json\n // now you can do stuff with it\n})\n```\n\nOr from the command line:\n\n```\n$ npm-init\n```\n\nSee [PromZard](https://github.com/isaacs/promzard) for details about\nwhat can go in the config file.\n",
- "readmeFilename": "README.md",
- "gitHead": "378bf828106a56e340d3017258ae372a12f0efe7",
+ "gitHead": "e8c42e4be8877195e0ef2cd0b50d806afd2eec08",
"bugs": {
"url": "https://github.com/isaacs/init-package-json/issues"
},
"homepage": "https://github.com/isaacs/init-package-json",
- "_id": "init-package-json@0.1.0",
- "_shasum": "249c982759a102556f294f2592c14a2dad855f52",
- "_from": "init-package-json@latest"
+ "_id": "init-package-json@1.0.0",
+ "_shasum": "8985a99ef11589695d6d3a5d03300b1eab0dd47a",
+ "_from": "init-package-json@1.0.0",
+ "_npmVersion": "1.4.21",
+ "_npmUser": {
+ "name": "isaacs",
+ "email": "i@izs.me"
+ },
+ "maintainers": [
+ {
+ "name": "isaacs",
+ "email": "i@izs.me"
+ }
+ ],
+ "dist": {
+ "shasum": "8985a99ef11589695d6d3a5d03300b1eab0dd47a",
+ "tarball": "http://registry.npmjs.org/init-package-json/-/init-package-json-1.0.0.tgz"
+ },
+ "directories": {},
+ "_resolved": "https://registry.npmjs.org/init-package-json/-/init-package-json-1.0.0.tgz"
}