Skip to content

Commit

Permalink
Merge pull request #1602 from adevinta/fix-nested-regex
Browse files Browse the repository at this point in the history
chore(icons): remove nested regex argument
  • Loading branch information
solygambas authored Oct 30, 2023
2 parents 546c729 + fb8dd01 commit a5d0982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/icons/scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import readFile from './utils/readFile.mjs'
import tagify from './utils/tagify.mjs'
import writeFile from './utils/writeFile.mjs'

const main = async (pattern = 'assets/**/*.svg') => {
const main = async () => {
// Clean the output folder before generating icons
const outputDir = path.join(process.cwd(), 'src/icons')

Expand All @@ -21,7 +21,7 @@ const main = async (pattern = 'assets/**/*.svg') => {
fs.unlinkSync(filePath)
})

const files = matchFileRoute(undefined, pattern)
const files = matchFileRoute(undefined, 'assets/*.svg')
const data = new Map()

await Promise.all(
Expand Down

0 comments on commit a5d0982

Please sign in to comment.