diff --git a/packages/api/package.json b/packages/api/package.json index 2a85f91f8..d1bcb83da 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -7,7 +7,6 @@ "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "typedocMain": "src/index.ts", "exports": { ".": { "import": "./dist/index.mjs", diff --git a/packages/editable-commands/package.json b/packages/editable-commands/package.json index ba2ff5d89..7add8e1db 100644 --- a/packages/editable-commands/package.json +++ b/packages/editable-commands/package.json @@ -7,7 +7,6 @@ "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "typedocMain": "src/index.ts", "exports": { ".": { "import": "./dist/index.mjs", diff --git a/packages/hmr/package.json b/packages/hmr/package.json index 12289d5d7..814a42b64 100644 --- a/packages/hmr/package.json +++ b/packages/hmr/package.json @@ -7,7 +7,6 @@ "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "typedocMain": "src/index.ts", "exports": { ".": { "import": "./dist/index.mjs", diff --git a/packages/i18next/package.json b/packages/i18next/package.json index a5bf85aee..1b0a2276e 100644 --- a/packages/i18next/package.json +++ b/packages/i18next/package.json @@ -7,7 +7,6 @@ "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "typedocMain": "src/index.ts", "exports": { ".": { "import": "./dist/index.mjs", diff --git a/packages/logger/package.json b/packages/logger/package.json index 398af0144..cdf0e4a30 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -7,7 +7,6 @@ "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "typedocMain": "src/index.ts", "exports": { ".": { "import": "./dist/index.mjs", diff --git a/packages/pattern-commands/package.json b/packages/pattern-commands/package.json index bfa6aafc6..fa832de2b 100644 --- a/packages/pattern-commands/package.json +++ b/packages/pattern-commands/package.json @@ -7,7 +7,6 @@ "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "typedocMain": "src/index.ts", "exports": { ".": { "import": "./dist/index.mjs", diff --git a/packages/pattern-commands/src/listeners/PluginPreCommandRun.ts b/packages/pattern-commands/src/listeners/PluginPreCommandRun.ts index 7ec5b9a72..bf27c0a99 100644 --- a/packages/pattern-commands/src/listeners/PluginPreCommandRun.ts +++ b/packages/pattern-commands/src/listeners/PluginPreCommandRun.ts @@ -1,4 +1,4 @@ -import { Listener } from '@sapphire/framework'; +import { Listener, type PreconditionStore } from '@sapphire/framework'; import type { PieceContext } from '@sapphire/pieces'; import { PatternCommandEvents } from '../lib/utils/PaternCommandEvents'; import type { PatternPreCommandRunPayload } from '../lib/utils/PatternCommandInterfaces'; @@ -12,7 +12,7 @@ export class PreCommandRunListener extends Listener { public messageRun(context: SubCommandEntry.MessageRunContext): unknown { - const command = container.stores.get('commands').get(this.output); + const command = (container.stores.get('commands') as unknown as CommandStore).get(this.output); if (command) return command.messageRun(context.message, context.args, context.context); throw new ReferenceError(`The command '${this.input}' does not exist.`); } diff --git a/tsconfig.dev.json b/tsconfig.dev.json new file mode 100644 index 000000000..41c2199ef --- /dev/null +++ b/tsconfig.dev.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.base.json", + "exclude": ["**/dist/**/*", "**/register*", "**/tests/**/*"] +} diff --git a/typedoc.json b/typedoc.json index bd0247ba6..d9551823b 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,19 +1,18 @@ { "cleanOutputDir": true, - "emit": true, - "entryPointStrategy": "packages", - "entryPoints": ["."], - "exclude": [ - "**/*.js", - "**/*.test.ts", - "**/dist/**", - "**/jest.config.ts", - "**/node_modules/**", - "**/rollup.config.ts", - "packages/**/register*", - "packages/**/tests/**" + "entryPointStrategy": "resolve", + "entryPoints": [ + "packages/api/src/index.ts", + "packages/editable-commands/src/index.ts", + "packages/hmr/src/index.ts", + "packages/i18next/src/index.ts", + "packages/logger/src/index.ts", + "packages/pattern-commands/src/index.ts", + "packages/scheduled-tasks/src/index.ts", + "packages/subcommands/src/index.ts" ], - "excludeExternals": false, + "excludeExternals": true, + "externalPattern": ["node_modules/@types/**"], "hideGenerator": true, "lightHighlightTheme": "github-light", "darkHighlightTheme": "github-dark", @@ -25,5 +24,5 @@ "name": "Sapphire Plugins", "out": "./docs/", "readme": "./README.md", - "tsconfig": "./tsconfig.base.json" + "tsconfig": "./tsconfig.dev.json" }