keypin 0.31.0 → 0.32.0

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/keypin +2 -1
  2. package/package.json +5 -5
package/bin/keypin CHANGED
@@ -63,7 +63,8 @@ find_binary() {
63
63
  done
64
64
  done
65
65
 
66
- echo "keypin: the package @keypin/cli-$os-$arch isn't installed next to $keypin, so there's no keypin binary to run. npm installs it with keypin as an optional dependency: reinstall keypin without --omit=optional or --no-optional." >&2
66
+ version=$(command sed -n 's/^ *"version": *"\([^"]*\)".*/\1/p' "$keypin/package.json" 2>/dev/null) || version=
67
+ echo "keypin: the package @keypin/cli-$os-$arch isn't installed next to $keypin, so there's no keypin binary to run. npm installs it with keypin as an optional dependency, but skips it with --omit=optional or --no-optional, or when npm's cache is older than this keypin. Reinstall with: npm install -g keypin${version:+@$version} --prefer-online --no-prefer-offline" >&2
67
68
  return 1
68
69
  }
69
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keypin",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/caiopizzol/keypin#readme",
6
6
  "bugs": {
@@ -26,9 +26,9 @@
26
26
  "x64"
27
27
  ],
28
28
  "optionalDependencies": {
29
- "@keypin/cli-darwin-arm64": "0.31.0",
30
- "@keypin/cli-darwin-x64": "0.31.0",
31
- "@keypin/cli-linux-x64": "0.31.0",
32
- "@keypin/cli-linux-arm64": "0.31.0"
29
+ "@keypin/cli-darwin-arm64": "0.32.0",
30
+ "@keypin/cli-darwin-x64": "0.32.0",
31
+ "@keypin/cli-linux-x64": "0.32.0",
32
+ "@keypin/cli-linux-arm64": "0.32.0"
33
33
  }
34
34
  }