Skip to content

Commit

Permalink
[core] Make rimraf work after a major update (#37930)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak authored Jul 12, 2023
1 parent 3ad3187 commit 9df27d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev": "next dev",
"deploy": "git push material-ui-docs master:latest",
"export": "rimraf docs/export && next export --threads=3 -o export && yarn build-sw",
"icons": "rimraf public/static/icons/* && node ./scripts/buildIcons.js",
"icons": "rimraf --glob public/static/icons/* && node ./scripts/buildIcons.js",
"start": "next start",
"create-playground": "cpy --cwd=./scripts/ playground.template.tsx ../pages/playground --rename=index.tsx",
"typescript": "tsc -p tsconfig.json && tsc -p scripts/tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"release:publish": "lerna publish from-package --dist-tag latest --contents build",
"release:publish:dry-run": "lerna publish from-package --dist-tag latest --contents build --registry=\"http://localhost:4873/\"",
"release:tag": "node scripts/releaseTag.mjs",
"docs:api": "rimraf ./docs/pages/**/api-docs ./docs/pages/**/api && yarn docs:api:build",
"docs:api": "rimraf --glob ./docs/pages/**/api-docs ./docs/pages/**/api && yarn docs:api:build",
"docs:api:build": "ts-node ./packages/api-docs-builder/buildApi.ts",
"docs:build": "yarn workspace docs build",
"docs:build-sw": "yarn workspace docs build-sw",
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-icons-material/builder.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fse from 'fs-extra';
import yargs from 'yargs';
import path from 'path';
import rimraf from 'rimraf';
import { rimrafSync } from 'rimraf';
import Mustache from 'mustache';
import globAsync from 'fast-glob';
import * as svgo from 'svgo';
Expand Down Expand Up @@ -237,7 +237,7 @@ async function worker({ progress, svgPath, options, renameFilter, template }) {
export async function handler(options) {
const progress = options.disableLog ? () => {} : () => process.stdout.write('.');

rimraf.sync(`${options.outputDir}/*.js`); // Clean old files
rimrafSync(`${options.outputDir}/*.js`, { glob: true }); // Clean old files

let renameFilter = options.renameFilter;
if (typeof renameFilter === 'string') {
Expand Down

0 comments on commit 9df27d0

Please sign in to comment.