chore: configure dependencies and project conf

This commit is contained in:
2025-09-11 13:40:03 +02:00
parent 8b2b009f38
commit 95ab48e66a
12 changed files with 28920 additions and 5 deletions

3
src/check_datapack.ts Normal file
View File

@@ -0,0 +1,3 @@
export async function checkDatapack(rootDir: String, version: String): Promise<void> {
console.log(`Checking datapack in directory ${rootDir} for Minecraft version ${version}`)
}

View File

@@ -1 +1,20 @@
console.log("Hello World!")
import * as core from "@actions/core"
import { checkDatapack } from "./check_datapack.js"
async function run(): Promise<void> {
try {
const rootDir = core.getInput("dir")
let version = core.getInput("version")
if (version === "") {
version = "auto"
}
await checkDatapack(rootDir, version)
} catch (error) {
if (error instanceof Error) {
core.setFailed(error.message)
}
}
}
run()