UNPKG

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.

29 lines (28 loc) 1.55 kB
/** * Transpile app.config.ts from commonJs to ES2021. * @param configFilePath needs to be an absolute path * @returns The dt-app configuration found * @deprecated Use _ExtractDtAppConfigFromTs instead * @internal */ export declare function extractDtAppConfigFromTs(root: string, configFilePath: string, tsconfigPath: string, skipTypeCheck: boolean, format?: 'cjs' | 'esm'): Promise<any>; /** * Extracts project dependencies from package.json to be used as external packages during bundling. * * This function reads the package.json file from the specified root directory and returns * a list of all dependencies (both regular and dev dependencies) that should be treated * as external during the build process. Currently only return dependencies when the * format is esm. * * @param format - The module format being used for bundling. When format is not 'esm', an empty array is returned. * @param root - The root directory path where the package.json file is located. * * @returns An array of package names from both dependencies and devDependencies sections * of package.json. Returns an empty array if: * - format is not 'esm' * - package.json cannot be read or parsed * - package.json doesn't exist at the specified location */ export declare function getProjectDependencies(format: 'cjs' | 'esm', root: string): string[]; /** Generates directory name where app.config.js file should be stored */ export declare function generateRandomDirectoryName(filePath: string, dir: string): string;