Skip to content

Commit

Permalink
fix: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Jul 19, 2024
1 parent c69636b commit 1860518
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type {
ITypeSyncer,
} from './types'
import { createWorkspaceResolverService } from './workspace-resolver'
import * as fsUtils from './fs-utils'

/**
* Starts the TypeSync CLI.
Expand All @@ -24,8 +25,8 @@ export async function startCli() {
injectionMode: InjectionMode.CLASSIC,
}).register({
packageJSONService: asFunction(createPackageJSONFileService).singleton(),
workspaceResolverService: asFunction(
createWorkspaceResolverService,
workspaceResolverService: asFunction(() =>
createWorkspaceResolverService(fsUtils),
).singleton(),
packageSource: asFunction(createPackageSource).singleton(),
configService: asFunction(createConfigService).singleton(),
Expand Down
4 changes: 2 additions & 2 deletions src/workspace-resolver.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'node:path'
import yaml from 'js-yaml'
import * as fsUtils from './fs-utils'
import type * as fsUtils from './fs-utils'
import { IGlobber } from './globber'
import { ensureWorkspacesArray, uniq } from './util'
import type { IPackageFile } from './types'
Expand Down Expand Up @@ -96,7 +96,7 @@ export function createWorkspaceResolverService({
readFileContents,
}: {
readFileContents: typeof fsUtils.readFileContents
} = fsUtils): IWorkspaceResolverService {
}): IWorkspaceResolverService {
return {
getWorkspaces: async (packageJson, root, globber) => {
const workspaces = await getWorkspaces(packageJson, root)
Expand Down

0 comments on commit 1860518

Please sign in to comment.