Skip to content

Commit

Permalink
Moves glob to dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jeramysoucy committed Oct 31, 2024
1 parent 562bc3e commit 4522958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@
"get-port": "^5.0.0",
"getopts": "^2.2.5",
"getos": "^3.1.0",
"glob": "^7.1.2",
"glob-all": "^3.2.1",
"globby": "^11.0.3",
"handlebars": "4.7.7",
Expand Down Expand Up @@ -720,6 +719,7 @@
"find-cypress-specs": "^1.35.1",
"form-data": "^4.0.0",
"geckodriver": "^4.4.2",
"glob": "^7.1.2",
"glob-watcher": "5.0.3",
"gulp": "4.0.2",
"gulp-babel": "^8.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import _, { merge } from 'lodash';
import glob from 'glob';
import globby from 'globby';
import { basename, join, resolve } from 'path';
import { readFileSync } from 'fs';

Expand Down Expand Up @@ -115,8 +115,8 @@ export class SpecDefinitionsService {
}

private loadJSONSpecInDir(dirname: string) {
const generatedFiles = glob.sync(join(dirname, 'generated', '*.json'));
const overrideFiles = glob.sync(join(dirname, 'overrides', '*.json'));
const generatedFiles = globby.sync(join(dirname, 'generated', '*.json'));
const overrideFiles = globby.sync(join(dirname, 'overrides', '*.json'));

return generatedFiles.reduce((acc, file) => {
const overrideFile = overrideFiles.find((f) => basename(f) === basename(file));
Expand Down

0 comments on commit 4522958

Please sign in to comment.