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.
- package/guess-js-deps.sh +9 -1
- 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
|
-
*
|
|
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