add string interpolation to key

This commit is contained in:
Aaron Trudeau
2022-01-27 02:14:38 -05:00
parent f8e2231c09
commit 592e9599d3

View File

@@ -61,7 +61,7 @@ if [ "$PACKAGE_MODE" = "true" ]; then
jq \
--arg packageName "$PACKAGE_NAME" \
--arg projectPath "$UNITY_PROJECT_PATH" \
'.dependencies += {$packageName: "file\($projectPath)"} | . += {testables: ["\($packageName)"]}' \
'.dependencies += {"\($packageName)": "file:\($projectPath)"} | . += {testables: ["\($packageName)"]}' \
> "$PACKAGE_MANIFEST_PATH"
cat "$PACKAGE_MANIFEST_PATH"