@henryqw/pi-deps 0.3.3 → 0.3.5

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.
package/README.md CHANGED
@@ -15,18 +15,6 @@ pi install npm:@henryqw/pi-deps
15
15
 
16
16
  Node 22.19 or newer, Git, and each selected package manager must be available on `PATH` used by Git.
17
17
 
18
- ## Supported managers
19
-
20
- Only current major versions are supported; older majors are not handled and fall back to the lockfile default below.
21
-
22
- | Manager | Command | Lockfile |
23
- | --- | --- | --- |
24
- | npm | `npm ci` | `package-lock.json`, `npm-shrinkwrap.json` |
25
- | pnpm | `pnpm install --frozen-lockfile` | `pnpm-lock.yaml` |
26
- | Yarn | `yarn install --immutable` | `yarn.lock` (Yarn Classic 1.x is not supported) |
27
- | Bun | `bun install --frozen-lockfile` | `bun.lock`, `bun.lockb` |
28
- | uv | `uv sync --locked` | `uv.lock` |
29
-
30
18
  ## Use
31
19
 
32
20
  | Surface | Type | Purpose |
@@ -41,22 +29,14 @@ Creation returns immediately. The hook validates lockfiles synchronously — con
41
29
 
42
30
  Dependency installation may execute repository-controlled build and install scripts. Enable only repositories you trust.
43
31
 
44
- ## Remove
45
-
46
- Disable each opted-in repository before removing package because copied Git hook is self-contained:
47
-
48
- ```text
49
- /deps
50
- ```
51
-
52
- ```bash
53
- pi remove npm:@henryqw/pi-deps
54
- ```
32
+ ## Supported managers
55
33
 
56
- ## Development
34
+ Only current major versions are supported; older majors are not handled and fall back to the lockfile default below.
57
35
 
58
- ```bash
59
- npm test --workspace @henryqw/pi-deps
60
- npm run typecheck --workspace @henryqw/pi-deps
61
- npm run pack:check --workspace @henryqw/pi-deps
62
- ```
36
+ | Manager | Command | Lockfile |
37
+ | --- | --- | --- |
38
+ | npm | `npm ci` | `package-lock.json`, `npm-shrinkwrap.json` |
39
+ | pnpm | `pnpm install --frozen-lockfile` | `pnpm-lock.yaml` |
40
+ | Yarn | `yarn install --immutable` | `yarn.lock` (Yarn Classic 1.x is not supported) |
41
+ | Bun | `bun install --frozen-lockfile` | `bun.lock`, `bun.lockb` |
42
+ | uv | `uv sync --locked` | `uv.lock` |
@@ -1,3 +1,4 @@
1
+ import { setTimeout as delay } from "node:timers/promises";
1
2
  import { randomUUID } from "node:crypto";
2
3
  import { link, mkdir, readFile, rename, rm, writeFile, chmod } from "node:fs/promises";
3
4
  import { dirname, join, resolve } from "node:path";
@@ -136,7 +137,7 @@ export async function watchDependencyInstallation(
136
137
  }
137
138
  const deadline = Date.now() + waitTimeoutMs;
138
139
  while (status.state === "running" && Date.now() < deadline) {
139
- await new Promise((resolveSleep) => setTimeout(resolveSleep, pollMs));
140
+ await delay(pollMs);
140
141
  status = await readStatus();
141
142
  if (!status) {
142
143
  ctx.ui.setWidget(widgetKey, undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-deps",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Prepare Node and uv dependencies when opted-in Git worktrees are created.",
5
5
  "keywords": [
6
6
  "pi-package",