From 463ecc62c1677840aff4ad04bc16aac04c3c8838 Mon Sep 17 00:00:00 2001 From: Bronwen Date: Sat, 22 May 2021 16:36:11 -0400 Subject: [PATCH] better tests? --- src/System.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/System.ts b/src/System.ts index 503bb6c..b7167e9 100644 --- a/src/System.ts +++ b/src/System.ts @@ -28,6 +28,8 @@ class System { this.rootDir = rootDir; this.modules = modules; this.createNamespace(); + + ensureDirSync(resolve(this.rootDir, '.system')); const vault = readdirSync(resolve(this.rootDir, '.system')).map(v => resolve(this.rootDir, '.system', v)); const serializedInstances: SerializedInstance[] = vault.map((v) => JSON.parse(readFileSync(v).toString()));