Skip to content

Commit

Permalink
fix: use npm pack instead of pnpm pack to respect .npmignore rules
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Mar 12, 2024
1 parent dc83f4e commit 44282ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/core/publish/steps/generate-tarballs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function generatePackageTarballs(
const pkgDir = path.join(PROJECT_ROOT, path.dirname(pkg.filePath));
const tarballPath = path.join(tarballDir, `${toTarballName(pkg.pkgData.name)}-${pkg.pkgData.version}.tgz`);
pkg.tarballPath = tarballPath;
await exec({ cwd: pkgDir, cmd: `pnpm pack --pack-destination=${tarballDir}`, condense: true });
await exec({ cwd: pkgDir, cmd: `npm pack --pack-destination=${tarballDir}`, condense: true });
} catch (e) {
console.log(`🔴 ${chalk.redBright('failed to generate tarball for')} ${chalk.yellow(pkg.pkgData.name)}`);
throw e;
Expand Down

0 comments on commit 44282ae

Please sign in to comment.