Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions packages/cli/scripts/compress-cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* The compressed file is decompressed at runtime by dist/index.js.
*/

import crypto from 'node:crypto'
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
Expand Down Expand Up @@ -50,12 +49,4 @@ logger.success(
`Compressed: ${(originalSize / 1024 / 1024).toFixed(2)} MB → ${(compressedSize / 1024 / 1024).toFixed(2)} MB (${compressionRatio}% reduction)`,
)

// Generate SHA256 checksum for integrity validation.
const sha256 = crypto.createHash('sha256').update(compressed).digest('hex')
const checksumPath = path.join(distPath, 'cli.js.bz.sha256')
writeFileSync(checksumPath, `${sha256} cli.js.bz\n`)

logger.success(`SHA256: ${sha256}`)
logger.log(`Checksum written to: ${path.relative(rootPath, checksumPath)}`)

logger.log('')
56 changes: 28 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ catalog:
'@socketregistry/packageurl-js': 1.3.5
'@socketregistry/yocto-spinner': 1.0.25
'@socketsecurity/config': 3.0.1
'@socketsecurity/lib': 3.2.6
'@socketsecurity/lib': 3.2.8
'@socketsecurity/registry': 2.0.2
'@socketsecurity/sdk': 3.1.3
'@types/cmd-shim': 5.0.2
Expand Down
Loading