16 lines
346 B
JavaScript
16 lines
346 B
JavaScript
const copy = require('@neutrinojs/copy');
|
|
|
|
const config = require('../../config/.neutrinorc');
|
|
const pkg = require('./package.json');
|
|
|
|
const mains = pkg.files
|
|
.filter((file) => file.match(/\.js$/))
|
|
.map((file) => file.slice(0, -3))
|
|
.reduce((r, file) => ({...r, [file]: file}), {});
|
|
|
|
config.options = {
|
|
mains,
|
|
};
|
|
|
|
module.exports = config;
|