chore: build action

This commit is contained in:
2025-09-11 15:22:41 +02:00
parent 568e5abbc3
commit e57810d9d3
11 changed files with 60395 additions and 10 deletions

View File

@@ -1 +1,25 @@
export declare function checkDatapack(rootDir: String, version: String): Promise<void>;
import * as core from '@spyglassmc/core';
export interface ActionOptions {
/**
* If set to true, all errors are reported. If set to false, only the first error is reported
*/
reportAllErrors: boolean;
/**
* If set to true, each error is described, indicating the exact issue. If set to false, only the number of errors in each file is reported
*/
verbose: boolean;
}
export declare class CustomService extends core.Service {
rootDir: string;
options: ActionOptions;
constructor(rootDir: string, version: string, options: ActionOptions);
shutdown(): Promise<void>;
private listFilesByExtension;
private makeFileUrl;
private getFileContent;
private getLineAndColumn;
private getErrorProperties;
checkFile(path: string, lang: string): Promise<boolean>;
checkAllFiles(): Promise<boolean>;
}
export declare function checkDatapack(rootDir: string, version: string, reportAll: boolean, verbose: boolean): Promise<void>;