Browse files

delete unnecessary file

  • Loading branch information...
1 parent 3762db4 commit d0ed683273bd6c6c6cf0798001540104521909fb @andrewrk committed Mar 10, 2013
Showing with 4 additions and 9 deletions.
  1. +0 −7 bin/jspackage
  2. +2 −0 lib/cmd.js
  3. +1 −1 lib/test.js
  4. +1 −1 package.json
View
7 bin/jspackage
@@ -1,7 +0,0 @@
-#!/usr/bin/env node
-
-var path = require('path');
-var fs = require('fs');
-var bin_dir = path.dirname(fs.realpathSync(__filename));
-var cmd_path = path.resolve(bin_dir, "..", "lib", "cmd.js");
-require(cmd_path);
View
2 lib/cmd.js 100644 → 100755
@@ -1,3 +1,5 @@
+#!/usr/bin/env node
+
var compile = require('./jspackage').compile
, fs = require('fs')
, path = require('path')
View
2 lib/test.js
@@ -64,7 +64,7 @@ function doTest(test_dir, testDone){
fs.readFile(switchesFile, 'utf8', function(err, switches){
switches = (switches || "").replace(/\n/g, " ");
temp.open("", function(err, tmpJsFile){
- var cmdline = "bin/jspackage " + switches + " " + mainFile + " " + tmpJsFile.path;
+ var cmdline = "lib/cmd.js " + switches + " " + mainFile + " " + tmpJsFile.path;
exec(cmdline, function(err, stdout, stderr){
if (stderr.length > 0) {
execResult = {
View
2 package.json
@@ -27,7 +27,7 @@
"test": "node lib/test.js"
},
"bin": {
- "jspackage": "./bin/jspackage"
+ "jspackage": "./lib/cmd.js"
},
"main": "./lib/jspackage.js",
"license": "MIT"

0 comments on commit d0ed683

Please sign in to comment.