UNPKG

nwixtoolset

Version:

Node module wrapper around the WIX Toolset executables.

37 lines (36 loc) 1.88 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); const run_1 = require("./run"); const util_1 = require("./util"); /** * Combines multiple .wixobj files into libraries that can be consumed by Light. * For more information, see [Librarian](http://wixtoolset.org/documentation/manual/v3/overview/lit.html). * * @param src The wixobj files to combine. * @param [options] Options for the combiner. */ function lit(src, options = {}) { return __awaiter(this, void 0, void 0, function* () { const args = ["-nologo"]; yield util_1.addPathArgument(args, "-b", options.bind); util_1.addArgument(args, "-bf", options.bindFiles); util_1.addArgument(args, "-loc", options.loc); yield util_1.addPathArgument(args, "-o", options.out); util_1.addArgument(args, "-pedantic", options.pedantic); util_1.addArgument(args, "-ss", options.suppressSchemaValidation); util_1.addArgument(args, "-sv", options.suppressIntermediateValidation); util_1.addCommonArguments(args, options); yield util_1.addPathFile(args, src); return run_1.raw.lit(args, options); }); } exports.lit = lit;