Skip to content

Commit

Permalink
fix: relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed May 9, 2024
1 parent 2871889 commit d60a1cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25623,12 +25623,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = void 0;
const core = __importStar(__nccwpck_require__(9093));
const ExtensionFilter_1 = __nccwpck_require__(1919);
const texts_1 = __nccwpck_require__(974);
const FileProcessor_1 = __nccwpck_require__(5990);
const path_1 = __importDefault(__nccwpck_require__(1017));
/**
* The main function for the action.
* @param {InputParams} inputParams - The input parameters for the action.
Expand All @@ -25638,7 +25642,7 @@ function run(inputParams) {
const { rootDir, extension, envVars, ignoredDir, includeSubDir, encodings } = inputParams;
core.debug((0, texts_1.SEARCH_TEXT)(extension, rootDir));
const files = (0, ExtensionFilter_1.getFilesByExtension)({
dir: rootDir,
dir: path_1.default.join(rootDir),
extension,
ignoredDir,
includeSubDir
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { getFilesByExtension } from "./utils/ExtensionFilter";
import { InputParams } from "./utils/VariableManager";
import { SEARCH_TEXT } from "./utils/texts";
import { processFiles } from "./utils/FileProcessor";
import path from "path";

/**
* The main function for the action.
Expand All @@ -14,7 +15,7 @@ export function run(inputParams: InputParams): void {
inputParams;
core.debug(SEARCH_TEXT(extension, rootDir));
const files: string[] = getFilesByExtension({
dir: rootDir,
dir: path.join(rootDir),
extension,
ignoredDir,
includeSubDir
Expand Down

0 comments on commit d60a1cf

Please sign in to comment.