MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isDeclaredPackage

Method isDeclaredPackage

src/resolution/types.ts:235–235  ·  view source on GitHub ↗

* Whether `source`, imported from `fromFile`, is a package: one the file's * package.json or an enclosing one declares, a Node built-in, or a * runtime's virtual module (`node:`, `bun:`, `astro:`…). Such an import * never binds to a same-named project module, only to a declaration file *

(source: string, fromFile: string)

Source from the content-addressed store, hash-verified

233 * the project keeps for the package. Supplied by the coordinator.
234 */
235 isDeclaredPackage?(source: string, fromFile: string): boolean;
236 /**
237 * Whether `filePath` (project-relative) is one of the files the index holds.
238 * `fileExists` also answers for a directory and for a file on disk the

Callers 2

resolveFromOwnConfigFunction · 0.80
namesOwnConfigModuleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected