@gql.tada/internal
Advanced tools
Comparing version 0.2.2 to 0.2.3-canary-763d7d4eac1ec1c726c1b7d0d1557f1c439e862e
# @gql.tada/internal | ||
## 0.2.3-canary-763d7d4eac1ec1c726c1b7d0d1557f1c439e862e | ||
### Patch Changes | ||
- ⚠️ Fix ESM build output file to be properly loadable | ||
Submitted by [@kitten](https://github.com/kitten) (See [#247](https://github.com/0no-co/gql.tada/pull/247)) | ||
- ⚠️ Fix resolving `tsconfig.json`' `extends` option | ||
Submitted by [@kitten](https://github.com/kitten) (See [#251](https://github.com/0no-co/gql.tada/pull/251)) | ||
## 0.2.2 | ||
@@ -4,0 +13,0 @@ |
@@ -1,45 +0,5 @@ | ||
import * as typescript from 'typescript'; | ||
import { | ||
CompilerHost, | ||
ScriptTarget, | ||
CreateSourceFileOptions, | ||
ResolvedModule, | ||
Diagnostic, | ||
} from 'typescript'; | ||
import { IntrospectionQuery, GraphQLSchema } from 'graphql'; | ||
import ts from 'typescript'; | ||
import { TsConfigJson } from 'type-fest'; | ||
declare function normalize(filename: string): string; | ||
/** @internal */ | ||
declare function importModule(host: CompilerHost, id: string): Promise<void>; | ||
/** @internal */ | ||
declare function importLib(host: CompilerHost): Promise<void>; | ||
/** @internal */ | ||
declare function resolveModuleFile(from: string): Promise<string>; | ||
/** @internal */ | ||
type VirtualCompilerHost = ReturnType<typeof createVirtualHost> & CompilerHost; | ||
/** @internal */ | ||
declare const createProgram: (rootNames: string[], host: CompilerHost) => typescript.Program; | ||
/** @internal */ | ||
declare function createVirtualHost(): { | ||
getCanonicalFileName: typeof normalize; | ||
getDefaultLibFileName(): string; | ||
getCurrentDirectory(): '/' | '\\'; | ||
getNewLine(): string; | ||
getModuleResolutionCache(): typescript.ModuleResolutionCache; | ||
useCaseSensitiveFileNames(): true; | ||
fileExists(filename: string): boolean; | ||
directoryExists(directoryName: string): boolean; | ||
writeFile(filename: string, content: Uint8Array | string): void; | ||
getDirectories(directoryName: string): string[]; | ||
readFile(filename: string): string | undefined; | ||
getSourceFile( | ||
filename: string, | ||
languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions | ||
): typescript.SourceFile | undefined; | ||
resolveModuleNames(moduleNames: string[], containingFile: string): (ResolvedModule | undefined)[]; | ||
}; | ||
interface SchemaLoaderResult { | ||
@@ -92,4 +52,4 @@ introspection: IntrospectionQuery; | ||
readonly name: 'TSError'; | ||
readonly diagnostic: Diagnostic; | ||
constructor(diagnostic: Diagnostic); | ||
readonly diagnostic: ts.Diagnostic; | ||
constructor(diagnostic: ts.Diagnostic); | ||
} | ||
@@ -108,12 +68,3 @@ declare class TadaError extends Error { | ||
} | ||
declare const parseConfig: ( | ||
input: Record<string, unknown>, | ||
rootPath?: string | ||
) => { | ||
tadaOutputLocation: string | undefined; | ||
tadaTurboLocation: string | undefined; | ||
tadaPersistedLocation: string | undefined; | ||
schema: SchemaOrigin; | ||
template?: string | undefined; | ||
}; | ||
declare const parseConfig: (input: unknown, rootPath?: string) => GraphQLSPConfig; | ||
@@ -173,9 +124,4 @@ declare const readTSConfigFile: (filePath: string) => Promise<TsConfigJson>; | ||
TadaError, | ||
type VirtualCompilerHost, | ||
createProgram, | ||
createVirtualHost, | ||
findTSConfigFile, | ||
getURLConfig, | ||
importLib, | ||
importModule, | ||
load, | ||
@@ -190,4 +136,3 @@ loadConfig, | ||
readTSConfigFile, | ||
resolveModuleFile, | ||
resolveTypeScriptRootDir, | ||
}; |
{ | ||
"name": "@gql.tada/internal", | ||
"version": "0.2.2", | ||
"version": "0.2.3-canary-763d7d4eac1ec1c726c1b7d0d1557f1c439e862e", | ||
"public": true, | ||
@@ -5,0 +5,0 @@ "description": "Internal logic for gql.tada’s CLI tool and GraphQLSP.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
345949
5821