MCPcopy
hub / github.com/homebridge/homebridge / PackageJSON

Interface PackageJSON

src/pluginManager.ts:27–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25const paths = require.resolve.paths('')
26
27export interface PackageJSON { // incomplete type for package.json (just stuff we use here)
28 name: string
29 version: string
30 keywords?: string[]
31
32 // see https://nodejs.org/dist/latest-v14.x/docs/api/packages.html#packages_package_entry_points
33 exports?: string | Record<string, string | Record<string, string>>
34 main?: string
35
36 /**
37 * When set as module, it marks .js file to be treated as ESM.
38 * See https://nodejs.org/dist/latest-v14.x/docs/api/esm.html#esm_enabling
39 */
40 type?: 'module' | 'commonjs'
41
42 engines?: Record<string, string>
43 dependencies?: Record<string, string>
44 devDependencies?: Record<string, string>
45 peerDependencies?: Record<string, string>
46}
47
48export interface PluginManagerOptions {
49 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected