guess-js-deps-bash 0.1.59 → 0.1.60

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/guess-js-deps.sh +9 -1
  2. package/package.json +1 -1
package/guess-js-deps.sh CHANGED
@@ -195,8 +195,16 @@ function find_manif_eslint_deps () {
195
195
  local BUF="$DEPS"
196
196
  BUF="¶ ${BUF//$'\n'/ ¶ } ¶"
197
197
  BUF="${BUF//$'\t'/ » }"
198
+
199
+ local ECNP='eslint-config-nodejs-pmb'
198
200
  case "$BUF" in
199
- *'eslint-config-nodejs-pmb '* )
201
+ *"$ECNP "* )
202
+ local PEER_DEPS="$ECNP/test/expectedPeerDependencies.js"
203
+ PEER_DEPS="require('$PEER_DEPS').join('\n')"
204
+ PEER_DEPS="$(nodejs -p "$PEER_DEPS")"
205
+ [ -n "$PEER_DEPS" ] || return 4$(
206
+ echo "E: Failed to detect peer dependencies of $ECNP" >&2)
207
+ DEPS+=$'\n'"$PEER_DEPS"
200
208
  <<<"$SCRIPTS" grep -qoPe '^\s*"elp[ \&"]' && DEPS+=$'\neslint-pretty-pmb'
201
209
  ;;
202
210
  esac
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  { "name": "guess-js-deps-bash",
2
- "version": "0.1.59",
2
+ "version": "0.1.60",
3
3
  "description": "A bash attempt at npm-forgot: Guess JavaScript require() dependencies, detect their versions, compare with package.json.",
4
4
 
5
5
  "keywords": [