Skip to content

Commit d368dc1

Browse files
committed
Don't fail build if husky can't be installed
1 parent 5287661 commit d368dc1

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.vscode/tasks.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@
1313
"tasks": [
1414
{
1515
"label": ".Net Build",
16-
"type": "dotnet",
17-
"task": "build",
16+
"type": "process",
17+
"command": "dotnet",
18+
"args": [
19+
"build",
20+
"${workspaceFolder}",
21+
"--verbosity=diagnostic"
22+
],
1823
"group": "build",
19-
"problemMatcher": ["$msCompile"],
24+
"problemMatcher": [
25+
"$msCompile"
26+
],
2027
"presentation": {
2128
"showReuseMessage": false,
2229
"clear": false
@@ -40,7 +47,10 @@
4047
"showReuseMessage": false,
4148
"clear": false
4249
},
43-
"dependsOn": [".Net Build"]
50+
"dependsOn": [
51+
"CSharpier Format",
52+
".Net Build"
53+
]
4454
},
4555
{
4656
"label": "CSharpier Format",

LanguageTags.code-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"xtinct",
6464
"xunit"
6565
],
66-
"dotnet.defaultSolution": "LanguageTags.sln",
66+
"dotnet.defaultSolution": "LanguageTags.slnx",
6767
"files.trimTrailingWhitespace": true,
6868
"files.trimTrailingWhitespaceInRegexAndStrings": false,
6969
"diffEditor.ignoreTrimWhitespace": false,

LanguageTags/LanguageTags.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@
4747
<Exec
4848
Command="dotnet tool restore"
4949
StandardOutputImportance="Low"
50-
StandardErrorImportance="High"
50+
StandardErrorImportance="Low"
51+
ContinueOnError="true"
5152
/>
5253
<Exec
5354
Command="dotnet husky install"
5455
StandardOutputImportance="Low"
55-
StandardErrorImportance="High"
56+
StandardErrorImportance="Low"
5657
WorkingDirectory=".."
58+
ContinueOnError="true"
5759
/>
5860
</Target>
5961
</Project>

0 commit comments

Comments
 (0)