mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 14:05:44 +01:00
add ui publishing mechanism for plugins
This commit is contained in:
@@ -21,21 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
const { spawnSync } = require("child_process");
|
||||
const os = require("os");
|
||||
|
||||
const yarnCmd = os.platform() === "win32" ? "yarn.cmd" : "yarn";
|
||||
|
||||
const yarn = args => {
|
||||
const result = spawnSync(yarnCmd, args, { stdio: "inherit" });
|
||||
if (result.error) {
|
||||
console.log("could not start yarn command:", result.error);
|
||||
process.exit(2);
|
||||
} else if (result.status !== 0) {
|
||||
console.log("yarn process ends with status code:", result.status);
|
||||
process.exit(3);
|
||||
}
|
||||
};
|
||||
const { yarn } = require("./yarn");
|
||||
|
||||
const version = v => {
|
||||
yarn(["run", "lerna", "--no-git-tag-version", "--no-push", "version", "--force-publish", "--yes", v]);
|
||||
|
||||
Reference in New Issue
Block a user