UNPKG

@storm-software/esbuild

Version:

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

26 lines (19 loc) 871 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/tsup.ts var _console = require('@storm-software/config-tools/logger/console'); var _correctpaths = require('@storm-software/config-tools/utilities/correct-paths'); var _tsup = require('@storm-software/tsup'); async function executeTsup(context) { _console.writeDebug.call(void 0, ` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig ); const stopwatch = _console.getStopwatch.call(void 0, `${context.options.name} build`); await _tsup.build.call(void 0, { ...context.options, outDir: context.options.distDir ? _correctpaths.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath, workspaceConfig: context.workspaceConfig }); stopwatch(); return context; } exports.executeTsup = executeTsup;