UNPKG

@storm-software/esbuild

Version:

A package containing `esbuild` utilities for building Storm Software libraries and applications

38 lines (35 loc) 852 B
import { copyAssets } from "./chunk-NVYTS7UE.js"; import { getStopwatch, writeDebug } from "./chunk-CKFE6AY5.js"; import { init_esm_shims } from "./chunk-5OCVL4NC.js"; // src/assets.ts init_esm_shims(); async function copyBuildAssets(context) { if (!context.result?.errors.length && context.options.assets?.length) { writeDebug( ` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`, context.workspaceConfig ); const stopwatch = getStopwatch(`${context.options.name} asset copy`); await copyAssets( context.workspaceConfig, context.options.assets ?? [], context.outputPath, context.options.projectRoot, context.sourceRoot, true, false ); stopwatch(); } return context; } export { copyBuildAssets };