diff options
| author | sigoden <sigoden@gmail.com> | 2024-12-11 20:55:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-11 20:55:58 +0800 |
| commit | 0fd1f1fe4e22ff6701ad051824e1245ab2affc7d (patch) | |
| tree | b0ff4382e20b74981235bb47ac38752d66e9ed36 /scripts | |
| parent | 20d1ec47f9970caa119c3715a1c0c7a69e5aa65f (diff) | |
| download | llm-functions-docker-0fd1f1fe4e22ff6701ad051824e1245ab2affc7d.tar.gz | |
fix: build js declarations (#141)
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/build-declarations.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-declarations.js b/scripts/build-declarations.js index 88a6b97..5453a18 100755 --- a/scripts/build-declarations.js +++ b/scripts/build-declarations.js @@ -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, |
