Skip to content

Commit

Permalink
Fixed rollup config.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Jul 2, 2023
1 parent 7a7badc commit 03f4beb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rollup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
// eslint-disable-next-line strict
const typescript = require('rollup-plugin-typescript2');
const copy = require('rollup-plugin-copy');
const glob = require('glob');

module.exports = {
external:['ep_etherpad-lite/node/eejs','ep_etherpad-lite/node/utils/Settings'],
input: ['./src/index.ts'],
input: glob.sync('src/**/*.ts'), // Matches all TypeScript files in the 'src' directory and its subdirectories
output: {
preserveModules: true,
dir: './dist',
format: 'cjs',
},
plugins: [
typescript({
include: ['*.ts+(|x)', '**/*.ts+(|x)', '../**/*.ts+(|x)'],
tsconfig: 'tsconfig.json',
}),
copy({
targets: [
Expand Down

0 comments on commit 03f4beb

Please sign in to comment.