From 5e5f96b47fb484b06673ae06c3b0bda83b052249 Mon Sep 17 00:00:00 2001 From: Andrea Scarsi Date: Sun, 22 Mar 2020 16:57:18 +0100 Subject: [PATCH] Fix: update rollup.config.js. #401 (#402) - Fix: update rollup.config.js. fixes #401 --- rollup.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 1d0604f0..b9fb5319 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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)