mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
Added config for main node package.
This commit is contained in:
parent
8ddac2db45
commit
9a3b600666
3 changed files with 3338 additions and 13 deletions
|
@ -2,8 +2,11 @@ const typescript = require('rollup-plugin-typescript2');
|
|||
const copy = require('rollup-plugin-copy');
|
||||
const glob = require('glob');
|
||||
const json = require('@rollup/plugin-json')
|
||||
const commonJS = require('@rollup/plugin-commonjs')
|
||||
|
||||
|
||||
module.exports = {
|
||||
input: glob.sync('./node/**/*.ts'), // Matches all TypeScript files in the 'src' directory and its subdirectories
|
||||
input: './node/server.ts', // Matches all TypeScript files in the 'src' directory and its subdirectories
|
||||
output: {
|
||||
preserveModules: true,
|
||||
dir: './dist',
|
||||
|
@ -14,6 +17,7 @@ module.exports = {
|
|||
typescript({
|
||||
tsconfig: 'tsconfig.json',
|
||||
}),
|
||||
commonJS(),
|
||||
copy({
|
||||
targets: [
|
||||
{src:'./package.json', dest:'./dist'},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue