rev-dep 2.2.0 → 2.2.1

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/bin.js +2 -2
  2. package/package.json +4 -4
package/bin.js CHANGED
@@ -45,8 +45,8 @@ if (packageDir === '') {
45
45
  console.log('https://github.com/jayu/rev-dep/issues')
46
46
  process.exit(1)
47
47
  }
48
-
49
- const binary = path.join(packageDir, 'bin', 'rev-dep')
48
+ const isWin = process.platform === "win32"
49
+ const binary = path.join(packageDir, 'bin', 'rev-dep' + (isWin ? '.exe' : ''))
50
50
 
51
51
  if (!fs.existsSync(binary)) {
52
52
  console.error("Could not locate binary in package directory.")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rev-dep",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Trace imports, detect unused code, clean dependencies — all with a super-fast CLI",
5
5
  "bin": "bin.js",
6
6
  "files": [
@@ -17,9 +17,9 @@
17
17
  "node": ">=18"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@rev-dep/darwin-arm64": "2.2.0",
21
- "@rev-dep/linux-x64": "2.2.0",
22
- "@rev-dep/win32-x64": "2.2.0"
20
+ "@rev-dep/darwin-arm64": "2.2.1",
21
+ "@rev-dep/linux-x64": "2.2.1",
22
+ "@rev-dep/win32-x64": "2.2.1"
23
23
  },
24
24
  "keywords": [
25
25
  "dependency-analysis",