Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tlouisse committed May 14, 2024
1 parent 7545b5c commit 1cffa68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,6 @@ export class InputDataService {
cfg.extensions.some(ext => glob.endsWith(ext)),
);
}
console.debug('cwd:', startPath);
console.debug('Found files raw:', filteredGlobRes);

console.debug('Found files toPosix:', filteredGlobRes.map(toPosixPath));

if (!filteredGlobRes?.length) {
LogService.warn(`No files found for path '${startPath}'`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export async function optimisedGlob(globOrGlobs, providedOptions = {}) {
const allDirEntsRelativeToCwd = allDirentsRelativeToStartPath.map(dirent => ({
// @ts-expect-error
relativeToCwdPath: toPosixPath(path.join(dirent.parentPath, dirent.name)).replace(
`${options.cwd}/`,
`${toPosixPath(options.cwd)}/`,
'',
),

Expand Down Expand Up @@ -267,10 +267,14 @@ export async function optimisedGlob(globOrGlobs, providedOptions = {}) {
}

if (options.absolute) {
console.debug({ 'options.cwd': options.cwd, filteredPathsBefore: filteredPaths });

Check warning on line 270 in packages-node/providence-analytics/src/program/utils/optimised-glob.js

View workflow job for this annotation

GitHub Actions / Verify changes

Unexpected console statement
filteredPaths = filteredPaths.map(f => toPosixPath(path.join(options.cwd, f)));
console.debug({ filteredPathsAfterAbso: filteredPaths });

Check warning on line 272 in packages-node/providence-analytics/src/program/utils/optimised-glob.js

View workflow job for this annotation

GitHub Actions / Verify changes

Unexpected console statement

if (process.platform === 'win32') {
const driveLetter = path.win32.resolve(options.cwd).slice(0, 1).toUpperCase();
filteredPaths = filteredPaths.map(f => `${driveLetter}:${f}`);
console.debug({ filteredPathsAfterWin32: filteredPaths });

Check warning on line 277 in packages-node/providence-analytics/src/program/utils/optimised-glob.js

View workflow job for this annotation

GitHub Actions / Verify changes

Unexpected console statement
}
}

Expand Down

0 comments on commit 1cffa68

Please sign in to comment.