UNPKG

@amplience/dc-cli

Version:
17 lines (16 loc) 577 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getImportFileList = void 0; const fs_1 = __importDefault(require("fs")); const getImportFileList = (filePath) => { try { return JSON.parse(fs_1.default.readFileSync(filePath, 'utf-8')); } catch (err) { throw new Error(`Unable to read manifest file list: ${filePath}`); } }; exports.getImportFileList = getImportFileList;