| 25 | const paths = require.resolve.paths('') |
| 26 | |
| 27 | export 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 | |
| 48 | export interface PluginManagerOptions { |
| 49 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected