Skip to content

Commit 3fd1837

Browse files
authored
fix: use npm pack instead of pnpm pack to respect .npmignore rules (#9257)
1 parent 01091f5 commit 3fd1837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release/core/publish/steps/generate-tarballs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function generatePackageTarballs(
6060
const pkgDir = path.join(PROJECT_ROOT, path.dirname(pkg.filePath));
6161
const tarballPath = path.join(tarballDir, `${toTarballName(pkg.pkgData.name)}-${pkg.pkgData.version}.tgz`);
6262
pkg.tarballPath = tarballPath;
63-
await exec({ cwd: pkgDir, cmd: `pnpm pack --pack-destination=${tarballDir}`, condense: true });
63+
await exec({ cwd: pkgDir, cmd: `npm pack --pack-destination=${tarballDir}`, condense: true });
6464
} catch (e) {
6565
console.log(`🔴 ${chalk.redBright('failed to generate tarball for')} ${chalk.yellow(pkg.pkgData.name)}`);
6666
throw e;

0 commit comments

Comments
 (0)