UNPKG

@storm-stack/core

Version:

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

29 lines (25 loc) 1.19 kB
'use strict'; var chunk5E7Z7PEP_cjs = require('./chunk-5E7Z7PEP.cjs'); var chunkA43FUIC2_cjs = require('./chunk-A43FUIC2.cjs'); var types = require('@storm-software/config-tools/types'); // src/commands/finalize/index.ts chunkA43FUIC2_cjs.init_cjs_shims(); async function finalize(context, hooks) { await hooks.callHook("finalize:begin", context).catch((error) => { context.log(types.LogLevelLabel.ERROR, `An error occured while starting the finalize process for the Storm Stack project: ${error.message} ${error.stack ?? ""}`); throw new Error("An error occured while starting the finalize process for the Storm Stack project", { cause: error }); }); await hooks.callHook("finalize:complete", context).catch((error) => { context.log(types.LogLevelLabel.ERROR, `An error occured while finishing the finalize process for the Storm Stack project: ${error.message} ${error.stack ?? ""}`); throw new Error("An error occured while finishing the finalize process for the Storm Stack project", { cause: error }); }); context.vfs[chunk5E7Z7PEP_cjs.__VFS_REVERT__](); } chunkA43FUIC2_cjs.__name(finalize, "finalize"); exports.finalize = finalize;