(dir: string)
| 126 | } |
| 127 | |
| 128 | async function readManifest(dir: string): Promise<ImportManifest | null> { |
| 129 | try { |
| 130 | return sanitizeManifest(JSON.parse(await readFile(join(dir, 'manifest.json'), 'utf8'))); |
| 131 | } catch { |
| 132 | return null; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /** Declared string fields of {@link ImportManifest}. `shellEnv` is free-form. */ |
| 137 | const MANIFEST_STRING_FIELDS = [ |
no test coverage detected