1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-15 04:30:29 +00:00

Fix command quoting for Windows

Thanks Lupus for finding this. I really need to redo how some of these
commands are run - maybe use npm scripts instead.
This commit is contained in:
Jonathan Coates 2022-06-01 14:33:09 +01:00
parent b91809bfc7
commit 0b6dc25607
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -316,12 +316,13 @@ task jsxDocs(type: Exec, dependsOn: [illuaminateDocs]) {
description = "Post-processes documentation to statically render some dynamic content." description = "Post-processes documentation to statically render some dynamic content."
inputs.files(fileTree("src/web")).withPropertyName("sources") inputs.files(fileTree("src/web")).withPropertyName("sources")
inputs.file("src/generated/export/index.json").withPropertyName("export")
inputs.file("package-lock.json").withPropertyName("package-lock.json") inputs.file("package-lock.json").withPropertyName("package-lock.json")
inputs.file("tsconfig.json").withPropertyName("Typescript config") inputs.file("tsconfig.json").withPropertyName("Typescript config")
inputs.files(fileTree("$buildDir/docs/lua")) inputs.files(fileTree("$buildDir/docs/lua"))
outputs.dir("$buildDir/docs/site") outputs.dir("$buildDir/docs/site")
commandLine mkCommand("'node_modules/.bin/ts-node' --esm src/web/transform.tsx") commandLine mkCommand('"node_modules/.bin/ts-node" --esm src/web/transform.tsx')
} }
task docWebsite(type: Copy, dependsOn: [jsxDocs]) { task docWebsite(type: Copy, dependsOn: [jsxDocs]) {