mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-03 07:36:16 +00:00
lots of Node fixes
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#!/usr/bin/env narwhal
|
||||
#!/usr/bin/env node
|
||||
|
||||
var execPath = require("file").path(module.path);
|
||||
var mainPath = execPath.dirname().dirname().join("lib", execPath.basename(), "main.j");
|
||||
const path = require("path");
|
||||
|
||||
var args = ["objj", String(mainPath)].concat(system.args.slice(1));
|
||||
require("objective-j").run(args);
|
||||
var commandName = path.basename(process.argv[1]);
|
||||
var mainPath = path.resolve(__dirname, "..", "lib", commandName, "main.j");
|
||||
var args = ["objj", mainPath].concat(process.argv.slice(2));
|
||||
|
||||
require("@objj/runtime").run(args);
|
||||
|
||||
Reference in New Issue
Block a user