Skip to content

Commit 0f3c8c6

Browse files
committed
fix(util): fix build issue
This may be caused by ncc not correctly using edModuleInterlop
1 parent 0f07062 commit 0f3c8c6

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

lib/index.js

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9625,26 +9625,42 @@ function logOutputs() {
96259625

96269626
"use strict";
96279627

9628-
var __importDefault = (this && this.__importDefault) || function (mod) {
9629-
return (mod && mod.__esModule) ? mod : { "default": mod };
9628+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9629+
if (k2 === undefined) k2 = k;
9630+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9631+
}) : (function(o, m, k, k2) {
9632+
if (k2 === undefined) k2 = k;
9633+
o[k2] = m[k];
9634+
}));
9635+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
9636+
Object.defineProperty(o, "default", { enumerable: true, value: v });
9637+
}) : function(o, v) {
9638+
o["default"] = v;
9639+
});
9640+
var __importStar = (this && this.__importStar) || function (mod) {
9641+
if (mod && mod.__esModule) return mod;
9642+
var result = {};
9643+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
9644+
__setModuleDefault(result, mod);
9645+
return result;
96309646
};
96319647
Object.defineProperty(exports, "__esModule", ({ value: true }));
96329648
exports.setOutput = exports.parseBool = exports.log = exports.getInput = exports.outputs = void 0;
9633-
const core_1 = __importDefault(__webpack_require__(2186));
9649+
const core = __importStar(__webpack_require__(2186));
96349650
exports.outputs = {
96359651
committed: 'false',
96369652
pushed: 'false',
96379653
tagged: 'false'
96389654
};
96399655
function getInput(name) {
9640-
return core_1.default.getInput(name);
9656+
return core.getInput(name);
96419657
}
96429658
exports.getInput = getInput;
96439659
function log(err, data) {
96449660
if (data)
96459661
console.log(data);
96469662
if (err)
9647-
core_1.default.error(err);
9663+
core.error(err);
96489664
}
96499665
exports.log = log;
96509666
function parseBool(value) {
@@ -9657,7 +9673,7 @@ function parseBool(value) {
96579673
}
96589674
exports.parseBool = parseBool;
96599675
function setOutput(name, value) {
9660-
core_1.default.setOutput(name, value);
9676+
core.setOutput(name, value);
96619677
}
96629678
exports.setOutput = setOutput;
96639679
for (const key in exports.outputs)

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import core from '@actions/core'
1+
import * as core from '@actions/core'
22

33
export type Input =
44
| 'add'

0 commit comments

Comments
 (0)