aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-02 23:25:18 +0800
committerFabio Berger <me@fabioberger.com>2018-08-02 23:25:18 +0800
commit71a2f2d72172e4138b3d4d40ab6bbee4b90e4cf7 (patch)
tree231a2ac97c79e97b42308c7ce9669f3e570fdc17
parent238eef6bae53fbff9399e6490b1401a3412bd171 (diff)
downloaddexon-sol-tools-71a2f2d72172e4138b3d4d40ab6bbee4b90e4cf7.tar
dexon-sol-tools-71a2f2d72172e4138b3d4d40ab6bbee4b90e4cf7.tar.gz
dexon-sol-tools-71a2f2d72172e4138b3d4d40ab6bbee4b90e4cf7.tar.bz2
dexon-sol-tools-71a2f2d72172e4138b3d4d40ab6bbee4b90e4cf7.tar.lz
dexon-sol-tools-71a2f2d72172e4138b3d4d40ab6bbee4b90e4cf7.tar.xz
dexon-sol-tools-71a2f2d72172e4138b3d4d40ab6bbee4b90e4cf7.tar.zst
dexon-sol-tools-71a2f2d72172e4138b3d4d40ab6bbee4b90e4cf7.zip
We need to always include the globals.d.ts otherwise TS complains about .json imports
-rw-r--r--packages/monorepo-scripts/src/utils/publish_utils.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/utils/publish_utils.ts b/packages/monorepo-scripts/src/utils/publish_utils.ts
index 01d44a369..3cdd2c4fb 100644
--- a/packages/monorepo-scripts/src/utils/publish_utils.ts
+++ b/packages/monorepo-scripts/src/utils/publish_utils.ts
@@ -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);