Fix: update rollup.config.js. #401 (#402)

- Fix: update rollup.config.js. fixes #401
master
Andrea Scarsi 2020-03-22 16:57:18 +01:00 committed by GitHub
parent 65fcb1da9a
commit 5e5f96b47f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
// See rollup-config.config.js instead for building the main (configurable)
// user entrance file
import {join, basename} from 'path';
import {lstatSync, readdirSync, copyFileSync} from 'fs';
import {lstatSync, readdirSync, copyFileSync, mkdirSync} from 'fs';
import babel from 'rollup-plugin-babel';
import {terser} from 'rollup-plugin-terser';
@ -183,6 +183,7 @@ export default [
}),
...extensionFiles.map((extensionFile) => {
if (extensionFile.match(/\.php$/)) {
mkdirSync('dist/extensions', {recursive: true});
copyFileSync(
join('editor/extensions', extensionFile),
join('dist/extensions', extensionFile)