Skip to content

Commit

Permalink
fix(releaser): tarball directory not loose files
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Feb 6, 2025
1 parent f390193 commit cfe0c5a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/turbo-releaser/src/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ async function packPlatform(
): Promise<string> {
const { os, arch } = platform;
console.log(`Packing platform: ${os}-${arch}`);
const scaffoldDir = path.join("dist", `${os}-${arch}-${version}`);
const npmDirName = `turbo-${os}-${arch}`;
const tarballDir = path.join("dist", `${os}-${arch}-${version}`);
const scaffoldDir = path.join(tarballDir, npmDirName);

console.log("Generating native package...");
await native.generateNativePackage({
Expand All @@ -34,9 +36,9 @@ async function packPlatform(
{
gzip: true,
file: tarPath,
cwd: scaffoldDir,
cwd: tarballDir,
},
["package.json", "README.md", "bin"]
[npmDirName]
);

console.log(`Artifact created: ${tarPath}`);
Expand Down

0 comments on commit cfe0c5a

Please sign in to comment.