export declare const REQUIRED_NODE_VERSION = "^20.19.0 || >=22.12.0"; /** * Oldest Node.js major release that has not reached end-of-life. Used to warn (not block) * users on EOL versions, for which native deps often stop publishing prebuilt binaries. * Bump when the oldest maintained LTS goes EOL: https://nodejs.org/en/about/previous-releases */ export declare const OLDEST_NON_EOL_NODE_MAJOR = 22; export declare const SERVER_PORT = 3000; export declare const STOREFRONT_PORT = 3001; /** * The TypeScript version needs to pinned because minor versions often * introduce breaking changes. */ export declare const TYPESCRIPT_VERSION = "5.8.2"; /** * Generated migration files import `MigrationInterface`/`QueryRunner` directly from `typeorm`. * pnpm's strict, non-hoisting `node_modules` does not expose `typeorm` (a transitive dep of * `@vendure/core`), so pnpm-scaffolded projects must declare it directly. Must stay equal to the * range `@vendure/core` depends on so pnpm dedupes to a single instance - a mismatch would produce * duplicate TypeORM copies with separate decorator metadata. Enforced by a test in helpers.spec.ts. */ export declare const TYPEORM_VERSION = "^0.3.21"; /** * Vite must be a direct dependency of the scaffolded project because the * generated vite.config.mts imports `vite` directly, and strict * (non-hoisting) package managers like pnpm don't expose transitive deps. * The range tracks @vendure/dashboard's declaration so the scaffold stays * on the same Vite major line as the dashboard (currently v7); the caret * caps at <8.0.0, which is important because Vite 8 ships a Rolldown-based * bundler with breaking changes. */ export declare const VITE_VERSION = "^7.3.1"; /** * `concurrently` runs the generated `dev`/`start` scripts. The major is pinned because * the `:script:*` shorthand expansion (relied on by both the server scripts and the * monorepo root) is a feature whose behaviour could change across majors. */ export declare const CONCURRENTLY_VERSION = "^9.0.0"; export declare const PORT_SCAN_RANGE = 20; /** * Per-attempt timeout for the TCP probe used by `isServerPortInUse`. Guards against * scenarios where a firewall silently drops SYN packets (rather than rejecting them): * without this, the OS-level connect timeout (75s on macOS, ~127s on Linux) multiplied * by `PORT_SCAN_RANGE` could stall the CLI for tens of minutes. */ export declare const SOCKET_TIMEOUT_MS = 2000; /** * How long to wait for the dockerized PostgreSQL container to accept connections. * A first boot runs `initdb`, which alone can take well over 10 seconds on slower * machines, so the budget must comfortably exceed that. */ export declare const PG_READY_MAX_ATTEMPTS = 120; export declare const PG_READY_POLL_INTERVAL_MS = 500; /** * Upper limit on the whole readiness wait. It sits above the attempt budget, because each * `pg_isready` call also takes time, so a slow but healthy first start is not cut short. */ export declare const PG_READY_TIMEOUT_MS = 120000; /** * Budgets for calls to the Docker CLI. A daemon that is up answers in well under a * second, but an unresponsive one (e.g. Docker Desktop's VM stuck on a full disk) * makes every `docker` call hang with no error, so each call needs its own limit. */ export declare const DOCKER_PROBE_TIMEOUT_MS = 10000; /** Total time to wait for the daemon after trying to start Docker. */ export declare const DOCKER_START_WAIT_MS = 60000; /** Pause between daemon checks while waiting for Docker to start. */ export declare const DOCKER_START_POLL_INTERVAL_MS = 1000; /** `docker compose up` may pull the postgres image first, which is slow on some networks. */ export declare const DOCKER_COMPOSE_TIMEOUT_MS: number; /** Short Docker calls: listing and removing old containers, and each `pg_isready` check. */ export declare const DOCKER_COMMAND_TIMEOUT_MS = 10000; /** `docker stop` waits up to 10 seconds for a container to exit before it kills it. */ export declare const DOCKER_STOP_TIMEOUT_MS = 30000; export declare const SCAFFOLD_DELAY_MS = 500; export declare const TIP_INTERVAL_MS = 10000; export declare const CI_PAUSE_BEFORE_CLOSE_MS = 30000; export declare const CI_PAUSE_AFTER_CLOSE_MS = 10000; export declare const NORMAL_PAUSE_BEFORE_CLOSE_MS = 2000; export declare const AUTO_RUN_DELAY_MS = 10000; export declare const DEFAULT_PROJECT_VERSION = "0.1.0"; export declare const TIPS_WHILE_WAITING: string[];