- {versionInformation.version && (
-
- {versionInformation.version}
-
- )}
+ {versionInformation.type === 'package' &&
+ versionInformation.version && (
+
+ {versionInformation.version}
+
+ )}
{name}
Type: {versionInformation.type}
diff --git a/packages/docusaurus-plugin-debug/src/types.d.ts b/packages/docusaurus-plugin-debug/src/types.d.ts
new file mode 100644
index 000000000000..e21f8108c146
--- /dev/null
+++ b/packages/docusaurus-plugin-debug/src/types.d.ts
@@ -0,0 +1,51 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+///