mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 08:34:23 +08:00
Update getFileList.js
This commit is contained in:
4
.github/workflows/getFileList.js
vendored
4
.github/workflows/getFileList.js
vendored
@@ -4,7 +4,7 @@ const fileSet = new Set();
|
||||
|
||||
[...MODIFIED, ...ADDED].forEach(file => {
|
||||
const [root, dir] = file.split('/')
|
||||
if (dir === 'treasury') fileSet.add(file)
|
||||
if (dir === 'treasury' || dir === 'entities') fileSet.add(file)
|
||||
else if (root === 'projects' && dir !=='helper' && dir !== 'config') fileSet.add(root + '/' + dir)
|
||||
})
|
||||
|
||||
@@ -12,4 +12,4 @@ console.log(JSON.stringify([...fileSet]))
|
||||
|
||||
function parse(data) {
|
||||
return data.replace('[', '').replace(']', '').split(',')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user