Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b390a23

Browse files
committed
Fix function reference not published in npm library
1 parent 5e32983 commit b390a23

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

HISTORY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# History
22

3+
4+
# 2019-06-09, version 6.0.1
5+
6+
- Fix function reference not published in npm library.
7+
- Fix function `evaluate` and `parse` missing in generated docs.
8+
9+
310
# 2019-06-08, version 6.0.0
411

512
!!! BE CAREFUL: BREAKING CHANGES !!!

docs/reference/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty .npmignore to prevent ignoring generated docs in npm
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty .npmignore to prevent ignoring generated docs in npm

tools/docgenerator.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const IGNORE_FUNCTIONS = {
4646
divideScalar: true,
4747
multiplyScalar: true,
4848
equalScalar: true,
49-
evaluate: true
49+
eval: true
5050
}
5151

5252
const IGNORE_WARNINGS = {
@@ -512,6 +512,9 @@ function iteratePath (functionNames, inputPath, outputPath, outputRoot) {
512512
} else {
513513
category = path[functionIndex + 1]
514514
}
515+
} else if (fullPath === './lib/expression/parse.js') {
516+
// TODO: this is an ugly special case
517+
category = 'expression'
515518
} else if (path.join('/') === './lib/type') {
516519
// for boolean.js, number.js, string.js
517520
category = 'construction'

0 commit comments

Comments
 (0)