diff --git a/packages/client/scripts/publishDev.js b/packages/client/scripts/publishDev.js index f91f52dd2b..f15fd789c4 100644 --- a/packages/client/scripts/publishDev.js +++ b/packages/client/scripts/publishDev.js @@ -1,4 +1,4 @@ -const { readdir, stat, copyFile } = require("fs-extra") +const { readdir, stat, copyFile, ensureDir } = require("fs-extra") const { constants } = require("fs") const { join, basename } = require("path") const serverConfig = require("../../server/config")() @@ -26,6 +26,7 @@ const nodeModules = appName => const apps = await readdir(appPackages) const copySource = file => async toDir => { + await ensureDir(toDir) const dest = join(toDir, basename(file)) try { await copyFile(file, dest, constants.COPYFILE_FICLONE) diff --git a/packages/materialdesign-components/scripts/publishDev.js b/packages/materialdesign-components/scripts/publishDev.js index a199b51226..2b0dfa3964 100644 --- a/packages/materialdesign-components/scripts/publishDev.js +++ b/packages/materialdesign-components/scripts/publishDev.js @@ -1,4 +1,4 @@ -const { readdir, stat, copyFile } = require("fs-extra") +const { readdir, stat, copyFile, ensureDir } = require("fs-extra") const { constants } = require("fs") const { join, basename } = require("path") const serverConfig = require("../../server/config")() @@ -62,6 +62,7 @@ const nodeModules = appName => const apps = await readdir(appPackages) const copySource = file => async toDir => { + await ensureDir(toDir) const dest = join(toDir, basename(file)) try { await copyFile(file, dest, constants.COPYFILE_FICLONE) diff --git a/packages/standard-components/scripts/publishDev.js b/packages/standard-components/scripts/publishDev.js index 9b986a2288..0dc3385a65 100644 --- a/packages/standard-components/scripts/publishDev.js +++ b/packages/standard-components/scripts/publishDev.js @@ -1,4 +1,4 @@ -const { readdir, stat, copyFile } = require("fs-extra") +const { readdir, stat, copyFile, ensureDir } = require("fs-extra") const { constants } = require("fs") const { join, basename } = require("path") const serverConfig = require("../../server/config")() @@ -56,6 +56,7 @@ const nodeModules = appName => const apps = await readdir(appPackages) const copySource = file => async toDir => { + await ensureDir(toDir) const dest = join(toDir, basename(file)) try { await copyFile(file, dest, constants.COPYFILE_FICLONE)