Skip to content

Commit d92da45

Browse files
committed
fix: use pnpm to publish as script is invoked with pnpm
1 parent 9ede78d commit d92da45

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

scripts/manual-publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const reTag = isLatest
129129
? ""
130130
: ` && npm dist-tag add ${name}@${LATEST_VERSION} latest`;
131131
/** Create release */
132-
const publishCmd = `cd lib && pnpm build && npm publish ${provenance} --access public${
132+
const publishCmd = `cd lib && pnpm build && pnpm publish ${provenance} --access public${
133133
tag && ` --tag ${tag}`
134134
}`;
135135
execSync(publishCmd + reTag);

scripts/publish-canonical.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ canonicals.forEach((pkg) => {
88
execSync(
99
`sed -i -e "s/name.*/name\\": \\"${pkg.replace(/\//g, "\\\\/")}\\",/" lib/package.json`,
1010
);
11-
execSync("cd lib && npm publish --provenance --access public");
11+
execSync("cd lib && pnpm publish --provenance --access public");
1212
} catch (err) {
1313
console.error(`Error publishing ${pkg}: `, err);
1414
}

scripts/publish.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const { visibility } = JSON.parse(
6565
const provenance = visibility.toLowerCase() === "public" ? "--provenance" : "";
6666

6767
/** Create release */
68-
execSync(`cd lib && pnpm build && npm publish ${provenance} --access public`);
68+
execSync(`cd lib && pnpm build && pnpm publish ${provenance} --access public`);
6969

7070
/** Create GitHub release */
7171
try {
@@ -90,4 +90,4 @@ try {
9090
}
9191

9292
execSync("tsx ./scripts/lite.ts");
93-
execSync(`cd lib && pnpm build && npm publish ${provenance} --access public`);
93+
execSync(`cd lib && pnpm build && pnpm publish ${provenance} --access public`);

0 commit comments

Comments
 (0)