From a6fe5bc829303d8080b6c6dabd09ead0168f2e40 Mon Sep 17 00:00:00 2001 From: Steven Yuan Date: Tue, 10 Oct 2023 09:42:13 -0700 Subject: [PATCH] Add `-p` for `mkdir` in `build-generated-test-packages` (#1010) --- 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 40057791106..892d95e7986 100644 --- a/scripts/build-generated-test-packages.js +++ b/scripts/build-generated-test-packages.js @@ -43,7 +43,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 }); };