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.
20 lines (19 loc) • 1.08 kB
TypeScript
import Zip from 'adm-zip';
import type { DynatraceApplicationManifest } from '../../interfaces';
import type { ResolvedCliOptions } from '../config/cli-options';
import type { FileMap } from '../../create-project/utils/file-map';
/** Archives the given directory + manifest and setting files into a zip file */
export declare function archive(
/** The directory that should be archived */
directory: string,
/** The Dynatrace manifest file */
manifest: DynatraceApplicationManifest, options: ResolvedCliOptions): Promise<Zip>;
/**
* Read and validate all .json files in the specified settings folder.
* This function throws if a .json file contains invalid JSON and logs a warning if the settings folder contains non-JSON files.
* @param archiveFiles current archive files
* @param root root of the project
* @param settingsPath relative path from the root of the project to the specified settings folder
* @returns returns the archiveFiles with setting files added.
*/
export declare function addSettingFiles(archiveFiles: FileMap, fullSettingsPath: string): FileMap;