fix: broken lints

pull/199/head
Webber 2022-11-03 22:42:57 +01:00
parent 698c08cf4e
commit 6d3600e0b8
3 changed files with 1043 additions and 1041 deletions

9
dist/index.js generated vendored
View File

@ -15,9 +15,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next()); step((generator = generator.apply(thisArg, _arguments || [])).next());
}); });
}; };
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
const path_1 = __nccwpck_require__(1017);
const main_1 = __nccwpck_require__(3109); const main_1 = __nccwpck_require__(3109);
const path_1 = __importDefault(__nccwpck_require__(1017));
const post_1 = __nccwpck_require__(95); const post_1 = __nccwpck_require__(95);
/* /*
* GitHub Action can provide multiple executable entrypoints (pre, main, post), * GitHub Action can provide multiple executable entrypoints (pre, main, post),
@ -29,9 +32,9 @@ const post_1 = __nccwpck_require__(95);
* the argv[1] is going to be the full path to the script. * the argv[1] is going to be the full path to the script.
* In case index.js would be marked executable and executed directly without the argv[1] it defaults to "main.js". * In case index.js would be marked executable and executed directly without the argv[1] it defaults to "main.js".
*/ */
function run([_, name = 'main.js']) { function run([, name = 'main.js']) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const script = (0, path_1.basename)(name); const script = path_1.default.basename(name);
switch (script) { switch (script) {
case 'main.js': case 'main.js':
yield (0, main_1.run)(); yield (0, main_1.run)();

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,5 @@
import { basename } from 'path';
import { run as main } from './main'; import { run as main } from './main';
import path from 'path';
import { run as post } from './post'; import { run as post } from './post';
/* /*
@ -13,8 +12,8 @@ import { run as post } from './post';
* the argv[1] is going to be the full path to the script. * the argv[1] is going to be the full path to the script.
* In case index.js would be marked executable and executed directly without the argv[1] it defaults to "main.js". * In case index.js would be marked executable and executed directly without the argv[1] it defaults to "main.js".
*/ */
async function run([_, name = 'main.js']: string[]) { async function run([, name = 'main.js']: string[]) {
const script = basename(name); const script = path.basename(name);
switch (script) { switch (script) {
case 'main.js': case 'main.js':