fix(util): fix build issue

This may be caused by ncc not correctly using edModuleInterlop
This commit is contained in:
Federico Grandi
2020-12-06 17:43:05 +01:00
parent 0f070625cd
commit 0f3c8c6996
2 changed files with 23 additions and 7 deletions

View File

@@ -9625,26 +9625,42 @@ function logOutputs() {
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.setOutput = exports.parseBool = exports.log = exports.getInput = exports.outputs = void 0;
const core_1 = __importDefault(__webpack_require__(2186));
const core = __importStar(__webpack_require__(2186));
exports.outputs = {
committed: 'false',
pushed: 'false',
tagged: 'false'
};
function getInput(name) {
return core_1.default.getInput(name);
return core.getInput(name);
}
exports.getInput = getInput;
function log(err, data) {
if (data)
console.log(data);
if (err)
core_1.default.error(err);
core.error(err);
}
exports.log = log;
function parseBool(value) {
@@ -9657,7 +9673,7 @@ function parseBool(value) {
}
exports.parseBool = parseBool;
function setOutput(name, value) {
core_1.default.setOutput(name, value);
core.setOutput(name, value);
}
exports.setOutput = setOutput;
for (const key in exports.outputs)

View File

@@ -1,4 +1,4 @@
import core from '@actions/core'
import * as core from '@actions/core'
export type Input =
| 'add'