From 5b6bcf461e44153a68d9a711f116a11430e45cdb Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 31 Jul 2014 10:20:57 -0700 Subject: cmd-shim@1.1.2 --- node_modules/cmd-shim/README.md | 4 +++- node_modules/cmd-shim/index.js | 4 ++++ node_modules/cmd-shim/package.json | 36 +++++++++++++++++++++++++----------- node_modules/cmd-shim/test/basic.js | 8 ++++++++ package.json | 2 +- 5 files changed, 41 insertions(+), 13 deletions(-) diff --git a/node_modules/cmd-shim/README.md b/node_modules/cmd-shim/README.md index fb997d5db..5c6bfa063 100644 --- a/node_modules/cmd-shim/README.md +++ b/node_modules/cmd-shim/README.md @@ -5,7 +5,9 @@ since symlinks are not suitable for this purpose there. On Unix systems, you should use a symbolic link instead. -[![Build Status](https://travis-ci.org/ForbesLindesay/cmd-shim.png?branch=master)](https://travis-ci.org/ForbesLindesay/cmd-shim) [![Dependency Status](https://gemnasium.com/ForbesLindesay/cmd-shim.png)](https://gemnasium.com/ForbesLindesay/cmd-shim) +[![Build Status](https://img.shields.io/travis/ForbesLindesay/cmd-shim/master.svg)](https://travis-ci.org/ForbesLindesay/cmd-shim) +[![Dependency Status](https://img.shields.io/gemnasium/ForbesLindesay/cmd-shim.svg)](https://gemnasium.com/ForbesLindesay/cmd-shim) +[![NPM version](https://img.shields.io/npm/v/cmd-shim.svg)](http://badge.fury.io/js/cmd-shim) ## Installation diff --git a/node_modules/cmd-shim/index.js b/node_modules/cmd-shim/index.js index 1cfd24edc..12452e3a7 100644 --- a/node_modules/cmd-shim/index.js +++ b/node_modules/cmd-shim/index.js @@ -99,6 +99,8 @@ function writeShim_ (from, to, prog, args, cb) { // @IF EXIST "%~dp0\node.exe" ( // "%~dp0\node.exe" "%~dp0\.\node_modules\npm\bin\npm-cli.js" %* // ) ELSE ( + // SETLOCAL + // SET PATHEXT=%PATHEXT:;.JS;=;% // node "%~dp0\.\node_modules\npm\bin\npm-cli.js" %* // ) var cmd @@ -106,6 +108,8 @@ function writeShim_ (from, to, prog, args, cb) { cmd = "@IF EXIST " + longProg + " (\r\n" + " " + longProg + " " + args + " " + target + " %*\r\n" + ") ELSE (\r\n" + + " @SETLOCAL\r\n" + + " @SET PATHEXT=%PATHEXT:;.JS;=;%\r\n" + " " + prog + " " + args + " " + target + " %*\r\n" + ")" } else { diff --git a/node_modules/cmd-shim/package.json b/node_modules/cmd-shim/package.json index 32e80606f..eebd59ecb 100644 --- a/node_modules/cmd-shim/package.json +++ b/node_modules/cmd-shim/package.json @@ -1,6 +1,6 @@ { "name": "cmd-shim", - "version": "1.1.1", + "version": "1.1.2", "description": "Used in npm for command line application support", "scripts": { "test": "tap test/*.js" @@ -11,25 +11,39 @@ }, "license": "BSD", "optionalDependencies": { - "graceful-fs": "2 || 3" + "graceful-fs": "2" }, "dependencies": { - "mkdirp": "~0.3.3", + "mkdirp": "~0.5.0", "graceful-fs": "2" }, "devDependencies": { - "tap": "~0.4.1", - "rimraf": "~2.1.4" + "tap": "~0.4.11", + "rimraf": "~2.2.8" }, - "readme": "# cmd-shim\r\n\r\nThe cmd-shim used in npm to create executable scripts on Windows,\r\nsince symlinks are not suitable for this purpose there.\r\n\r\nOn Unix systems, you should use a symbolic link instead.\r\n\r\n[![Build Status](https://travis-ci.org/ForbesLindesay/cmd-shim.png?branch=master)](https://travis-ci.org/ForbesLindesay/cmd-shim) [![Dependency Status](https://gemnasium.com/ForbesLindesay/cmd-shim.png)](https://gemnasium.com/ForbesLindesay/cmd-shim)\r\n\r\n## Installation\r\n\r\n```\r\nnpm install cmd-shim\r\n```\r\n\r\n## API\r\n\r\n### cmdShim(from, to, cb)\r\n\r\nCreate a cmd shim at `to` for the command line program at `from`.\r\ne.g.\r\n\r\n```javascript\r\nvar cmdShim = require('cmd-shim');\r\ncmdShim(__dirname + '/cli.js', '/usr/bin/command-name', function (err) {\r\n if (err) throw err;\r\n});\r\n```\r\n\r\n### cmdShim.ifExists(from, to, cb)\r\n\r\nThe same as above, but will just continue if the file does not exist.\r\nSource:\r\n\r\n```javascript\r\nfunction cmdShimIfExists (from, to, cb) {\r\n fs.stat(from, function (er) {\r\n if (er) return cb()\r\n cmdShim(from, to, cb)\r\n })\r\n}\r\n```\r\n", - "readmeFilename": "README.md", "bugs": { "url": "https://github.com/ForbesLindesay/cmd-shim/issues" }, - "_id": "cmd-shim@1.1.1", + "homepage": "https://github.com/ForbesLindesay/cmd-shim", + "_id": "cmd-shim@1.1.2", "dist": { - "shasum": "87741e2a8b6307ea1ea8bf1f65287cb4a9ca977a" + "shasum": "e4f9198802e361e8eb43b591959ef4dc6cdb6754", + "tarball": "http://registry.npmjs.org/cmd-shim/-/cmd-shim-1.1.2.tgz" + }, + "_from": "cmd-shim@~1.1.1", + "_npmVersion": "1.4.3", + "_npmUser": { + "name": "forbeslindesay", + "email": "forbes@lindeay.co.uk" }, - "_from": "cmd-shim@latest", - "_resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-1.1.1.tgz" + "maintainers": [ + { + "name": "forbeslindesay", + "email": "forbes@lindesay.co.uk" + } + ], + "directories": {}, + "_shasum": "e4f9198802e361e8eb43b591959ef4dc6cdb6754", + "_resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-1.1.2.tgz", + "readme": "ERROR: No README data found!" } diff --git a/node_modules/cmd-shim/test/basic.js b/node_modules/cmd-shim/test/basic.js index 93da5ea26..004bf9d5c 100644 --- a/node_modules/cmd-shim/test/basic.js +++ b/node_modules/cmd-shim/test/basic.js @@ -50,6 +50,8 @@ test('env shebang', function (t) { "@IF EXIST \"%~dp0\\node.exe\" (\r"+ "\n \"%~dp0\\node.exe\" \"%~dp0\\from.env\" %*\r"+ "\n) ELSE (\r"+ + "\n @SETLOCAL\r"+ + "\n @SET PATHEXT=%PATHEXT:;.JS;=;%\r"+ "\n node \"%~dp0\\from.env\" %*\r"+ "\n)") t.end() @@ -86,6 +88,8 @@ test('env shebang with args', function (t) { "@IF EXIST \"%~dp0\\node.exe\" (\r"+ "\n \"%~dp0\\node.exe\" --expose_gc \"%~dp0\\from.env.args\" %*\r"+ "\n) ELSE (\r"+ + "\n @SETLOCAL\r"+ + "\n @SET PATHEXT=%PATHEXT:;.JS;=;%\r"+ "\n node --expose_gc \"%~dp0\\from.env.args\" %*\r"+ "\n)") t.end() @@ -123,6 +127,8 @@ test('explicit shebang', function (t) { "@IF EXIST \"%~dp0\\/usr/bin/sh.exe\" (\r" + "\n \"%~dp0\\/usr/bin/sh.exe\" \"%~dp0\\from.sh\" %*\r" + "\n) ELSE (\r" + + "\n @SETLOCAL\r"+ + "\n @SET PATHEXT=%PATHEXT:;.JS;=;%\r"+ "\n /usr/bin/sh \"%~dp0\\from.sh\" %*\r" + "\n)") t.end() @@ -160,6 +166,8 @@ test('explicit shebang with args', function (t) { "@IF EXIST \"%~dp0\\/usr/bin/sh.exe\" (\r" + "\n \"%~dp0\\/usr/bin/sh.exe\" -x \"%~dp0\\from.sh.args\" %*\r" + "\n) ELSE (\r" + + "\n @SETLOCAL\r"+ + "\n @SET PATHEXT=%PATHEXT:;.JS;=;%\r"+ "\n /usr/bin/sh -x \"%~dp0\\from.sh.args\" %*\r" + "\n)") t.end() diff --git a/package.json b/package.json index 3cfa377d8..68b1f4492 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "child-process-close": "~0.1.1", "chmodr": "~0.1.0", "chownr": "0", - "cmd-shim": "~1.1.1", + "cmd-shim": "~1.1.2", "columnify": "~1.1.0", "editor": "~0.1.0", "fstream": "~0.1.28", -- cgit v1.2.3