dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
18 lines (17 loc) • 1.07 kB
TypeScript
import type { Metafile } from 'esbuild';
export type AllMetaFiles = {
ui?: string[];
functions?: string[];
actions?: string[];
widgets?: string[];
};
export declare const BUILD_META_FILE_NAME = "build-meta-file.json";
export declare const BUILD_META_FILE_VITE_NAME = "build-meta-file-optimize.json";
/** Writes the passed content to <app-root>/build/meta-file */
export declare function writeBuildMetaInformation(appRoot: string, content: AllMetaFiles, optimize?: boolean): Promise<void>;
/** Reads the content of the build-meta-file.json and returns it. If the file is not present it throws an error. */
export declare function readBuildMetaInformation(appRoot: string, optimize?: boolean): Promise<AllMetaFiles>;
/** Extracts the bundled inputs from all metafiles */
export declare function extractInputsTreeShaken(allMetaFiles: AllMetaFiles): string[];
/** Goes through the outputs of a metafile, ending with .js, and returns the input file paths as a string array */
export declare function extractInputsFromMetaFileBundles(metaFile: Metafile): string[];