@sentry/wizard
Version:
Sentry wizard helping you to configure your project
46 lines (45 loc) • 1.78 kB
TypeScript
import type { ProxifiedModule } from 'magicast';
import type { PackageDotJson } from '../utils/package-json';
export type PartialRemixConfig = {
unstable_dev?: boolean;
};
export declare function runRemixReveal(isTS: boolean): void;
export declare function generateServerInstrumentationFile(dsn: string, selectedFeatures: {
performance: boolean;
replay: boolean;
logs: boolean;
}): {
instrumentationFile: string;
instrumentationFileMod: ProxifiedModule<any>;
};
export declare function createServerInstrumentationFile(dsn: string, selectedFeatures: {
performance: boolean;
replay: boolean;
logs: boolean;
}): Promise<string>;
export declare function insertServerInstrumentationFile(dsn: string, selectedFeatures: {
performance: boolean;
replay: boolean;
logs: boolean;
}): Promise<boolean>;
export declare function isRemixV2(packageJson: PackageDotJson): boolean;
export declare function loadRemixConfig(): Promise<PartialRemixConfig>;
export declare function instrumentRootRoute(isTS?: boolean): Promise<void>;
export declare function updateBuildScript(args: {
org: string;
project: string;
url?: string;
isHydrogen: boolean;
}): Promise<void>;
export declare function updateEntryClientMod(originalEntryClientMod: ProxifiedModule<any>, dsn: string, selectedFeatures: {
performance: boolean;
replay: boolean;
logs: boolean;
}): ProxifiedModule<any>;
export declare function initializeSentryOnEntryClient(dsn: string, isTS: boolean, selectedFeatures: {
performance: boolean;
replay: boolean;
logs: boolean;
}): Promise<void>;
export declare function updateStartScript(instrumentationFile: string): Promise<void>;
export declare function instrumentSentryOnEntryServer(isTS: boolean): Promise<void>;