Skip to content

Commit

Permalink
Fix glob version and updated api
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Aug 13, 2024
1 parent 417727d commit be59e87
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- fix case sensitive import for schema entities in codegen (#2211)
### Fixed
- Glob sync issue

## [5.2.1] - 2024-08-12
### Changed
Expand Down
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"ejs": "^3.1.10",
"fs-extra": "^11.2.0",
"fuzzy": "^0.1.3",
"glob": "^10.4",
"json5": "^2.2.3",
"node-fetch": "2.7.0",
"rimraf": "^5.0.10",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/commands/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import assert from 'assert';
import {existsSync, lstatSync, readFileSync} from 'fs';
import path from 'path';
import {Command, Flags} from '@oclif/core';
import glob from 'glob';
import {globSync} from 'glob';
import {runWebpack} from '../../controller/build-controller';
import {resolveToAbsolutePath, buildManifestFromLocation, getTsManifest} from '../../utils';

Expand Down Expand Up @@ -50,12 +50,12 @@ export default class Build extends Command {
let buildEntries: Record<string, string> = {
index: defaultEntry,
};
glob.sync(path.join(directory, 'src/test/**/*.test.ts')).forEach((testFile) => {
globSync(path.join(directory, 'src/test/**/*.test.ts')).forEach((testFile) => {
const testName = path.basename(testFile).replace('.ts', '');
buildEntries[`test/${testName}`] = testFile;
});

glob.sync(path.join(directory, 'src/tests/**/*.test.ts')).forEach((testFile) => {
globSync(path.join(directory, 'src/tests/**/*.test.ts')).forEach((testFile) => {
const testName = path.basename(testFile).replace('.ts', '');
buildEntries[`tests/${testName}`] = testFile;
});
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6659,6 +6659,7 @@ __metadata:
ethers: ^5.7.2
fs-extra: ^11.2.0
fuzzy: ^0.1.3
glob: ^10.4
json5: ^2.2.3
node-fetch: 2.7.0
oclif: ^3.15.0
Expand Down Expand Up @@ -13387,7 +13388,7 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^10.3.7":
"glob@npm:^10.3.7, glob@npm:^10.4":
version: 10.4.5
resolution: "glob@npm:10.4.5"
dependencies:
Expand Down

0 comments on commit be59e87

Please sign in to comment.