From ba41ad7ee15847ac0d38e9c6cb1dcc6919cec472 Mon Sep 17 00:00:00 2001 From: Yuki Kitagata <45357311+YukiKitagata@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:38:11 +0900 Subject: [PATCH 1/2] escape filename given as argument --- code/lib/codemod/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/codemod/src/index.ts b/code/lib/codemod/src/index.ts index b55c790adf83..5e9046ad2f77 100644 --- a/code/lib/codemod/src/index.ts +++ b/code/lib/codemod/src/index.ts @@ -89,7 +89,7 @@ export async function runCodemod( '-t', `${TRANSFORM_DIR}/${codemod}.js`, ...parserArgs, - ...files, + ...files.map(file => `"${file}"`), ], { stdio: 'inherit', From 017600a7a5fa0c08bf66605864af6be6b567ad96 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Tue, 26 Mar 2024 11:02:57 +0100 Subject: [PATCH 2/2] Fix formatting issue in index.ts --- code/lib/codemod/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/codemod/src/index.ts b/code/lib/codemod/src/index.ts index 5e9046ad2f77..a5299921a211 100644 --- a/code/lib/codemod/src/index.ts +++ b/code/lib/codemod/src/index.ts @@ -89,7 +89,7 @@ export async function runCodemod( '-t', `${TRANSFORM_DIR}/${codemod}.js`, ...parserArgs, - ...files.map(file => `"${file}"`), + ...files.map((file) => `"${file}"`), ], { stdio: 'inherit',