Fix type errors

This commit is contained in:
Justin Hutchings
2023-01-20 01:43:53 +00:00
parent 237b42ae81
commit d967f286bb
4 changed files with 32 additions and 11 deletions
Generated Vendored
+29 -6
View File
@@ -23887,6 +23887,29 @@ exports["default"] = CondaParser;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (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;
};
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) {
@@ -23900,20 +23923,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const core_1 = __importDefault(__nccwpck_require__(2186));
const github_1 = __importDefault(__nccwpck_require__(5438));
const core = __importStar(__nccwpck_require__(2186));
const github = __importStar(__nccwpck_require__(5438));
const dependency_submission_toolkit_1 = __nccwpck_require__(9810);
const condaParser_1 = __importDefault(__nccwpck_require__(2120));
function run() {
return __awaiter(this, void 0, void 0, function* () {
let manifests = condaParser_1.default.getManifestsFromEnvironmentFiles(condaParser_1.default.searchFiles(core_1.default.getInput('filePath'), core_1.default.getInput('filePattern')));
let manifests = condaParser_1.default.getManifestsFromEnvironmentFiles(condaParser_1.default.searchFiles(core.getInput('filePath'), core.getInput('filePattern')));
let snapshot = new dependency_submission_toolkit_1.Snapshot({
name: "conda-dependency-submission-action",
version: "0.0.1",
url: "https://github.com/jhutchings1/conda-dependency-submission-action",
}, github_1.default.context, {
correlator: `${github_1.default.context.job}`,
id: github_1.default.context.runId.toString()
}, github.context, {
correlator: `${github.context.job}`,
id: github.context.runId.toString()
});
manifests === null || manifests === void 0 ? void 0 : manifests.forEach(manifest => {
snapshot.addManifest(manifest);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,5 +1,5 @@
import core from '@actions/core';
import github from '@actions/github';
import * as core from '@actions/core';
import * as github from '@actions/github';
import {
PackageCache,
-2
View File
@@ -5,8 +5,6 @@
"main": "index.ts",
"scripts": {
"lint": "eslint .",
"base-build": "npm ci && tsc",
"build": "npm run base-build && npm exec -- @vercel/ncc build --source-map lib/src/index.js",
"prepare": "ncc build index.ts -o dist --source-map --license licenses.txt",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"all": "npm run lint && npm run prepare && npm run test"