constructor()

in src/lib/configuration.ts [14:25]


  constructor() {
    this.exists = fs.existsSync(Configuration.filePath)

    if (this.exists) {
      // TODO enforce stricter validation
      // TODO use JSON.parse(fs.readFile(x))
      this.config = require(Configuration.filePath) as Config
      this.isValid = true
    } else {
      this.isValid = false
    }
  }