Lines 1-21javascript
1import { Command } from 'commander';
2import { spawn, execFileSync } from 'node:child_process';
3import { wranglerArgs, wranglerCommand, wranglerHint } from '../lib/wrangler.js';
HighCross File Remote Execution Context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/commands/deploy.jsView on unpkg · L1 4import { existsSync, mkdirSync, readFileSync, writeFileSync, chmodSync, closeSync, constants as fsConstants, fchmodSync, fstatSync, fsyncSync, lstatSync, openSync, readdirSync, renameSync, statSync, unlinkSync, } from 'node:fs';
5import { resolve, join, basename } from 'node:path';
6import { randomBytes } from 'node:crypto';
7import chalk from 'chalk';
8import { loadConfigSafe } from '../lib/load-config.js';
9import { resolveRateLimitBindings } from '../lib/rate-limit-bindings.js';
10import { buildRouteName, detectExports, generateFunctionRegistry, scanFunctions, validateRouteNames, } from '../lib/function-registry.js';
11import { extractDatabases, generateTempWranglerToml, isSafeWorkerBindingName, mergePluginTables, RUNTIME_PROCESS_ENV_COMPATIBILITY_FLAGS, } from '../lib/deploy-shared.js';
12import { buildSnapshot, loadSnapshot, saveSnapshot, detectDestructiveChanges, filterAutoPassChanges, handleDestructiveChanges, resetLocalDoState, detectProviderChanges, detectAuthProviderChange, } from '../lib/schema-check.js';
13import { dumpCurrentData, restoreToNewProvider, promptMigration, } from '../lib/migrator.js';
14import { isCliStructuredError, raiseCliError, raiseNeedsInput } from '../lib/agent-contract.js';
15import { resolveOptionalServiceKey, resolveServiceKey as resolveServiceKeyFromOptions, } from '../lib/resolve-options.js';
16import { parseDevVars, parseEnvFile } from '../lib/dev-sidecar.js';
17import { ensureCloudflareAuth, ensureWranglerToml, resolveApiToken } from '../lib/cf-auth.js';
18import { spin } from '../lib/spinner.js';
19import { isJson, isNonInteractive, isQuiet } from '../lib/cli-context.js';
20import { promptConfirm } from '../lib/prompts.js';
21import { cleanupLegacyTurnstileWidgets, finalizeTurnstileProvision, injectCaptchaSiteKey, provisionTurnstile, } from '../lib/turnstile-provision.js';