Skip to content

Commit

Permalink
chore(deps): update dependency glob to v10
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and bchew committed Jul 10, 2023
1 parent 3bbb718 commit 1172054
Show file tree
Hide file tree
Showing 4 changed files with 800 additions and 873 deletions.
244 changes: 86 additions & 158 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jest-dom": "^4.0.3",
"eslint-plugin-testing-library": "^5.11.0",
"glob": "^8.1.0",
"glob": "^10.3.1",
"html-webpack-plugin": "^5.5.3",
"husky": "^8.0.3",
"jest": "^29.5.0",
Expand Down
5 changes: 2 additions & 3 deletions scripts/generateDocs.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const _ = require('lodash');
const fs = require('fs');
const path = require('path');
const { promisify } = require('util');
const reactDocgen = require('react-docgen');
const displayNameHandler = require('react-docgen-displayname-handler').default;
const glob = require('glob');
const { glob } = require('glob');

const handlers = reactDocgen.defaultHandlers.concat(displayNameHandler);

Expand All @@ -13,7 +12,7 @@ const filesToIgnore = ['mocks.jsx', 'spec.jsx', 'test.jsx', 'BlockStyleButtons',
const outputFilePath = path.join(__dirname, '../www/containers/props.json');

(async () => {
const files = _.reject(await promisify(glob)('src/components/**/*.jsx', { cwd: sourcePath }), (filePath) =>
const files = _.reject((await glob('src/components/**/*.jsx', { cwd: sourcePath })).sort(), (filePath) =>
_.some(filesToIgnore, (ignoreFile) => _.includes(filePath, ignoreFile))
);

Expand Down
Loading

0 comments on commit 1172054

Please sign in to comment.