UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 531 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.readJsonSync=readJsonSync,exports.readYamlSync=readYamlSync;var fs=()=>{var tmp=require("fs");return fs=()=>tmp,tmp},yaml_cfn=()=>{var tmp=require("./private/yaml-cfn");return yaml_cfn=()=>tmp,tmp};function readJsonSync(filePath){const fileContents=fs().readFileSync(filePath);return JSON.parse(fileContents.toString())}function readYamlSync(filePath){const fileContents=fs().readFileSync(filePath);return yaml_cfn().deserialize(fileContents.toString())}