File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { writeFileSync , readFileSync } from 'fs' ;
2
2
import { packageCategories } from '../src/data/api-categories.mjs' ;
3
3
import { processReferences } from '../src/data/process-typedoc.mjs' ;
4
+
4
5
/**
5
- * The purpose of this script is to create generate an object that only contains
6
- * the desired category nodes and every node needed to generate the api documentation
7
- * for these nodes. This is done by iterating over the needed category nodes and
8
- * then recursively adding every node found into cleanReferences.
6
+ * Read the -p flag from the cli params
7
+ *
8
+ * This flag tells is which package is adjacent with a references file to read from
9
+ * eg. `-p amplify-js` means that `../amplify-js/docs/reference.json` exists and is
10
+ * ready to be transformed into `src/directory/apiReferences/amplify-js.json`
9
11
*/
10
- // Read the -p flag from the cli params
11
- console . log ( JSON . stringify ( process . argv ) ) ;
12
-
13
12
const packageIndex = process . argv . indexOf ( '-p' ) ;
14
13
15
14
if ( packageIndex === - 1 ) {
You can’t perform that action at this time.
0 commit comments