From 1b16507b2078aa1c47b125502aeea274436f8d18 Mon Sep 17 00:00:00 2001 From: Shu Ding <g@shud.in> Date: Wed, 21 Sep 2022 17:47:28 +0200 Subject: [PATCH 1/2] skip copying next-swc local debug files --- test/lib/create-next-install.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lib/create-next-install.js b/test/lib/create-next-install.js index 5b4d5eedd513f..f4fd3c157333c 100644 --- a/test/lib/create-next-install.js +++ b/test/lib/create-next-install.js @@ -51,7 +51,8 @@ async function createNextInstall( !item.includes('node_modules') && !item.includes('.DS_Store') && // Exclude Rust compilation files - !/next[\\/]build[\\/]swc[\\/]target/.test(item) + !/next[\\/]build[\\/]swc[\\/]target/.test(item) && + !/next-swc[\\/]target[\\/]debug/.test(item) ) }, }) From 2ce3f05264a4a6ebac317e5e353a36fa8ed3f8ec Mon Sep 17 00:00:00 2001 From: Shu Ding <g@shud.in> Date: Wed, 21 Sep 2022 17:50:06 +0200 Subject: [PATCH 2/2] update regex --- test/lib/create-next-install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/create-next-install.js b/test/lib/create-next-install.js index f4fd3c157333c..224cb1824ad0e 100644 --- a/test/lib/create-next-install.js +++ b/test/lib/create-next-install.js @@ -52,7 +52,7 @@ async function createNextInstall( !item.includes('.DS_Store') && // Exclude Rust compilation files !/next[\\/]build[\\/]swc[\\/]target/.test(item) && - !/next-swc[\\/]target[\\/]debug/.test(item) + !/next-swc[\\/]target/.test(item) ) }, })