Skip to content

Commit

Permalink
Move markdownlint-cli2 invocation to package.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jan 22, 2024
1 parent a5e53df commit ac439f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#addin nuget:?package=Cake.DoInDirectory&version=6.0.0
#addin nuget:?package=Cake.Npm&version=2.0.0
#addin nuget:?package=Cake.Npx&version=1.7.0

#nullable enable

Expand Down Expand Up @@ -114,7 +113,7 @@ Task("build-trimming")

Task("build-doc")
.IsDependentOn("restore-doc")
.Does(() => DoInDirectory(doc, () => Npx("markdownlint-cli2")));
.Does(() => DoInDirectory(doc, () => NpmRunScript("build")));

Task("build")
.IsDependentOn("build-trimming")
Expand Down
3 changes: 3 additions & 0 deletions doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
},
"devDependencies": {
"markdownlint-cli2": "0.12.1"
},
"scripts": {
"build": "npx markdownlint-cli2"
}
}

0 comments on commit ac439f9

Please sign in to comment.