chore: udpate usage in techdocs-common too to avoid pulling in two versions of js-yam

This commit is contained in:
blam
2021-01-04 11:22:15 +01:00
parent 153db01fc4
commit 9ca93c9f7a
3 changed files with 18 additions and 6 deletions
@@ -241,7 +241,7 @@ export const patchMkdocsYmlPreBuild = async (
let mkdocsYml: any;
try {
mkdocsYml = yaml.safeLoad(mkdocsYmlFileString);
mkdocsYml = yaml.load(mkdocsYmlFileString);
// mkdocsYml should be an object type after successful parsing.
// But based on its type definition, it can also be a string or undefined, which we don't want.