feat: npmrc min-release-age

This commit is contained in:
Ryan Yin
2026-04-17 16:20:46 +08:00
parent 551020e0e8
commit fb1d8118e3
+3 -4
View File
@@ -1,10 +1,9 @@
{ config, ... }:
{
# make `npm install -g <pkg>` happey
#
# mainly used to install npm packages that updates frequently
# such as opencode, codex, etc.
# 1. make `npm install -g <pkg>` happey
# 2. set min-release-age for security
home.file.".npmrc".text = ''
prefix=${config.home.homeDirectory}/.npm
min-release-age=7
'';
}