From 532ddb40e1d5b35a1493c66f860781ad43980a7b Mon Sep 17 00:00:00 2001 From: Wenyi Luo Date: Wed, 27 May 2020 18:36:16 +0800 Subject: [PATCH] add runtime ignore --- Composer/plugins/localPublish/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Composer/plugins/localPublish/src/index.ts b/Composer/plugins/localPublish/src/index.ts index c6ebb1f002..5ebd4b8cb9 100644 --- a/Composer/plugins/localPublish/src/index.ts +++ b/Composer/plugins/localPublish/src/index.ts @@ -341,7 +341,7 @@ class LocalPublisher implements PublishPlugin { if (fs.existsSync(dstPath)) { await removeFile(dstPath); } - const files = await glob('**/*', { cwd: srcDir, dot: true }); + const files = await glob('**/*', { cwd: srcDir, dot: true, ignore: ['runtime'] }); return new Promise((resolve, reject) => { const archive = archiver('zip'); const output = fs.createWriteStream(dstPath);