Repository navigation
|
Testing out husky and the following fails: {
"$schema": "https://alirezanet.github.io/Husky.Net/schema.json",
"tasks": [
{
"name": "validate-renovate-config",
"branch": "main|master",
"cwd": "../src/back-end",
"command": "bash",
"args": [ "npx --yes --package renovate -- renovate-config-validator" ],
"windows": {
"command": "cmd",
"args": [ "npx --yes --package renovate -- renovate-config-validator" ]
}
}
]
} |
Answered by
sommmen
Mar 20, 2025
Replies: 2 comments 1 reply
|
This seems to work better but no output: {
"$schema": "https://alirezanet.github.io/Husky.Net/schema.json",
"tasks": [
{
"name": "validate-renovate-config",
"branch": "main|master",
"command": "cmd",
"args": ["echo hi"]
}
]
}
|
0 replies
|
This seems to work; {
"$schema": "https://alirezanet.github.io/Husky.Net/schema.json",
"tasks": [
{
"name": "validate-renovate-config",
"branch": "main|master",
"command": "powershell",
"args": ["-Command", "npx --yes --package renovate -- renovate-config-validator"]
}
]
}Not sure why cmd does not :( |
1 reply
Answer selected by
sommmen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems to work;
{ "$schema": "https://alirezanet.github.io/Husky.Net/schema.json", "tasks": [ { "name": "validate-renovate-config", "branch": "main|master", "command": "powershell", "args": ["-Command", "npx --yes --package renovate -- renovate-config-validator"] } ] }Not sure why cmd does not :(