Skip to content

Commit

Permalink
Update globby usage
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoVictor committed Oct 10, 2022
1 parent 9b3ab4c commit d645e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tsc-paths-replacer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-restricted-syntax */
import { globbySync } from 'globby';
import { sync } from 'globby';
import { readFile, writeFile } from 'node:fs/promises';
import path from 'node:path';

Expand All @@ -26,7 +26,7 @@ function replaceSlashes(text: string) {
}

function getFilesFromPattern(patern: string) {
return globbySync(replaceSlashes(patern), {
return sync(replaceSlashes(patern), {
dot: true,
onlyFiles: true,
});
Expand Down

0 comments on commit d645e08

Please sign in to comment.