budibase/scripts/generatePackageNamesFile.sh

12 lines
220 B
Bash
Raw Normal View History

2023-10-03 09:34:35 +02:00
#!/bin/bash
workspace_info=$(yarn --silent workspaces info)
package_names_file="packageNames.txt"
rm -f $package_names_file
packages=$(echo "$workspace_info" | jq -r 'keys[]')
echo "$packages" > $package_names_file