UNPKG

@kadena/kadena-cli

Version:

Kadena CLI tool to interact with the Kadena blockchain (manage keys, transactions, etc.)

11 lines 545 B
export function extractImportedFiles(indexDts) { return (indexDts || '') .split(/(\r?\n)|;/) .map((line) => line === null || line === void 0 ? void 0 : line.replace(/export\s*\*\s*from/, 'import')) .map((line) => { const matches = line === null || line === void 0 ? void 0 : line.match(/^\s*import\s*[\'\"]\.\/(.*)[\'\"]/); return matches ? matches[1] : ''; }) .filter((fileName, idx, list) => fileName && list.indexOf(fileName) === idx); } //# sourceMappingURL=extractImportedFiles.js.map