pkg-pr-new 0.0.27 → 0.0.28
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/index.js +6 -4
- package/index.ts +5 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -352,12 +352,15 @@ const main = defineCommand({
|
|
|
352
352
|
)!;
|
|
353
353
|
outputPkg.shasum = shasum;
|
|
354
354
|
|
|
355
|
-
const
|
|
355
|
+
const filePath = path.resolve(p, filename)
|
|
356
|
+
const buffer = await fs.readFile(filePath);
|
|
356
357
|
|
|
357
|
-
const blob = new Blob([
|
|
358
|
+
const blob = new Blob([buffer], {
|
|
358
359
|
type: "application/octet-stream",
|
|
359
360
|
});
|
|
360
361
|
formData.append(`package:${pJson.name}`, blob, filename);
|
|
362
|
+
|
|
363
|
+
await fs.rm(filePath)
|
|
361
364
|
} finally {
|
|
362
365
|
await restoreMap.get(p)?.();
|
|
363
366
|
}
|