@abapify/adt-config
Loads adt.config.ts (or .json) files describing SAP destinations, auth
plugins, and enabled CLI commands. Used by adt-cli.
Install
bun add @abapify/adt-config
Public API
export type {
Destination,
DestinationInput,
AdtConfig,
AuthPlugin,
AuthTestResult,
ContractsConfig,
ContentTypeMapping,
EnabledEndpoints,
} from '@abapify/adt-config';
export type { LoadedConfig, LoadConfigOptions } from '@abapify/adt-config';
export { loadConfig, defineConfig } from '@abapify/adt-config';
export { defineAuthPlugin } from '@abapify/adt-config';
Usage
// adt.config.ts
import { defineConfig } from '@abapify/adt-config';
export default defineConfig({
destinations: {
BHF: {
type: 'puppeteer',
options: { url: 'https://sap.example.com', client: '100' },
},
},
commands: ['@abapify/adt-atc/commands/atc'],
});
Dependencies
- Consumed by
adt-cli,adt-playwright,adt-puppeteer.