mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-17 19:26:23 +00:00
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
const banner = require('../../config/banner.rollup.json')
|
|
const commonjs = require('@rollup/plugin-commonjs')
|
|
const { join } = require('path')
|
|
|
|
module.exports = [
|
|
{
|
|
input: join(__dirname, 'src', 'mock', 'index.js'),
|
|
output: {
|
|
banner: banner['banner.output'].join(''),
|
|
file: join(__dirname, 'lib', 'mock', 'index.cjs'),
|
|
format: 'cjs',
|
|
},
|
|
plugins: [commonjs()],
|
|
},
|
|
{
|
|
input: join(__dirname, 'src', 'mongo', 'index.js'),
|
|
output: {
|
|
banner: banner['banner.output'].join(''),
|
|
file: join(__dirname, 'lib', 'mongo', 'index.cjs'),
|
|
format: 'cjs',
|
|
},
|
|
plugins: [commonjs()],
|
|
},
|
|
{
|
|
input: join(__dirname, 'src', 'mysql', 'index.js'),
|
|
output: {
|
|
banner: banner['banner.output'].join(''),
|
|
file: join(__dirname, 'lib', 'mysql', 'index.cjs'),
|
|
format: 'cjs',
|
|
},
|
|
plugins: [commonjs()],
|
|
},
|
|
{
|
|
input: join(__dirname, 'src', 'json', 'index.js'),
|
|
output: {
|
|
banner: banner['banner.output'].join(''),
|
|
file: join(__dirname, 'lib', 'json', 'index.cjs'),
|
|
format: 'cjs',
|
|
},
|
|
plugins: [commonjs()],
|
|
},
|
|
]
|