latus/packages/core/.neutrinorc.js
2020-12-02 02:20:53 -06:00

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;