mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-25 06:24:35 +00:00
Make require() compliant with CommonJS Modules/1.1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user