Make require() compliant with CommonJS Modules/1.1

This commit is contained in:
natecain
2013-10-12 13:44:09 -04:00
parent 539915d300
commit 951019eacc
34 changed files with 546 additions and 37 deletions

View File

@@ -4,7 +4,7 @@
This is invoked as a shell script by NPM when the `tiddlywiki` command is typed
*/
var $tw = require("./boot/boot.js").$tw;
var $tw = require("./boot/boot.js").TiddlyWiki();
// Pass the command line arguments to the boot kernel
$tw.boot.argv = Array.prototype.slice.call(process.argv,2);