import { getAppLogger } from '@intlayer/config/logger'; import type { IntlayerConfig } from '@intlayer/types/config'; import { prepareIntlayer } from './prepareIntlayer'; import { getProcessChainCommands } from './utils/getProcessChainCommands'; import { startContentWatcher } from './utils/startContentWatcher'; /** * Explicit override, for any setup the detection below does not recognise: * `INTLAYER_WATCH=true` forces the content watcher on, `INTLAYER_WATCH=false` * forces it off. */ export const INTLAYER_WATCH_ENV_VAR = 'INTLAYER_WATCH'; /** Runtime flags that restart or reload the process on file changes. */ const WATCH_MODE_EXEC_ARGUMENTS = ['--watch', '--watch-path', '--hot']; /** * Environment variables set on the child process by a restarting watcher: * `node --watch` and `ts-node-dev`. */ const WATCH_MODE_ENV_VARS = ['WATCH_REPORT_DEPENDENCIES', 'TS_NODE_DEV']; /** * Package script names that start a dev server (`dev`, `start:dev`, * `dev:api`, `watch`…), matched on the `npm_lifecycle_event` that npm, pnpm, * yarn and bun set for ` run