Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion api/vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"public": true,
"redirects": [
{
"source": "/",
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@
"chalk": "^4.1.2",
"commander": "^9.4.1",
"dashify": "^2.0.0",
"glob": "^8.0.3",
"glob": "^13.0.6",
"snake-case": "^3.0.4"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"del": "^6.1.1"
}
}
4 changes: 2 additions & 2 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-console */
import { program, Command } from 'commander'
import * as path from 'path'
import { glob } from 'glob'
import { sync as globSync } from 'glob'
import { readFileSync, promises as fsPromises } from 'fs'
import { loadConfig, Config } from '@svgr/core'
import { fileCommand } from './fileCommand'
Expand Down Expand Up @@ -178,7 +178,7 @@ program.parse(process.argv)
async function run() {
const errors: string[] = []
const filenames = program.args.reduce((globbed, input) => {
let files = glob.sync(input)
let files = globSync(input)
if (!files.length) files = [input]
return [...globbed, ...files]
}, [] as string[])
Expand Down
91 changes: 68 additions & 23 deletions pnpm-lock.yaml

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