@wordpress/docgen 2.52.0 → 2.53.0

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.
package/bin/cli.js CHANGED
@@ -1,10 +1,4 @@
1
1
  #!/usr/bin/env node
2
-
3
- /**
4
- * Internal dependencies
5
- */
6
- const docgen = require( '../lib' );
7
-
8
2
  const optionator = require( 'optionator' )( {
9
3
  prepend: 'Usage: node <path-to-docgen> <relative-path-to-entry-point>',
10
4
  options: [
@@ -55,6 +49,7 @@ const optionator = require( 'optionator' )( {
55
49
  },
56
50
  ],
57
51
  } );
52
+ const docgen = require( '../lib' );
58
53
 
59
54
  const options = optionator.parseArgv( process.argv );
60
55
  process.exit( docgen( options._[ 0 ], options ) );
package/lib/engine.js CHANGED
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  const babel = require( '@babel/core' );
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  const getIntermediateRepresentation = require( './get-intermediate-representation' );
10
3
 
11
4
  const getAST = ( source, filename ) => {
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  const getExportEntries = require( './get-export-entries' );
5
2
  const getJSDocFromToken = require( './get-jsdoc-from-token' );
6
3
  const getDependencyPath = require( './get-dependency-path' );
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  const commentParser = require( 'comment-parser' );
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  const getLeadingComments = require( './get-leading-comments' );
10
3
  const getTypeAnnotation = require( './get-type-annotation' );
11
4
 
@@ -1,6 +1,3 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  // See https://babeljs.io/docs/en/babel-types.
5
2
  const { types: babelTypes } = require( '@babel/core' );
6
3
 
package/lib/index.js CHANGED
@@ -1,12 +1,5 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  const fs = require( 'fs' );
5
2
  const path = require( 'path' );
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
3
  const engine = require( './engine' );
11
4
  const defaultMarkdownFormatter = require( './markdown' );
12
5
  const isSymbolPrivate = require( './is-symbol-private' );
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  const getSymbolTagsByName = require( './get-symbol-tags-by-name' );
5
2
 
6
3
  /**
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  const getSymbolTagsByName = require( './get-symbol-tags-by-name' );
5
2
 
6
3
  /**
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  const remark = require( 'remark' );
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  const getSymbolTagsByName = require( '../get-symbol-tags-by-name' );
10
3
 
11
4
  const cleanSpaces = ( paragraph ) =>
@@ -1,15 +1,8 @@
1
- /**
2
- * External dependencies
3
- */
1
+ const fs = require( 'fs' );
4
2
  const remark = require( 'remark' );
5
3
  const unified = require( 'unified' );
6
4
  const remarkParser = require( 'remark-parse' );
7
5
  const inject = require( 'mdast-util-inject' );
8
- const fs = require( 'fs' );
9
-
10
- /**
11
- * Internal dependencies
12
- */
13
6
  const formatter = require( './formatter' );
14
7
  const embed = require( './embed' );
15
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/docgen",
3
- "version": "2.52.0",
3
+ "version": "2.53.0",
4
4
  "description": "Autogenerate public API documentation from exports and JSDoc comments.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "7e8b17a983f9391d3ebc7717af2a1c9ed7efc7ab"
51
+ "gitHead": "989764d42ff93e33684aaf0b96a5b7f3d9bbff52"
52
52
  }