Home
last modified time | relevance | path

Searched refs:packageJson (Results 1 – 20 of 20) sorted by relevance

/third_party/typescript/src/testRunner/unittests/tsserver/
DpackageJsonInfo.ts20 const packageJson: File = { constant
32 host.writeFile(packageJson.path, packageJson.content);
41 host.writeFile(packageJson.path, JSON.stringify({
56 host.deleteFile(packageJson.path);
64 host.writeFile("/src/package.json", packageJson.content);
71 …const { projectService, host } = setup([tsConfig, { path: packageJson.path, content: packageJsonCo…
76 host.writeFile(packageJson.path, packageJson.content);
88 …const { projectService, host } = setup([tsConfig, { path: packageJson.path, content: packageJsonCo…
93 host.writeFile(packageJson.path, packageJson.content);
104 function setup(files: readonly File[] = [tsConfig, packageJson]) {
DautoImportProvider.ts22 const packageJson: File = { constant
37 { path: packageJson.path, content: `{ "dependencies": {} }` },
49 packageJson,
76 …, updateFile } = setup([angularFormsDts, angularFormsPackageJson, tsconfig, packageJson, indexTs]);
104 host.writeFile(packageJson.path, packageJson.content);
113 packageJson,
132 packageJson,
163 host.writeFile(packageJson.path, packageJson.content);
175 packageJson,
202 packageJson,
[all …]
DtypingsInstaller.ts106 const packageJson = { constant
120 const host = createServerHost([file1, tsconfig, packageJson]);
150 const packageJson = { constant
164 const host = createServerHost([file1, packageJson]);
569 const packageJson = { constant
596 … const host = createServerHost([lodashJs, commanderJs, file3dts, packageJson, customTypesMap]);
647 const packageJson = { constant
679 … const host = createServerHost([lodashJs, commanderJs, file3, packageJson, customTypesMap]);
1308 const packageJson = { constant
1342 … const host = createServerHost([file1, packageJson, jquery, cacheConfig, cacheLockConfig]);
[all …]
DexportMapCache.ts2 const packageJson: File = { constant
125 …const host = createServerHost([aTs, bTs, ambientDeclaration, tsconfig, packageJson, mobxPackageJso…
DmoduleSpecifierCache.ts2 const packageJson: File = { constant
127 …eateServerHost([aTs, bTs, cTs, bSymlink, ambientDeclaration, tsconfig, packageJson, mobxPackageJso…
DpartialSemanticServer.ts198 const packageJson: File = { constant
206 … createServerHost([angularFormsDts, angularFormsPackageJson, tsconfig, packageJson, indexTs, libFi…
DcachingFileSystemInformation.ts360 const packageJson: File = getRootedFileOrFolder({ constant
385 const host = createServerHost([app, libFile, tsconfigJson, packageJson]);
/third_party/node/deps/npm/test/lib/commands/
Dci.js19 const packageJson = {
63 'package.json': JSON.stringify(packageJson),
86 'package.json': JSON.stringify(packageJson),
118 ...packageJson,
142 'package.json': JSON.stringify(packageJson),
173 'package.json': JSON.stringify(packageJson),
196 ...packageJson,
/third_party/typescript/tests/baselines/reference/
DimportCallExpressionInUMD5.symbols13 const packageJson = await import(packageName + '/package.json');
14 >packageJson : Symbol(packageJson, Decl(1.ts, 3, 9))
DimportCallExpressionInUMD5.types15 const packageJson = await import(packageName + '/package.json');
16 >packageJson : any
DimportCallExpressionInUMD5.js10 const packageJson = await import(packageName + '/package.json');
56 …const packageJson = yield (_a = packageName + '/package.json', __syncRequire ? Promise.resolve().t…
/third_party/typescript/src/webServer/
DwebServer.ts168 let packageJson: any | undefined;
171 packageJson = await packageJsonResponse.json();
177 const browser = packageJson.browser;
/third_party/typescript/src/typingsInstallerCore/
DtypingsInstaller.ts221 const packageJson = combinePaths(cacheLocation, "package.json"); constant
224 this.log.writeLine(`Trying to find '${packageJson}'...`);
226 …if (this.installTypingHost.fileExists(packageJson) && this.installTypingHost.fileExists(packageLoc…
227 …const npmConfig = JSON.parse(this.installTypingHost.readFile(packageJson)!) as NpmConfig; // TODO:…
230 … this.log.writeLine(`Loaded content of '${packageJson}': ${JSON.stringify(npmConfig)}`);
/third_party/typescript/src/server/
Dproject.ts2173 for (const packageJson of packageJsons) { constant
2174packageJson.dependencies?.forEach((_, dependenyName) => addDependency(dependenyName));
2175packageJson.peerDependencies?.forEach((_, dependencyName) => addDependency(dependencyName));
2192 const packageJson = resolvePackageNameToPackageJson( constant
2198 if (packageJson) {
2199 … const entrypoints = getRootNamesFromPackageJson(packageJson, program, symlinkCache);
2231 … if (packageJson && compilerOptions.allowJs && compilerOptions.maxNodeModuleJsDepth) {
2232 …const entrypoints = getRootNamesFromPackageJson(packageJson, program, symlinkCache, /*allowJs*/ tr…
2250 …function getRootNamesFromPackageJson(packageJson: PackageJsonInfo, program: Program, symlinkCache:…
2252 packageJson,
[all …]
Dsession.ts1381 …const packageJson = getPackageScopeForPath(getNormalizedAbsolutePath(packageDirectory + "/package.… constant
1382 if (!packageJson) return undefined;
1387 packageJson,
/third_party/typescript/src/services/
DstringCompletions.ts491 …const packageJson = readJson(packageJsonPath, host as { readFile: (filename: string) => string | u… constant
492 const typesVersions = (packageJson as any).typesVersions;
701 const packageJson = readJson(packageFile, host); constant
702 const exports = (packageJson as any).exports;
900 for (const packageJson of findPackageJsons(scriptPath, host)) { constant
901 …const typesDir = combinePaths(getDirectoryPath(packageJson), isOhpm(options.packageManagerType) ? …
935 for (const packageJson of findPackageJsons(scriptPath, host)) { constant
936 …const contents = readJson(packageJson, host as { readFile: (filename: string) => string | undefine…
Dutilities.ts3004 let packageJson: string | undefined;
3009 packageJson = findConfigFile(ancestor, (f) => tryFileExists(host, f), packageJsonType);
3010 if (packageJson) {
3014 return packageJson;
3110 for (const packageJson of packageJsons) { constant
3111 … if (packageJson.has(packageName) || packageJson.has(getTypesPackageName(packageName))) {
/third_party/typescript/tests/cases/conformance/dynamicImport/
DimportCallExpressionInUMD5.ts11 const packageJson = await import(packageName + '/package.json'); constant
/third_party/typescript/src/testRunner/unittests/
DmoduleResolution.ts136 … const packageJson = { name: packageJsonFileName, content: JSON.stringify({ typings: fieldRef }) }; constant
138 …name, {}, createModuleResolutionHost(hasDirectoryExists, containingFile, packageJson, moduleFile));
159 …const packageJson = { name: "/node_modules/b/package.json", content: JSON.stringify({ typings }) }; constant
165 …me, {}, createModuleResolutionHost(hasDirectoryExists, containingFile, packageJson, moduleFile, in…
184 … const packageJson = { name: "/a/b/foo/package.json", content: JSON.stringify({ main: "/c/d" }) }; constant
186 ….name, {}, createModuleResolutionHost(hasDirectoryExists, containingFile, packageJson, indexFile));
/third_party/typescript/lib/
DtypingsInstaller.js132171 var packageJson = ts.combinePaths(cacheLocation, "package.json");
132174 this.log.writeLine("Trying to find '".concat(packageJson, "'..."));
132176 …if (this.installTypingHost.fileExists(packageJson) && this.installTypingHost.fileExists(packageLoc…
132177 … var npmConfig = JSON.parse(this.installTypingHost.readFile(packageJson)); // TODO: GH#18217
132180 …this.log.writeLine("Loaded content of '".concat(packageJson, "': ").concat(JSON.stringify(npmConfi…