1 |
|
2 |
|
3 | var fableMain = require("./build");
|
4 |
|
5 | if (require.main === module) {
|
6 | fableMain.compile();
|
7 | } else {
|
8 | var fableLib = require("./lib");
|
9 | fableLib.compile = function(opts) {
|
10 | opts = typeof opts === "string" ? {projFile: opts} : opts;
|
11 | return fableMain.compile(opts || {});
|
12 | }
|
13 | module.exports = fableLib;
|
14 | }
|