@swimlane/cosign
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -34,3 +34,2 @@ "use strict"; | ||
const archiver_1 = require("archiver"); | ||
const node_zlib_1 = require("node:zlib"); | ||
const binName = "cosign"; | ||
@@ -53,12 +52,10 @@ const modulePath = node_path_1.default.resolve(__dirname); | ||
} | ||
const archive = (0, archiver_1.create)("tar"); | ||
const gzip = (0, node_zlib_1.createGzip)(); | ||
const archive = (0, archiver_1.create)("tar", { gzip: true }); | ||
archive.glob("**", { | ||
cwd: tempDir | ||
}); | ||
archive | ||
.pipe(gzip) | ||
.pipe(writable) | ||
.on("finish", resolve) | ||
.on("error", reject); | ||
archive.glob("**/*.*", { | ||
cwd: tempDir | ||
}); | ||
await archive.finalize(); | ||
@@ -65,0 +62,0 @@ }); |
{ | ||
"name": "@swimlane/cosign", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -26,2 +26,5 @@ "main": "./lib/index.js", | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"bin": { | ||
@@ -28,0 +31,0 @@ "cosign": "./node-modules/.bin/cosign" |
@@ -45,3 +45,3 @@ const fs = require("fs-extra"); | ||
const binPath = path.join(modulePath, "..", "..", "node_modules", ".bin"); | ||
const binPath = path.join(modulePath, "..", "node_modules", ".bin"); | ||
const binFile = path.join(binPath, binName); | ||
@@ -48,0 +48,0 @@ |
@@ -5,3 +5,2 @@ import path, { join, resolve } from "node:path"; | ||
import { create } from "archiver"; | ||
import { createGzip } from "node:zlib"; | ||
import { Writable } from "node:stream"; | ||
@@ -37,8 +36,9 @@ | ||
// const output = fs.createWriteStream(tarPath) | ||
const archive = create("tar"); | ||
const gzip = createGzip(); | ||
const archive = create("tar", { gzip: true }); | ||
archive.glob("**", { | ||
cwd: tempDir | ||
}); | ||
archive | ||
.pipe(gzip) | ||
.pipe(writable) | ||
@@ -48,9 +48,5 @@ .on("finish", resolve) | ||
archive.glob("**/*.*", { | ||
cwd: tempDir | ||
}); | ||
await archive.finalize(); | ||
}); | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37
29024
380