fix: build-radar path

This commit is contained in:
DIYgod
2024-02-28 23:54:52 +08:00
parent b621d38e51
commit 14607e2c8d

View File

@@ -6,7 +6,7 @@ const dirname = path.join(__dirname + '../../../lib/v2');
const toSource = require('tosource');
// Namespaces that do not require radar.js
const allowNamespace = new Set(['discourse', 'discuz', 'ehentai', 'lemmy', 'mail', 'test']);
const allowNamespace = new Set(['discourse', 'discuz', 'ehentai', 'lemmy', 'mail', 'test', 'index.ts', 'robots.txt.ts']);
// Check if a radar.js file is exist under each folder of dirname
for (const dir of fs.readdirSync(dirname)) {
const dirPath = path.join(dirname, dir);