fix: build js declarations (#141)
This commit is contained in:
1 parent
20d1ec47f9
commit
0fd1f1fe4e
2 files changed
+4
-1
No files matched your search
@@ -53,7 +53,7 @@ function extractFunctions(contents, isTool) {
|
||||
continue;
|
||||
}
|
||||
if (isTool) {
|
||||
if (new RegExp(`function ${TOOL_ENTRY_FUNC}`).test(line)) {
|
||||
if (new RegExp(`^export (async )?function ${TOOL_ENTRY_FUNC}|^exports\.${TOOL_ENTRY_FUNC}`).test(line)) {
|
||||
output.push({
|
||||
funcName: TOOL_ENTRY_FUNC,
|
||||
jsdoc,
|
||||
|
||||
Reference in new issue
Block a user