From e3179f4cde1c62a45e6e7f8f0f4356a26f56b076 Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Wed, 10 Mar 2021 21:33:43 +0000 Subject: [PATCH] --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index e37ea9b..4d63c19 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import path from "path"; import express from "express"; import { SMTPServer } from "smtp-server"; @@ -22,6 +24,7 @@ export default function killTheNewsletter( webApplication.set("email host", "localhost"); webApplication.set("administrator", "mailto:kill-the-newsletter@leafac.com"); + fs.ensureDirSync(rootDirectory); const database = new Database( path.join(rootDirectory, "kill-the-newsletter.db") );