From: Ruben Beltran del Rio Date: Sat, 3 Apr 2021 23:02:37 +0000 (+0200) Subject: Move rules to lib X-Git-Url: https://git.r.bdr.sh/rbdr/corona-regeln/commitdiff_plain/f331d8dc9568d3db8dcaa9958250f6e6664548d3 Move rules to lib --- diff --git a/lib/rule_generator.js b/lib/rule_generator.js index 407f763..742c915 100644 --- a/lib/rule_generator.js +++ b/lib/rule_generator.js @@ -18,7 +18,7 @@ const internals = { rules: null, currentIndex: 0, - kRulesDirectory: resolve(process.cwd(), 'rules'), + kRulesDirectory: resolve(__dirname, './rules'), async readRules() { diff --git a/rules/business.js b/lib/rules/business.js similarity index 100% rename from rules/business.js rename to lib/rules/business.js diff --git a/rules/curfew.js b/lib/rules/curfew.js similarity index 100% rename from rules/curfew.js rename to lib/rules/curfew.js diff --git a/rules/group.js b/lib/rules/group.js similarity index 100% rename from rules/group.js rename to lib/rules/group.js