UNPKG

@storm-stack/core

Version:

A build toolkit and runtime used by Storm Software in TypeScript applications

49 lines (46 loc) 1.71 kB
import { UserConfig, UserConfigFnObject, UserConfigFnPromise, UserConfigFn, UserConfigExport } from './types/index.js'; import '@babel/core'; import '@babel/types'; import '@storm-stack/types/shared/error'; import '@stryke/types/base'; import 'magic-string'; import '@storm-software/config-tools/types'; import '@stryke/types/configuration'; import 'hookable'; import '@storm-software/build-tools/types'; import '@storm-software/config/types'; import '@storm-software/esbuild/types'; import '@storm-software/unbuild/types'; import 'c12'; import 'esbuild'; import 'unbuild'; import '@deepkit/type'; import './reflection-DTM1oT21.js'; import '@stryke/capnp'; import '@storm-stack/types/shared/log'; import '@stryke/env/get-env-paths'; import '@stryke/types/package-json'; import 'jest-worker'; import 'jiti'; import 'memfs'; import 'unimport'; import './types/tsconfig.js'; import '@stryke/types/tsconfig'; import 'typescript'; import './types/vfs.js'; import 'memfs/lib/volume'; import 'node:fs'; import 'unionfs'; /** * Type helper to make it easier to use storm.config.ts * * @remarks * The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object. */ declare function defineConfig(config: UserConfig): UserConfig; declare function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>; declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject; declare function defineConfig(config: UserConfigFnPromise): UserConfigFnPromise; declare function defineConfig(config: UserConfigFn): UserConfigFn; declare function defineConfig(config: UserConfigExport): UserConfigExport; export { defineConfig };