# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version:2
commands:
create_concatenated_package_lock:
description:"Concatenate all package-lock.json files recognized by lerna.js into single file. File is used as checksum source for part of caching key."
parameters:
filename:
type:string
steps:
- run:
name:Combine package-lock.json files to single file
command:npx lerna list -p -a | awk -F packages '{printf "\"packages%s/package-lock.json\" ", $2}' | xargs cat > << parameters.filename >>