Skip to content

Commit

Permalink
chore(scripts): fix install and remove deps (#2516)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Jan 11, 2024
1 parent d8dc933 commit f268885
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 147 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,11 @@
"eslint-plugin-unused-imports": "3.0.0",
"eslint-plugin-yml": "1.11.0",
"husky": "8.0.3",
"js-yaml": "4.1.0",
"json": "11.0.0",
"lint-staged": "15.2.0",
"mustache": "4.2.0",
"pinst": "3.0.0",
"prettier": "3.1.1",
"prettier-plugin-java": "2.5.0",
"renovate-config-algolia": "2.1.10",
"typescript": "5.3.3"
"renovate-config-algolia": "2.1.10"
},
"engines": {
"node": "^20.0.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ _list_clients_for_language() {
if [[ $1 == "all" ]]; then
_list_clients
else
echo "all $(cat $ROOT/config/clients.config.json | jq --arg lang "$1" 'with_entries(select(.key == $lang)) | .[] | .clients')"
echo "all $(cat $ROOT/config/clients.config.json | jq -r --arg lang "$1" 'with_entries(select(.key == $lang)) | .[].clients | if (.[0] | type == "object") then .[].name else .[] end')"
fi
}

_list_clients() {
echo "all $(cat $ROOT/config/clients.config.json | jq --arg lang "$1" 'with_entries(select(.key == "java")) | .[] | .clients')"
echo "all $(cat $ROOT/config/clients.config.json | jq -r 'with_entries(select(.key == "java")) | .[] | .clients[]')"
}

_apic_lang_client_complete() {
Expand Down
18 changes: 16 additions & 2 deletions scripts/knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
"workspaces": {
".": {
"entry": [
"**/index.ts"
"cli/index.ts",
"ci/codegen/cleanGeneratedBranch.ts",
"ci/codegen/pushGeneratedCode.ts",
"ci/codegen/spreadGeneration.ts",
"ci/codegen/upsertGenerationComment.ts",
"ci/actions/restore-artifacts/src/index.ts",
"ci/githubActions/createMatrix.ts",
"ci/githubActions/setRunVariables.ts",
"configReplacer.cjs",
"husky/pre-commit.mjs",
"release/createReleasePR.ts"
],
"project": [
"**/*.test.ts",
Expand All @@ -12,5 +22,9 @@
"**/*.mjs"
]
}
}
},
"ignore": [
"dist",
"**/builddir"
]
}
Loading

0 comments on commit f268885

Please sign in to comment.