Skip to content

Commit 4b99f14

Browse files
committed
build: fix issues with project build
1 parent da64807 commit 4b99f14

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"execa": "^7.2.0",
4242
"fast-glob": "^3.3.2",
4343
"fdir": "^6.1.1",
44-
"glob": "^10.3.10",
44+
"glob": "^11.0.0",
4545
"hereby": "^1.8.8",
4646
"mocha": "^10.2.0",
47-
"rimraf": "^5.0.5",
47+
"rimraf": "^6.0.1",
4848
"sinon": "^17.0.1",
4949
"snap-shot-it": "^7.9.10",
5050
"typescript": "^5.2.2"

src/benchmark/suites/regression/async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Glob {
2828
const glob = await utils.importAndMeasure(utils.importPreviousFastGlob);
2929

3030
// @ts-expect-error remove this line after the next major release.
31-
await this.#measure(() => glob(this.#pattern, this.#options));
31+
await this.#measure(() => glob.glob(this.#pattern, this.#options));
3232
}
3333

3434
public async measureCurrentVersion(): Promise<void> {

src/benchmark/utils.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import { performance } from 'node:perf_hooks';
22

33
import * as bencho from 'bencho';
44

5+
import type * as currentVersion from '..';
6+
import type * as previousVersion from 'fast-glob';
7+
import type * as glob from 'glob';
8+
import type * as fdir from 'fdir';
9+
510
export function timeStart(): number {
611
return performance.now();
712
}
@@ -14,23 +19,19 @@ export function getMemory(): number {
1419
return process.memoryUsage().heapUsed;
1520
}
1621

17-
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
18-
export function importCurrentFastGlob(): Promise<typeof import('..')> {
22+
export function importCurrentFastGlob(): Promise<typeof currentVersion> {
1923
return import('..');
2024
}
2125

22-
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
23-
export function importPreviousFastGlob(): Promise<typeof import('fast-glob')> {
26+
export function importPreviousFastGlob(): Promise<typeof previousVersion> {
2427
return import('fast-glob');
2528
}
2629

27-
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
28-
export function importNodeGlob(): Promise<typeof import('glob')> {
30+
export function importNodeGlob(): Promise<typeof glob> {
2931
return import('glob');
3032
}
3133

32-
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
33-
export function importFdir(): Promise<typeof import('fdir')> {
34+
export function importFdir(): Promise<typeof fdir> {
3435
return import('fdir');
3536
}
3637

src/tests/e2e/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as assert from 'node:assert';
22

3-
import * as snapshotIt from 'snap-shot-it';
3+
import snapshotIt from 'snap-shot-it';
44

55
import * as fg from '../..';
66

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
"forceConsistentCasingInFileNames": true,
2323
"verbatimModuleSyntax": false,
24+
"esModuleInterop": true,
2425

2526
"downlevelIteration": true,
2627
"declaration": true,

0 commit comments

Comments
 (0)