mirror of
https://github.com/safedep/vet.git
synced 2025-12-11 09:25:44 -06:00
* add support for publishing vet to npm * Update .github/workflows/publish-npm.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> * update npm package readme --------- Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
31 lines
829 B
JavaScript
31 lines
829 B
JavaScript
// Configuration for npm binary wrapper
|
|
|
|
const ORG_NAME = "@safedep";
|
|
const PACKAGE_NAME = "vet";
|
|
const BINARY_NAME = "vet";
|
|
|
|
// GitHub repository information for releases
|
|
const REPO_OWNER = "safedep";
|
|
const REPO_NAME = "vet";
|
|
|
|
// GitHub releases base URL (constructed from repo info)
|
|
const GITHUB_RELEASES_BASE = `https://github.com/${REPO_OWNER}/${REPO_NAME}/releases/download`;
|
|
|
|
// Platform-specific binary filename patterns (GoReleaser format)
|
|
const BINARY_PATTERNS = {
|
|
"darwin-x64": `${BINARY_NAME}_Darwin_x86_64.tar.gz`,
|
|
"darwin-arm64": `${BINARY_NAME}_Darwin_arm64.tar.gz`,
|
|
"linux-x64": `${BINARY_NAME}_Linux_x86_64.tar.gz`,
|
|
"win32-x64": `${BINARY_NAME}_Windows_x86_64.zip`,
|
|
};
|
|
|
|
module.exports = {
|
|
ORG_NAME,
|
|
PACKAGE_NAME,
|
|
BINARY_NAME,
|
|
REPO_OWNER,
|
|
REPO_NAME,
|
|
GITHUB_RELEASES_BASE,
|
|
BINARY_PATTERNS,
|
|
};
|