1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Plugin Generator: Fixed issue with the same files being added multiple time to JPL archive

This commit is contained in:
Laurent Cozic 2020-11-30 18:32:39 +00:00
parent d0f22140fd
commit 751d0e0745

View File

@ -13,7 +13,7 @@ function readManifest(manifestPath) {
}
function createPluginArchive(sourceDir, destPath) {
const distFiles = glob.sync(`${sourceDir}/**/*`)
const distFiles = glob.sync(`${sourceDir}/**/*`, { nodir: true })
.map(f => f.substr(sourceDir.length + 1));
if (!distFiles.length) {