Skip to content

Commit

Permalink
Add -p for mkdir in build-generated-test-packages (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Yuan authored Oct 10, 2023
1 parent 5794a9a commit a6fe5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-generated-test-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
};
Expand Down

0 comments on commit a6fe5bc

Please sign in to comment.