Skip to content

Commit

Permalink
Revert "Using node to start plugin instead of shebang"
Browse files Browse the repository at this point in the history
This reverts commit b198b3a.
  • Loading branch information
nehashri committed Dec 18, 2017
1 parent b198b3a commit cecace4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions index.bat
@@ -0,0 +1,2 @@
@echo off
node index.js %1
2 changes: 2 additions & 0 deletions index.js
@@ -1,3 +1,5 @@
#! /usr/bin/env node

var version = process.versions.node.split(".");
if (parseInt(version[0]) === 0 && parseInt(version[1]) < 12) {
throw new Error("gauge-js requires Node.js version 0.12+. Current version: " + process.versions.node);
Expand Down
12 changes: 6 additions & 6 deletions js.json
Expand Up @@ -8,14 +8,14 @@
"darwin": []
},
"run": {
"windows": ["node index.js", "--start"],
"linux": ["node index.js", "--start"],
"darwin": ["node index.js", "--start"]
"windows": ["index.bat", "--start"],
"linux": ["./index.js", "--start"],
"darwin": ["./index.js", "--start"]
},
"init": {
"windows": ["node index.js", "--init"],
"linux": ["node index.js", "--init"],
"darwin": ["node index.js", "--init"]
"windows": ["index.bat", "--init"],
"linux": ["./index.js", "--init"],
"darwin": ["./index.js", "--init"]
},
"lib": "libs",
"gaugeVersionSupport": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.js
Expand Up @@ -33,7 +33,7 @@ var recreateDir = function (dirPath) {

var prepareFiles = function () {
var buildDir = localPath("build"),
copyList = ["gauge-proto", "src", "skel", "index.js", "debug.bat", "js.json", "package.json", ".node-inspectorrc", "README.md"];
copyList = ["gauge-proto", "src", "skel", "index.js", "index.bat", "debug.bat", "js.json", "package.json", ".node-inspectorrc", "README.md"];

recreateDir(buildDir);

Expand Down

0 comments on commit cecace4

Please sign in to comment.