@meistrari/mise-en-place 2.4.2 → 2.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/mise-en-place",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,7 +51,9 @@ if [ -n "$MEISTRARI_LIBS_LIST" ]; then
51
51
  # Add caret (^) to each library that starts with @meistrari/ (if not already present)
52
52
  # The line `"@meistrari/logger": "2.1.1"` becomes `"@meistrari/logger": "^2.1.1"`
53
53
  # But `"@meistrari/logger": "^2.1.1"` stays as `"^2.1.1"` (no double caret)
54
- jq --indent 4 '(.dependencies // {}, .devDependencies // {}) |= with_entries(if .key | startswith("@meistrari/") and (.value | startswith("^") | not) then .value |= "^" + . else . end)' package.json > package.json.tmp && mv package.json.tmp package.json
54
+ ADD_CARET_JQ='with_entries(if .key | startswith("@meistrari/") then .value |= (if startswith("^") then . else "^" + . end) else . end)'
55
+ jq --indent 4 "if .dependencies then .dependencies |= $ADD_CARET_JQ else . end" package.json > package.json.tmp && mv package.json.tmp package.json
56
+ jq --indent 4 "if .devDependencies then .devDependencies |= $ADD_CARET_JQ else . end" package.json > package.json.tmp && mv package.json.tmp package.json
55
57
 
56
58
  MEISTRARI_LIBS_LIST_LOCAL_DIR=$(jq -r "$JQ_EXPRESSION" package.json 2>/dev/null | sort -u)
57
59