packages/config-loader: add build- and dev-time config through env + tests

This commit is contained in:
Patrik Oldsberg
2020-06-06 17:02:31 +02:00
parent c40a2a5e61
commit 650779412c
3 changed files with 177 additions and 3 deletions
+1
View File
@@ -16,6 +16,7 @@
import { AppConfig, Config, JsonValue, JsonObject } from './types';
// Update the same pattern in config-loader package if this is changed
const CONFIG_KEY_PART_PATTERN = /^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;
function isObject(value: JsonValue | undefined): value is JsonObject {