UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 580 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.readYamlSync=exports.readJsonSync=void 0;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())}exports.readJsonSync=readJsonSync;function readYamlSync(filePath){const fileContents=fs().readFileSync(filePath);return yaml_cfn().deserialize(fileContents.toString())}exports.readYamlSync=readYamlSync;