From 63fe0eef518df6d21440044b3c3febf89f7302e3 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 30 Jul 2014 15:42:01 -0700 Subject: init-package-json@1.0.0 Defaults package versions in 'npm init' to 1.0.0 instead of 0.0.0 --- node_modules/init-package-json/default-input.js | 2 +- .../node_modules/promzard/package.json | 3 ++- node_modules/init-package-json/package.json | 31 ++++++++++++++++------ package.json | 2 +- 4 files changed, 27 insertions(+), 11 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" } diff --git a/package.json b/package.json index e4eba9bd5..3cfa377d8 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "graceful-fs": "~3.0.0", "inflight": "~1.0.1", "ini": "~1.2.0", - "init-package-json": "~0.1.0", + "init-package-json": "~1.0.0", "lockfile": "~0.4.0", "lru-cache": "~2.5.0", "minimatch": "~0.3.0", -- cgit v1.2.3