mirror of
https://github.com/uniwhale-io/DefiLlama-yield-server.git
synced 2026-01-12 17:12:21 +08:00
21 lines
471 B
JavaScript
21 lines
471 B
JavaScript
const MODIFIED = parse(process.env.MODIFIED);
|
|
const ADDED = parse(process.env.ADDED);
|
|
const fileSet = new Set();
|
|
|
|
[...MODIFIED, ...ADDED].forEach((file) => {
|
|
const [root0, root1, dir] = file.split('/');
|
|
if (
|
|
root0 === 'src' &&
|
|
root1 === 'adaptors' &&
|
|
dir !== 'test.js' &&
|
|
dir !== 'utils.js'
|
|
)
|
|
fileSet.add(dir);
|
|
});
|
|
|
|
console.log(JSON.stringify([...fileSet]));
|
|
|
|
function parse(data) {
|
|
return data.replace('[', '').replace(']', '').split(',');
|
|
}
|