1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const renderer_1 = require("./renderer");
|
4 | // --------- /Public Types --------- //
|
5 | // --------- Public Loaders --------- //
|
6 | async function loadVersionFiles() {
|
7 | const rawConfig = await loadVdevConfig();
|
8 | return rawConfig.versionFiles || [];
|
9 | }
|
10 | exports.loadVersionFiles = loadVersionFiles;
|
11 | /** Parse the ./vdev.yaml and return as is */
|
12 | async function loadVdevConfig() {
|
13 | const conf = await renderer_1.loadTemplatizedYaml('./vdev.yaml');
|
14 | // TODO: probably need to do some checks here.
|
15 | return conf;
|
16 | }
|
17 | exports.loadVdevConfig = loadVdevConfig;
|
18 | // --------- /Public Loaders --------- //
|