Skip to content

Commit

Permalink
fix(cli): use correct version of glob
Browse files Browse the repository at this point in the history
  • Loading branch information
Anber committed Dec 7, 2023
1 parent 740e336 commit 3b91afe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .changeset/thirty-doors-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@wyw-in-js/cli': patch
'wyw-in-js': patch
---

CLI didn't work because of the wrong glob version.
1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"devDependencies": {
"@babel/core": "^7.23.5",
"@types/glob": "^7.2.0",
"@types/mkdirp": "^0.5.2",
"@types/normalize-path": "^3.0.0",
"@types/yargs": "^17.0.10",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/wyw-in-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
TransformCacheCollection,
transform,
} from '@wyw-in-js/transform';
import glob from 'glob';
import { globSync } from 'glob';
import mkdirp from 'mkdirp';
import normalize from 'normalize-path';
import yargs from 'yargs';
Expand Down Expand Up @@ -129,7 +129,7 @@ async function processFiles(files: (number | string)[], options: Options) {
const resolvedFiles = files.reduce(
(acc, pattern) => [
...acc,
...glob.sync(pattern.toString(), {
...globSync(pattern.toString(), {
absolute: true,
ignore: options.ignore,
}),
Expand Down
14 changes: 0 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b91afe

Please sign in to comment.