vsts-extension-multivalue-c.../scripts/packageBeta.js

20 строки
572 B
JavaScript
Исходник Обычный вид История

2016-10-10 20:31:22 +03:00
"use strict";
var exec = require("child_process").exec;
2022-04-22 09:50:29 +03:00
var manifest = require("../azure-devops-extension.json");
2016-10-10 20:31:22 +03:00
var extensionId = manifest.id;
// Package extension
2022-04-22 09:50:29 +03:00
var command = `tfx extension create --extension-id ${extensionId}-beta --overrides-file configs/beta.json --manifest-globs azure-devops-extension.json --no-prompt --json`;
2016-10-10 20:31:22 +03:00
exec(command, (error, stdout) => {
if (error) {
console.error(`Could not create package: '${error}'`);
return;
}
let output = JSON.parse(stdout);
console.log(`Package created ${output.path}`);
}
);