diff --git a/compile.js b/compile.js index d60acd5..a49fd1d 100755 --- a/compile.js +++ b/compile.js @@ -1,6 +1,8 @@ const fs = require('fs') -module.exports = function compile(page, fn){ +module.exports = compile + +function compile(page, fn){ switch(page.type){ case 'md': compileMD(page.file, fn) diff --git a/package.json b/package.json index 8d83737..aa8ea58 100755 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "compile.js", "scripts": { - "test": "nodemon compile.js" + "test": "nodemon app.js" }, "author": "Mats van Reenen", "license": "GPL-3.0",