mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
14 lines
418 B
JavaScript
14 lines
418 B
JavaScript
const MODIFIED = parse(process.env.MODIFIED)
|
|
const ADDED = parse(process.env.ADDED)
|
|
const fileSet = new Set();
|
|
|
|
[...MODIFIED, ...ADDED].forEach(file => {
|
|
const [root, dir] = file.split('/')
|
|
if (root === 'projects' && dir !=='helper' && dir !== 'config') fileSet.add(root + '/' + dir)
|
|
})
|
|
|
|
console.log(JSON.stringify([...fileSet]))
|
|
|
|
function parse(data) {
|
|
return data.replace('[', '').replace(']', '').split(',')
|
|
} |