Skip to content

Commit

Permalink
fix: correct glob path pattern on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zhpenkov authored and Juveniel committed Mar 20, 2024
1 parent 67aae1f commit 04d7358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/shared.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs');
const { resolve, basename } = require('path');
const glob = require('glob');
const { globSync } = require('glob');
const { optimize } = require('svgo');
const svgParser = require('svg-parser');

Expand All @@ -18,7 +18,7 @@ const paths = {
};

function prepareSvg() {
let files = glob.sync( resolve( paths.icons.src, paths.svgGlob ) );
let files = globSync( resolve( paths.icons.src, paths.svgGlob ), { windowsPathsNoEscape: true } );

fs.rmSync( paths.icons.temp, { force: true, recursive: true } );
fs.mkdirSync( paths.icons.temp, { recursive: true } );
Expand Down

0 comments on commit 04d7358

Please sign in to comment.