Skip to content

Commit

Permalink
fix: do not use del in generate-icons.js script
Browse files Browse the repository at this point in the history
  • Loading branch information
Okhelifi committed Jan 20, 2025
1 parent a6d2709 commit 67a8d6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/generate-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const del = require('del');
const fs = require('fs-extra');
const rawGlob = require('glob');
const util = require('util');
Expand Down Expand Up @@ -54,7 +53,7 @@ async function run() {
iconsByShape[category][id] = svgContent;
}

await del('assets/icons');
await fs.rm('assets/icons', { recursive: true, force: true });
await fs.mkdir('assets/icons', { recursive: true });
// Generate shapes
for (const [shapeId, icons] of Object.entries(iconsByShape)) {
Expand Down

0 comments on commit 67a8d6a

Please sign in to comment.