fix: broken lints (#199)

* fix: broken lints

* fix broken CI
pull/196/head^2
Webber Takken 2022-11-04 00:27:46 +01:00 committed by GitHub
parent 698c08cf4e
commit 68d1df1d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1044 additions and 1042 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());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const path_1 = __nccwpck_require__(1017);
const main_1 = __nccwpck_require__(3109);
const path_1 = __importDefault(__nccwpck_require__(1017));
const post_1 = __nccwpck_require__(95);
/*
* 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.
* 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* () {
const script = (0, path_1.basename)(name);
const script = path_1.default.basename(name);
switch (script) {
case 'main.js':
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

@ -9,7 +9,7 @@
"scripts": {
"prebuild": "yarn",
"build": "tsc && ncc build lib/index.js --source-map --license licenses.txt",
"lint": "prettier --check \"src/**/*.{js,ts}\" && eslint src/**/*.ts",
"lint": "prettier --check \"src/**/*.{js,ts}\" && eslint src --ext .js,.ts --max-warnings=0",
"format": "prettier --write \"src/**/*.{js,ts}\"",
"test": "jest",
"prepare": "husky install"

View File

@ -1,6 +1,5 @@
import { basename } from 'path';
import { run as main } from './main';
import path from 'path';
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.
* 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[]) {
const script = basename(name);
async function run([, name = 'main.js']: string[]) {
const script = path.basename(name);
switch (script) {
case 'main.js':