Fixed lint errors
This commit is contained in:
parent
b63780f39c
commit
0a80b05269
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
@ -1099,6 +1099,7 @@ exports.setOutput = exports.getFilePatterns = exports.jsonOutput = exports.getDi
|
|||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const exec = __importStar(__nccwpck_require__(1514));
|
const exec = __importStar(__nccwpck_require__(1514));
|
||||||
const internal_match_kind_1 = __nccwpck_require__(1063);
|
const internal_match_kind_1 = __nccwpck_require__(1063);
|
||||||
|
const internal_path_helper_1 = __nccwpck_require__(1849);
|
||||||
const internal_pattern_1 = __nccwpck_require__(4536);
|
const internal_pattern_1 = __nccwpck_require__(4536);
|
||||||
const patternHelper = __importStar(__nccwpck_require__(9005));
|
const patternHelper = __importStar(__nccwpck_require__(9005));
|
||||||
const path = __importStar(__nccwpck_require__(1017));
|
const path = __importStar(__nccwpck_require__(1017));
|
||||||
@ -1494,7 +1495,7 @@ const canDiffCommits = ({ cwd, sha1, sha2, diff }) => __awaiter(void 0, void 0,
|
|||||||
});
|
});
|
||||||
exports.canDiffCommits = canDiffCommits;
|
exports.canDiffCommits = canDiffCommits;
|
||||||
const getDirnameMaxDepth = ({ pathStr, dirNamesMaxDepth, excludeRoot }) => {
|
const getDirnameMaxDepth = ({ pathStr, dirNamesMaxDepth, excludeRoot }) => {
|
||||||
const pathArr = pathStr.split(path.sep);
|
const pathArr = (0, internal_path_helper_1.dirname)(pathStr).split(path.sep);
|
||||||
const maxDepth = Math.min(dirNamesMaxDepth || pathArr.length, pathArr.length);
|
const maxDepth = Math.min(dirNamesMaxDepth || pathArr.length, pathArr.length);
|
||||||
let output = pathArr[0];
|
let output = pathArr[0];
|
||||||
for (let i = 1; i < maxDepth; i++) {
|
for (let i = 1; i < maxDepth; i++) {
|
||||||
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -2,7 +2,7 @@
|
|||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import * as exec from '@actions/exec'
|
import * as exec from '@actions/exec'
|
||||||
import {MatchKind} from '@actions/glob/lib/internal-match-kind'
|
import {MatchKind} from '@actions/glob/lib/internal-match-kind'
|
||||||
import { dirname } from "@actions/glob/lib/internal-path-helper";
|
import {dirname} from '@actions/glob/lib/internal-path-helper'
|
||||||
|
|
||||||
import {Pattern} from '@actions/glob/lib/internal-pattern'
|
import {Pattern} from '@actions/glob/lib/internal-pattern'
|
||||||
import * as patternHelper from '@actions/glob/lib/internal-pattern-helper'
|
import * as patternHelper from '@actions/glob/lib/internal-pattern-helper'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user