Skip to content

Commit

Permalink
[core] Convert the waterfall module to an internal package (mui#35323)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak authored Feb 8, 2023
1 parent a078bb3 commit 27c8a5a
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ module.exports = {
},
},
{
files: ['scripts/**/*.mjs'],
files: ['scripts/**/*.mjs', 'packages/**/*.mjs'],
rules: {
'import/extensions': ['error', 'ignorePackages'],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-icons-material/builder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import globAsync from 'fast-glob';
import * as svgo from 'svgo';
import { fileURLToPath } from 'url';
import intersection from 'lodash/intersection.js';
import Queue from '../../modules/waterfall/Queue.mjs';
import { Queue } from '@mui/internal-waterfall';

const currentDirectory = fileURLToPath(new URL('.', import.meta.url));

Expand Down
4 changes: 1 addition & 3 deletions packages/mui-icons-material/scripts/download.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import fse from 'fs-extra';
import path from 'path';
import yargs from 'yargs';
import { fileURLToPath } from 'url';
import Queue from '../../../modules/waterfall/Queue.mjs';
import sleep from '../../../modules/waterfall/sleep.mjs';
import retry from '../../../modules/waterfall/retry.mjs';
import { Queue, sleep, retry } from '@mui/internal-waterfall';

const currentDirectory = fileURLToPath(new URL('.', import.meta.url));

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions packages/waterfall/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { default as Queue } from './Queue.mjs';
export { default as retry } from './retry.mjs';
export { default as sleep } from './sleep.mjs';
export { default as waitUntil } from './waitUntil.mjs';
7 changes: 7 additions & 0 deletions packages/waterfall/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "@mui/internal-waterfall",
"version": "1.0.0",
"private": "true",
"type": "module",
"main": "index.mjs"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 27c8a5a

Please sign in to comment.