1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-12-07 14:58:04 +00:00

Some web tooling changes

- Switch to tsx from ts-node, fixing issues on Node 20
 - Update rehype
This commit is contained in:
Jonathan Coates
2023-09-18 17:15:03 +01:00
parent b1248e4901
commit 6c8b391dab
5 changed files with 863 additions and 1777 deletions

View File

@@ -67,7 +67,7 @@ val jsxDocs by tasks.registering(cc.tweaked.gradle.NpxExecToDir::class) {
// Output directory. Also defined in src/transform.tsx
output.set(buildDir.resolve("jsxDocs"))
args = listOf("ts-node", "-T", "--esm", "src/transform.tsx")
args = listOf("tsx", "src/transform.tsx")
}
val docWebsite by tasks.registering(Copy::class) {