瀏覽代碼

export run

Gildas 5 年之前
父節點
當前提交
88518d67d8
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      cli/single-file

+ 3 - 1
cli/single-file

@@ -23,7 +23,7 @@
  *   Source.
  */
 
-/* global require, URL */
+/* global require, module, URL */
 
 const VALID_URL_TEST = /^(https?|file):\/\//;
 
@@ -46,6 +46,8 @@ options.browserScripts = options.browserScripts.map(path => require.resolve(path
 const backend = require(backEnds[options.backEnd]);
 run(options);
 
+module.exports = run;
+
 async function run(options) {
 	await backend.initialize(options);
 	let tasks;