mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
22 lines
486 B
JavaScript
22 lines
486 B
JavaScript
|
const path = require('path');
|
||
|
const fs = require('fs');
|
||
|
|
||
|
const docs = path.join(__dirname, '../docs/index');
|
||
|
const src = path.join(__dirname, '../src/');
|
||
|
const ui = path.join(src, './index.js');
|
||
|
|
||
|
module.exports = fs
|
||
|
.readdirSync(src)
|
||
|
.filter((entry) => fs.statSync(path.join(src, entry)).isDirectory())
|
||
|
.map((entry) => ({
|
||
|
name: entry,
|
||
|
path: path.join(src, entry, './index.js')
|
||
|
}))
|
||
|
.concat([{
|
||
|
name: 'docs',
|
||
|
path: docs
|
||
|
}, {
|
||
|
name: 'ui',
|
||
|
path: ui
|
||
|
}]);
|