如何使用 typedoc 排除 node_modules?

mr_*_*ond 5 javascript npm typescript typedoc

package.json中有脚本:

    "scripts": {
        "typedoc": "npx typedoc --out docs src/main.ts --exclude ./node_modules/**",
    }
Run Code Online (Sandbox Code Playgroud)

我运行它

npm run typedoc
Run Code Online (Sandbox Code Playgroud)

并得到一个错误:

解析“...node_modules/**”附近时,JSON 中位置 920 处出现意外标记 }

我该如何解决?