UNPKG

@sentry/wizard

Version:

Sentry wizard helping you to configure your project

23 lines 899 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.findWranglerConfig = void 0; const node_fs_1 = __importDefault(require("node:fs")); const node_path_1 = __importDefault(require("node:path")); /** * Checks if a wrangler config file exists in the project */ function findWranglerConfig() { const possibleConfigs = ['wrangler.jsonc', 'wrangler.json', 'wrangler.toml']; for (const configFile of possibleConfigs) { const configPath = node_path_1.default.join(process.cwd(), configFile); if (node_fs_1.default.existsSync(configPath)) { return configFile; } } return undefined; } exports.findWranglerConfig = findWranglerConfig; //# sourceMappingURL=find-wrangler-config.js.map