@pandablessing/dsh-user-sync 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -430,7 +430,8 @@ export function apply(ctx) {
430
430
  const rt = pnpmRuntime();
431
431
  if (!rt)
432
432
  return json({ ok: false, error: 'E_NO_PNPM' }, 503);
433
- await runCommand(rt.node, [rt.pnpmCjs, 'add', spec], {
433
+ // 新版本刚发布时 pnpm 的 minimumReleaseAge 会拒绝安装,显式放行;同时避免 frozen-lockfile 阻断
434
+ await runCommand(rt.node, [rt.pnpmCjs, 'add', spec, '--config.minimumReleaseAge=0', '--no-frozen-lockfile'], {
434
435
  cwd: paths.profileDir,
435
436
  timeout: 240_000,
436
437
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandablessing/dsh-user-sync",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "DSH用户级配置同步插件,更新需重启DSH",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",