Update update-readme.js

This commit is contained in:
Aleksandr Statciuk 2022-02-03 21:04:48 +03:00
parent 627792d45c
commit c5b5936ee0
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ async function main() {
const items = []
for (const filepath of files) {
const { site, channels } = await parser.parseChannels(filepath)
const config = require(`../../sites/${site}/${site}.config.js`)
const dir = file.dirname(filepath)
const config = require(file.resolve(`${dir}/${site}.config.js`))
if (config.ignore) continue
const filename = file.basename(filepath)