mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* feat: pmg publish to npm * feat: add github action for publishing to npm * Update publish/npm/install.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> * Update .github/workflows/publish-npm.yml Co-authored-by: Omkar Phansopkar <omkarphansopkar@gmail.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> * refactor: define constants * refactor: improve npm package reliability with removing dynamic handlers and better error handling and validation * fix: publish-npm workflow * Update publish/npm/test.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> * refactor(npm-workflow): use a more portable loop construct * refactor: remove version field from package.json * feat: use os.tmpdir() with mkdtempSync for cleaner temp directory handling * fix: add redirect limit and cleanup to prevent infinite redirects and resource leaks * remove test.js for npm publisher pack * chore: test cmd cleanup --------- Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Omkar Phansopkar <omkarphansopkar@gmail.com>
58 lines
1.1 KiB
JSON
58 lines
1.1 KiB
JSON
{
|
|
"name": "@safedep/pmg",
|
|
"description": "PMG protects developers from getting compromised by malicious packages",
|
|
"main": "bin/pmg.js",
|
|
"bin": {
|
|
"pmg": "bin/pmg.js"
|
|
},
|
|
"scripts": {
|
|
"preinstall": "echo \"Installing PMG binary for your platform...\"",
|
|
"postinstall": "node install.js"
|
|
},
|
|
"keywords": [
|
|
"security",
|
|
"package-manager",
|
|
"malicious-packages",
|
|
"npm",
|
|
"cli",
|
|
"vulnerability",
|
|
"dependency-security",
|
|
"safedep"
|
|
],
|
|
"author": "SafeDep <devops@safedep.io>",
|
|
"license": "Apache-2.0",
|
|
"homepage": "https://github.com/safedep/pmg#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/safedep/pmg.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/safedep/pmg/issues"
|
|
},
|
|
"engines": {
|
|
"node": ">=14"
|
|
},
|
|
"os": [
|
|
"darwin",
|
|
"linux",
|
|
"win32"
|
|
],
|
|
"cpu": [
|
|
"x64",
|
|
"arm64",
|
|
"ia32"
|
|
],
|
|
"files": [
|
|
"bin/pmg.js",
|
|
"install.js",
|
|
"config.js",
|
|
"test.js",
|
|
"README.md",
|
|
".npmignore"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"dependencies": {}
|
|
}
|