mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 08:34:23 +08:00
16 lines
490 B
JavaScript
16 lines
490 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 (dir === 'treasury' || dir === 'entities') fileSet.add(file)
|
|
else if (root === 'projects' && dir !=='helper' && dir !== 'config') fileSet.add(root + '/' + dir)
|
|
})
|
|
|
|
console.log(JSON.stringify([...fileSet]))
|
|
|
|
function parse(data) {
|
|
return data.replace('[', '').replace(']', '').split(',')
|
|
}
|