import { build as build$1 } from 'vite';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { buildBase } from '../load-config.js';
import 'node:fs';
import 'node:process';

/**
 * vite :: src/cli/build.mjs.
 *
 * Vite-based build/dev tooling for Vettvangur projects.
 *
 * These docs are generated from inline JSDoc in the repo and are intended for contributors.
 *
 * @generated
 * @module vite
 */


const /**
   * Dirname.
   *
   * @generated
   * @example
   * console.log(__dirname)
   */
  __dirname$1 = path.dirname(fileURLToPath(import.meta.url));
const /**
   * Config File.
   *
   * @generated
   * @example
   * console.log(configFile)
   */
  configFile = path.resolve(__dirname$1, '..', 'vite.config.js');

/**
 * Run the build command.
 *
 * @returns Nothing.
 *
 * @example
 * // vite (src/tools/javascript/vite/src/cli/build.mjs)
 * // import { build } from '@vettvangur/vite'
 *
 * await build()
 */
async function build() {
  await build$1({
    configFile,
    logLevel: 'info',
    base: buildBase,
  });
}

export { build as default };
//# sourceMappingURL=build.js.map
