diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..868112d --- /dev/null +++ b/.prettierignore @@ -0,0 +1,17 @@ +.vscode +.npmignore +coverage +dist +node_modules +**/*.wav +**/*.png +**/.DS_Store +LICENSE +.gitignore +.prettierignore +BUILD.bazel +copy.bara.sky +copybara.sh +.env +temp +temp-docs diff --git a/package.json b/package.json index fa5dd3a..fa83762 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,8 @@ "ts-jest": "^29.1.2", "tslib": "^2.5.3", "typescript": "^5.4.2", - "typedoc": "^0.25.12" + "typedoc": "^0.25.12", + "typedoc-plugin-extras": "^3.0.0" }, "dependencies": { "ws": "^8.16.0" diff --git a/scripts/generate-types.ts b/scripts/generate-types.ts index 54e740f..96f7f19 100644 --- a/scripts/generate-types.ts +++ b/scripts/generate-types.ts @@ -65,7 +65,7 @@ async function generateTypes(apiSpecPath: string, outputPath: string) { ) .replaceAll( /(?:\[(.*)\])(?:\(((?:http)(?:s)?(?::\/\/).*)\))/gm, - "{@link $2 | $1 }" + "{@link $2 | $1 }", ) // remove description tag .replaceAll("@description ", "") diff --git a/typedoc.json b/typedoc.json index 2e0dc59..c3277ce 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,10 +1,6 @@ { - "entryPoints": [ - "src/index.ts" - ], - "plugin": [ - "typedoc-plugin-extras" - ], + "entryPoints": ["src/index.ts"], + "plugin": ["typedoc-plugin-extras"], "out": "temp-docs", "hideGenerator": true, "name": "AssemblyAI JS SDK Reference", @@ -18,9 +14,9 @@ "Discord": "https://assemblyai.com/discord", "Status": "https://status.assemblyai.com/", "Playground": "https://www.assemblyai.com/playground", - "Dashboard": "https://www.assemblyai.com/app", + "Dashboard": "https://www.assemblyai.com/app" }, "sidebarLinks": { "README": "/assemblyai-node-sdk/index.html" } -} \ No newline at end of file +}