We need to always include the globals.d.ts otherwise TS complains about .json imports

This commit is contained in:
Fabio Berger
2018-08-02 17:25:18 +02:00
parent 238eef6bae
commit 71a2f2d721

View File

@@ -195,6 +195,7 @@ export async function generateAndUploadDocsAsync(packageName: string, isStaging:
});
// Generate Typedoc JSON file
typeDocExtraFileIncludes.push(path.join(pathToPackage, 'src', 'globals.d.ts'));
const jsonFilePath = path.join(pathToPackage, 'generated_docs', 'index.json');
const projectFiles = typeDocExtraFileIncludes.join(' ');
const cwd = path.join(constants.monorepoRootPath, 'packages', packageName);