diff --git a/manifest.json b/manifest.json index 2751596..1c5ee96 100644 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "author": "@unbraind", "entry": "./dist/index.js", "priority": 50, - "pm_min_version": "2026.7.20", + "pm_min_version": "2026.7.28", "capabilities": [ "commands", "importers", diff --git a/package.json b/package.json index 378e850..afb9af2 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "prepack": "npm run build", "typecheck": "tsc --noEmit", "check": "npm run typecheck", - "audit:prod": "env -u npm_config_allow_scripts npm audit --omit=dev --ignore-scripts", + "audit:prod": "node --input-type=module -e \"import { spawnSync } from 'node:child_process'; import { devNull } from 'node:os'; const env = { ...process.env, npm_config_userconfig: devNull, NPM_CONFIG_USERCONFIG: devNull }; for (const key of Object.keys(env)) if (key.toLowerCase() === 'npm_config_allow_scripts') delete env[key]; const win = process.platform === 'win32'; const r = spawnSync(win ? 'npm.cmd' : 'npm', ['audit', '--omit=dev', '--ignore-scripts'], { stdio: 'inherit', env, shell: win }); process.exit(r.status ?? 1);\"", "pack:dry-run": "npm pack --dry-run", "changelog": "pm-changelog --pm-root .agents/pm --mode prepend --output CHANGELOG.md --release-version-from-package --since-previous-tag --until-release-tag --item-url-base https://github.com/unbraind/pm-github/blob/main/.agents/pm --respect-item-release", "changelog:full": "pm-changelog --pm-root .agents/pm --mode replace --output CHANGELOG.md --all-release-tags --release-version-from-package --item-url-base https://github.com/unbraind/pm-github/blob/main/.agents/pm --respect-item-release",