tegami 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/providers/npm.js +3 -3
- package/package.json +1 -1
package/dist/providers/npm.js
CHANGED
|
@@ -81,15 +81,15 @@ var NpmRegistryClient = class {
|
|
|
81
81
|
async publish(pkg, { packageStore }) {
|
|
82
82
|
const distTag = packageStore.npm?.distTag;
|
|
83
83
|
if (this.client === "bun") {
|
|
84
|
-
const
|
|
84
|
+
const tarballPath = path.resolve(pkg.path, "pkg.tgz");
|
|
85
85
|
const packResult = await x("bun", [
|
|
86
86
|
"pm",
|
|
87
87
|
"pack",
|
|
88
88
|
"--filename",
|
|
89
|
-
|
|
89
|
+
tarballPath
|
|
90
90
|
], { nodeOptions: { cwd: pkg.path } });
|
|
91
91
|
if (packResult.exitCode !== 0) throw execFailure(`Failed to pack ${pkg.name}@${pkg.version}.`, packResult);
|
|
92
|
-
const publishArgs = ["publish",
|
|
92
|
+
const publishArgs = ["publish", tarballPath];
|
|
93
93
|
if (distTag) publishArgs.push("--tag", distTag);
|
|
94
94
|
const publishResult = await x("npm", publishArgs, { nodeOptions: { cwd: pkg.path } });
|
|
95
95
|
if (publishResult.exitCode !== 0) throw execFailure(`Failed to publish ${pkg.name}@${pkg.version}${distTag ? ` with dist-tag "${distTag}"` : ""}.`, publishResult);
|