From cd3dc63ff41bb6946e15b4a53033cfb52db40b25 Mon Sep 17 00:00:00 2001 From: Steven Yuan Date: Sat, 7 Oct 2023 22:47:58 -0700 Subject: [PATCH] Add `-p` for `mkdir` in `build-generated-test-packages` --- scripts/build-generated-test-packages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-generated-test-packages.js b/scripts/build-generated-test-packages.js index 3047d1d11c9..dd511ddc218 100644 --- a/scripts/build-generated-test-packages.js +++ b/scripts/build-generated-test-packages.js @@ -42,7 +42,7 @@ const buildAndCopyToNodeModules = async (packageName, codegenDir, nodeModulesDir // it can be used in integration tests by other packages within the monorepo. await spawnProcess("yarn", ["pack"], { cwd: codegenDir }); await spawnProcess("rm", ["-rf", packageName], { cwd: nodeModulesDir }); - await spawnProcess("mkdir", [packageName], { cwd: nodeModulesDir }); + await spawnProcess("mkdir", ["-p", packageName], { cwd: nodeModulesDir }); const targetPackageDir = path.join(nodeModulesDir, packageName); await spawnProcess("tar", ["-xf", "package.tgz", "-C", targetPackageDir, "--strip-components", "1"], { cwd: codegenDir }); };