]> git.r.bdr.sh - rbdr/corona-regeln/commitdiff
Move rules to lib
authorRuben Beltran del Rio <redacted>
Sat, 3 Apr 2021 23:02:37 +0000 (01:02 +0200)
committerRuben Beltran del Rio <redacted>
Sat, 3 Apr 2021 23:02:37 +0000 (01:02 +0200)
lib/rule_generator.js
lib/rules/business.js [moved from rules/business.js with 100% similarity]
lib/rules/curfew.js [moved from rules/curfew.js with 100% similarity]
lib/rules/group.js [moved from rules/group.js with 100% similarity]

index 407f7636ef5ed9b8a2ae835de49f3c02714f04f7..742c9159cb54dae87f92afb32c5616fbbab4c599 100644 (file)
@@ -18,7 +18,7 @@ const internals = {
   rules: null,
   currentIndex: 0,
 
   rules: null,
   currentIndex: 0,
 
-  kRulesDirectory: resolve(process.cwd(), 'rules'),
+  kRulesDirectory: resolve(__dirname, './rules'),
 
   async readRules() {
 
 
   async readRules() {
 
similarity index 100%
rename from rules/business.js
rename to lib/rules/business.js
similarity index 100%
rename from rules/curfew.js
rename to lib/rules/curfew.js
similarity index 100%
rename from rules/group.js
rename to lib/rules/group.js