File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
packages/plugins/synthetics/src Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ import type { PluginName } from '@dd/core/types';
77export const CONFIG_KEY = 'synthetics' as const ;
88export const PLUGIN_NAME : PluginName = 'datadog-synthetics-plugin' as const ;
99
10- export const API_PREFIX = '_datadog-ci_' ;
11- export const DEFAULT_PORT = 1234 ;
10+ export const API_PREFIX = '_datadog-ci_' as const ;
11+ export const DEFAULT_PORT = 1234 as const ;
Original file line number Diff line number Diff line change 55import { runServer } from '@dd/core/helpers/server' ;
66import type { GlobalContext , GetPlugins , Options } from '@dd/core/types' ;
77import { CONFIG_KEY as ERROR_TRACKING } from '@dd/error-tracking-plugin' ;
8- import { API_PREFIX , CONFIG_KEY , PLUGIN_NAME } from '@dd/synthetics-plugin/constants' ;
9- import type { ServerResponse , SyntheticsOptions } from '@dd/synthetics-plugin/types' ;
10- import { validateOptions } from '@dd/synthetics-plugin/validate' ;
118import chalk from 'chalk' ;
129
10+ import { API_PREFIX , CONFIG_KEY , PLUGIN_NAME } from './constants' ;
11+ import type { ServerResponse , SyntheticsOptions } from './types' ;
12+ import { validateOptions } from './validate' ;
13+
1314export { CONFIG_KEY , PLUGIN_NAME } ;
1415
1516export type types = {
Original file line number Diff line number Diff line change 33// Copyright 2019-Present Datadog, Inc.
44
55import type { Options , Logger , GlobalContext } from '@dd/core/types' ;
6- import { CONFIG_KEY , DEFAULT_PORT } from '@dd/synthetics-plugin/constants' ;
7- import type { SyntheticsOptionsWithDefaults } from '@dd/synthetics-plugin/types' ;
86import chalk from 'chalk' ;
97
8+ import { CONFIG_KEY , DEFAULT_PORT } from './constants' ;
9+ import type { SyntheticsOptionsWithDefaults } from './types' ;
10+
1011export const validateOptions = (
1112 config : Options ,
1213 context : GlobalContext ,
You can’t perform that action at this time.
0 commit comments