@vltpkg/which 0.0.0-0.1730239248325 → 0.0.0-2

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/README.md +13 -8
  2. package/package.json +19 -12
package/README.md CHANGED
@@ -1,15 +1,20 @@
1
- # `@vltpkg/which`
1
+ ![which](https://github.com/user-attachments/assets/93b29348-69b9-4d95-a80f-f6044ba5c17c)
2
+
3
+ # @vltpkg/which
2
4
 
3
5
  Like the unix `which` utility.
4
6
 
5
- Finds the first instance of a specified executable in the PATH
6
- environment variable. Does not cache the results, so `hash -r` is not
7
- needed when the PATH changes.
7
+ **[Usage](#usage)**
8
+ ·
9
+ **[Options](#options)**
10
+
11
+ ## Overview
12
+
13
+ Finds the first instance of a specified executable in the PATH environment variable. Does not cache the results, so `hash -r` is not needed when the PATH changes.
8
14
 
9
- Port of the [`which`](http://npm.im/which) to a TypeScript hybrid
10
- module.
15
+ Port of the [`which`](http://npm.im/which) to a TypeScript hybrid module.
11
16
 
12
- ## USAGE
17
+ ## Usage
13
18
 
14
19
  ```js
15
20
  import { which, whichSync } from '@vltpkg/which'
@@ -32,7 +37,7 @@ const resolvedOrNull = whichSync('node', { nothrow: true })
32
37
  await which('node', { path: someOtherPath, pathExt: somePathExt })
33
38
  ```
34
39
 
35
- ## OPTIONS
40
+ ## Options
36
41
 
37
42
  You may pass an options object as the second argument.
38
43
 
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@vltpkg/which",
3
3
  "description": "Find the first executable in the path (TS port of 'which')",
4
- "version": "0.0.0-0.1730239248325",
4
+ "version": "0.0.0-2",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/vltpkg/vltpkg.git",
8
+ "directory": "src/which"
9
+ },
5
10
  "tshy": {
6
11
  "selfLink": false,
12
+ "liveDev": true,
7
13
  "dialects": [
8
14
  "esm"
9
15
  ],
@@ -16,19 +22,20 @@
16
22
  "isexe": "^3.1.1"
17
23
  },
18
24
  "devDependencies": {
19
- "@eslint/js": "^9.8.0",
25
+ "@eslint/js": "^9.20.0",
20
26
  "@types/eslint__js": "^8.42.3",
21
- "@types/node": "^22.4.1",
22
- "eslint": "^9.8.0",
23
- "prettier": "^3.3.2",
24
- "tap": "^21.0.1",
27
+ "@types/node": "^22.13.1",
28
+ "eslint": "^9.20.0",
29
+ "prettier": "^3.4.2",
30
+ "tap": "^21.1.0",
25
31
  "tshy": "^3.0.2",
26
- "typescript": "^5.5.4",
27
- "typescript-eslint": "^8.0.1"
32
+ "typedoc": "0.27.6",
33
+ "typescript": "5.7.3",
34
+ "typescript-eslint": "^8.23.0"
28
35
  },
29
36
  "license": "ISC",
30
37
  "engines": {
31
- "node": "20 || >=22"
38
+ "node": ">=22"
32
39
  },
33
40
  "tap": {
34
41
  "extends": "../../tap-config.yaml"
@@ -53,9 +60,9 @@
53
60
  "format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
54
61
  "lint": "eslint . --fix",
55
62
  "lint:check": "eslint .",
56
- "presnap": "tshy",
57
63
  "snap": "tap",
58
- "pretest": "tshy",
59
- "test": "tap"
64
+ "test": "tap",
65
+ "posttest": "tsc --noEmit",
66
+ "typecheck": "tsc --noEmit"
60
67
  }
61
68
  }