@ckeditor/ckeditor5-dev-docs 35.0.3 → 35.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,8 @@
8
8
  const { ReflectionKind } = require( 'typedoc' );
9
9
  const { utils } = require( '@ckeditor/typedoc-plugins' );
10
10
 
11
+ const AUGMENTATION_MODULE_REGEXP = /[^\\/]+[\\/]src[\\/]augmentation/;
12
+
11
13
  /**
12
14
  * Validates the output produced by TypeDoc.
13
15
  *
@@ -20,6 +22,11 @@ module.exports = function validate( project, onError ) {
20
22
  const reflections = project.getReflectionsByKind( ReflectionKind.Module );
21
23
 
22
24
  for ( const reflection of reflections ) {
25
+ // The augmentation module does not contain the `@module` annotation. We need to skip it.
26
+ if ( reflection.name.match( AUGMENTATION_MODULE_REGEXP ) ) {
27
+ continue;
28
+ }
29
+
23
30
  const [ packageName, ...moduleName ] = reflection.name.split( '/' );
24
31
 
25
32
  // If there is no module name after the package name, skip it.
@@ -27,7 +34,14 @@ module.exports = function validate( project, onError ) {
27
34
  continue;
28
35
  }
29
36
 
30
- const filePath = utils.getNode( reflection ).fileName;
37
+ const node = utils.getNode( reflection );
38
+
39
+ // Not a ES6 module.
40
+ if ( !node ) {
41
+ continue;
42
+ }
43
+
44
+ const filePath = node.fileName;
31
45
 
32
46
  if ( filePath.endsWith( 'src/augmentation.ts' ) ) {
33
47
  continue;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-dev-docs",
3
- "version": "35.0.3",
3
+ "version": "35.0.5",
4
4
  "description": "Tasks used to build and verify the documentation for CKEditor 5.",
5
5
  "keywords": [],
6
6
  "main": "lib/index.js",
7
7
  "dependencies": {
8
- "@ckeditor/ckeditor5-dev-utils": "^35.0.3",
9
- "@ckeditor/jsdoc-plugins": "^35.0.3",
10
- "@ckeditor/typedoc-plugins": "^35.0.3",
8
+ "@ckeditor/ckeditor5-dev-utils": "^35.0.5",
9
+ "@ckeditor/jsdoc-plugins": "^35.0.5",
10
+ "@ckeditor/typedoc-plugins": "^35.0.5",
11
11
  "fast-glob": "^3.2.4",
12
12
  "fs-extra": "^9.0.0",
13
13
  "jsdoc": "ckeditor/jsdoc#fixed-trailing-comment-doclets",