Skip to content

Instantly share code, notes, and snippets.

@gmcculloug
Last active August 11, 2020 20:00
Show Gist options
  • Save gmcculloug/b4676879d7db32de52223270b4e8491c to your computer and use it in GitHub Desktop.
Save gmcculloug/b4676879d7db32de52223270b4e8491c to your computer and use it in GitHub Desktop.
# Catalog UI manifest
jq --arg prefix services-automation-services-catalog/catalog:ui/ -r '[ [ .. | .resolved? | select(type == "string") ] | .[] | sub("^.*/";""+$prefix+"npmjs-") ] | unique | sort []' package-lock.json
# Approval UI manifest
jq --arg prefix services-automation-services-catalog/approval:ui/ -r '[ [ .. | .resolved? | select(type == "string") ] | .[] | sub("^.*/";""+$prefix+"npmjs-") ] | unique | sort []' package-lock.json
# Sources UI manifest
jq --arg prefix services-sources/sources:ui/ -r '[ [ .. | .resolved? | select(type == "string") ] | .[] | sub("^.*/";""+$prefix+"npmjs-") ] | unique | sort []' package-lock.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment