@file-services/typescript
Advanced tools
Comparing version 8.3.3 to 9.0.0
@@ -1,3 +0,3 @@ | ||
import ts from 'typescript'; | ||
import type { IFileSystemSync, IFileSystemPath } from '@file-services/types'; | ||
import ts from "typescript"; | ||
import type { IFileSystemSync, IFileSystemPath } from "@file-services/types"; | ||
/** | ||
@@ -9,10 +9,10 @@ * Combines all required functionality for parsing config files, | ||
useCaseSensitiveFileNames: boolean; | ||
getCurrentDirectory: IFileSystemSync['cwd']; | ||
directoryExists: IFileSystemSync['directoryExistsSync']; | ||
readDirectory: NonNullable<ts.LanguageServiceHost['readDirectory']>; | ||
getDirectories: NonNullable<ts.ModuleResolutionHost['getDirectories']>; | ||
getScriptVersion: ts.LanguageServiceHost['getScriptVersion']; | ||
dirname: IFileSystemPath['dirname']; | ||
normalize: IFileSystemPath['normalize']; | ||
join: IFileSystemPath['join']; | ||
getCurrentDirectory: IFileSystemSync["cwd"]; | ||
directoryExists: IFileSystemSync["directoryExistsSync"]; | ||
readDirectory: NonNullable<ts.LanguageServiceHost["readDirectory"]>; | ||
getDirectories: NonNullable<ts.ModuleResolutionHost["getDirectories"]>; | ||
getScriptVersion: ts.LanguageServiceHost["getScriptVersion"]; | ||
dirname: IFileSystemPath["dirname"]; | ||
normalize: IFileSystemPath["normalize"]; | ||
join: IFileSystemPath["join"]; | ||
} | ||
@@ -19,0 +19,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export * from './create-host'; | ||
export * from "./create-host"; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@file-services/typescript", | ||
"description": "Helpers for creation of TypeScript hosts", | ||
"version": "8.3.3", | ||
"version": "9.0.0", | ||
"main": "./dist/fs-typescript.cjs", | ||
@@ -19,3 +19,3 @@ "types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@file-services/types": "^8.3.3" | ||
"@file-services/types": "^9.0.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "files": [ |
@@ -47,3 +47,3 @@ # @file-services/typescript | ||
defaultLibsDirectory: string, | ||
customTransformers?: ts.CustomTransformers | ||
customTransformers?: ts.CustomTransformers, | ||
): ts.LanguageServiceHost; | ||
@@ -50,0 +50,0 @@ ``` |
@@ -1,6 +0,6 @@ | ||
import ts from 'typescript'; | ||
import type { IFileSystemSync, IFileSystemPath } from '@file-services/types'; | ||
import ts from "typescript"; | ||
import type { IFileSystemSync, IFileSystemPath } from "@file-services/types"; | ||
const statsNoThrowOptions = { throwIfNoEntry: false } as const; | ||
const UNIX_NEW_LINE = '\n'; | ||
const UNIX_NEW_LINE = "\n"; | ||
const identity = (val: string) => val; | ||
@@ -15,13 +15,13 @@ const toLowerCase = (val: string) => val.toLowerCase(); | ||
useCaseSensitiveFileNames: boolean; | ||
getCurrentDirectory: IFileSystemSync['cwd']; | ||
directoryExists: IFileSystemSync['directoryExistsSync']; | ||
getCurrentDirectory: IFileSystemSync["cwd"]; | ||
directoryExists: IFileSystemSync["directoryExistsSync"]; | ||
readDirectory: NonNullable<ts.LanguageServiceHost['readDirectory']>; | ||
getDirectories: NonNullable<ts.ModuleResolutionHost['getDirectories']>; | ||
readDirectory: NonNullable<ts.LanguageServiceHost["readDirectory"]>; | ||
getDirectories: NonNullable<ts.ModuleResolutionHost["getDirectories"]>; | ||
getScriptVersion: ts.LanguageServiceHost['getScriptVersion']; | ||
getScriptVersion: ts.LanguageServiceHost["getScriptVersion"]; | ||
dirname: IFileSystemPath['dirname']; | ||
normalize: IFileSystemPath['normalize']; | ||
join: IFileSystemPath['join']; | ||
dirname: IFileSystemPath["dirname"]; | ||
normalize: IFileSystemPath["normalize"]; | ||
join: IFileSystemPath["join"]; | ||
} | ||
@@ -94,3 +94,3 @@ | ||
realpathSyncSafe, | ||
directoryExistsSync | ||
directoryExistsSync, | ||
); | ||
@@ -107,3 +107,3 @@ }, | ||
Error.stackTraceLimit = 0; | ||
return readFileSync(filePath, 'utf8'); | ||
return readFileSync(filePath, "utf8"); | ||
} catch { | ||
@@ -145,3 +145,3 @@ return undefined; | ||
defaultLibsDirectory: string, | ||
getCustomTransformers?: () => ts.CustomTransformers | undefined | ||
getCustomTransformers?: () => ts.CustomTransformers | undefined, | ||
): ts.LanguageServiceHost { | ||
@@ -148,0 +148,0 @@ const { readFile, join, useCaseSensitiveFileNames, getNewLine } = baseHost; |
@@ -1,1 +0,1 @@ | ||
export * from './create-host'; | ||
export * from "./create-host"; |
@@ -1,4 +0,4 @@ | ||
import ts from 'typescript'; | ||
import ts from "typescript"; | ||
declare module 'typescript' { | ||
declare module "typescript" { | ||
// needed for custom readDirectory | ||
@@ -15,3 +15,3 @@ export function matchFiles( | ||
realpath: (path: string) => string, | ||
directoryExists: (path: string) => boolean | ||
directoryExists: (path: string) => boolean, | ||
): string[]; | ||
@@ -28,4 +28,4 @@ | ||
options: ts.CompilerOptions | ts.PrinterOptions, | ||
getNewLine?: () => string | ||
getNewLine?: () => string, | ||
): string; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37763
+ Added@file-services/types@9.4.1(transitive)
- Removed@file-services/types@8.3.3(transitive)
Updated@file-services/types@^9.0.0