diff --git a/.prettierignore b/.prettierignore
index c8926563..66e75dec 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -31,4 +31,5 @@ pnpm-debug.log*
turbo-lint.log
.source
-turbo/generators/templates/**/*.hbs
\ No newline at end of file
+turbo/generators/templates/**/*.hbs
+routeTree.gen.ts
\ No newline at end of file
diff --git a/apps/website/docs/api-reference/commandkit/functions/bootstrap-commandkit-cli.mdx b/apps/website/docs/api-reference/commandkit/functions/bootstrap-commandkit-cli.mdx
index 1579f079..c2c89f66 100644
--- a/apps/website/docs/api-reference/commandkit/functions/bootstrap-commandkit-cli.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/bootstrap-commandkit-cli.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## bootstrapCommandkitCLI
-
+
Creates a command line interface for CommandKit.
diff --git a/apps/website/docs/api-reference/commandkit/functions/create-proxy.mdx b/apps/website/docs/api-reference/commandkit/functions/create-proxy.mdx
index e04edfd8..f050d3aa 100644
--- a/apps/website/docs/api-reference/commandkit/functions/create-proxy.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/create-proxy.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## createProxy
-
+
Creates a simple proxy object that mirrors the target object.
diff --git a/apps/website/docs/api-reference/commandkit/functions/debounce.mdx b/apps/website/docs/api-reference/commandkit/functions/debounce.mdx
index ef5be266..6fade3b4 100644
--- a/apps/website/docs/api-reference/commandkit/functions/debounce.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/debounce.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## debounce
-
+
Debounces a function.
diff --git a/apps/website/docs/api-reference/commandkit/functions/defer.mdx b/apps/website/docs/api-reference/commandkit/functions/defer.mdx
index bb598206..6005df9e 100644
--- a/apps/website/docs/api-reference/commandkit/functions/defer.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/defer.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## defer
-
+
Defers the execution of a function.
diff --git a/apps/website/docs/api-reference/commandkit/functions/dev-only.mdx b/apps/website/docs/api-reference/commandkit/functions/dev-only.mdx
index 64eb30ba..9b3896b1 100644
--- a/apps/website/docs/api-reference/commandkit/functions/dev-only.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/dev-only.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## devOnly
-
+
Creates a function from the given function that runs only in development mode.
diff --git a/apps/website/docs/api-reference/commandkit/functions/find-app-directory.mdx b/apps/website/docs/api-reference/commandkit/functions/find-app-directory.mdx
index 85bcaa8d..e5c4a8f2 100644
--- a/apps/website/docs/api-reference/commandkit/functions/find-app-directory.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/find-app-directory.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## findAppDirectory
-
+
Returns the path to the app directory.
diff --git a/apps/website/docs/api-reference/commandkit/functions/get-current-directory.mdx b/apps/website/docs/api-reference/commandkit/functions/get-current-directory.mdx
index 85771410..7e97f24a 100644
--- a/apps/website/docs/api-reference/commandkit/functions/get-current-directory.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/get-current-directory.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## getCurrentDirectory
-
+
Returns the current working directory of the CommandKit application.
This is typically the directory where the source code is located.
diff --git a/apps/website/docs/api-reference/commandkit/functions/get-source-directories.mdx b/apps/website/docs/api-reference/commandkit/functions/get-source-directories.mdx
index fdfa3013..269fb66c 100644
--- a/apps/website/docs/api-reference/commandkit/functions/get-source-directories.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/get-source-directories.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## getSourceDirectories
-
+
Returns the possible source directories for the CommandKit application.
This includes the `src`, `.commandkit`, and the distribution directory.
diff --git a/apps/website/docs/api-reference/commandkit/functions/json-serialize.mdx b/apps/website/docs/api-reference/commandkit/functions/json-serialize.mdx
index bdf86367..b76aa015 100644
--- a/apps/website/docs/api-reference/commandkit/functions/json-serialize.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/json-serialize.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## JsonSerialize
-
+
Serializes a value to JSON.
diff --git a/apps/website/docs/api-reference/commandkit/functions/load-config-file.mdx b/apps/website/docs/api-reference/commandkit/functions/load-config-file.mdx
index 9fc7ab3b..d484e258 100644
--- a/apps/website/docs/api-reference/commandkit/functions/load-config-file.mdx
+++ b/apps/website/docs/api-reference/commandkit/functions/load-config-file.mdx
@@ -13,12 +13,12 @@ import MemberDescription from '@site/src/components/MemberDescription';
## loadConfigFile
-
+
Load the configuration file from the given entrypoint.
```ts title="Signature"
-function loadConfigFile(entrypoint: = process.cwd()): void
+function loadConfigFile(entrypoint: = COMMANDKIT_CWD): void
```
Parameters
diff --git a/apps/website/docs/api-reference/commandkit/interfaces/simple-proxy.mdx b/apps/website/docs/api-reference/commandkit/interfaces/simple-proxy.mdx
index 8b445d76..dc55483c 100644
--- a/apps/website/docs/api-reference/commandkit/interfaces/simple-proxy.mdx
+++ b/apps/website/docs/api-reference/commandkit/interfaces/simple-proxy.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## SimpleProxy
-
+
Represents a simple proxy object that mirrors a target object.
diff --git a/apps/website/docs/api-reference/commandkit/types/hmrevent-type.mdx b/apps/website/docs/api-reference/commandkit/types/hmrevent-type.mdx
index 6a5e6945..d42b1534 100644
--- a/apps/website/docs/api-reference/commandkit/types/hmrevent-type.mdx
+++ b/apps/website/docs/api-reference/commandkit/types/hmrevent-type.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## HMREventType
-
+
The type for HMR events.
diff --git a/apps/website/docs/api-reference/commandkit/variables/commandkit_bootstrap_mode.mdx b/apps/website/docs/api-reference/commandkit/variables/commandkit_bootstrap_mode.mdx
index dee646c1..c058b3f5 100644
--- a/apps/website/docs/api-reference/commandkit/variables/commandkit_bootstrap_mode.mdx
+++ b/apps/website/docs/api-reference/commandkit/variables/commandkit_bootstrap_mode.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## COMMANDKIT_BOOTSTRAP_MODE
-
+
The current bootstrap mode of CommandKit.
This can be 'development' or 'production'.
diff --git a/apps/website/docs/api-reference/commandkit/variables/commandkit_cwd.mdx b/apps/website/docs/api-reference/commandkit/variables/commandkit_cwd.mdx
new file mode 100644
index 00000000..b97cfe67
--- /dev/null
+++ b/apps/website/docs/api-reference/commandkit/variables/commandkit_cwd.mdx
@@ -0,0 +1,19 @@
+---
+title: "COMMANDKIT_CWD"
+isDefaultIndex: false
+generated: true
+---
+
+import MemberInfo from '@site/src/components/MemberInfo';
+import GenerationInfo from '@site/src/components/GenerationInfo';
+import MemberDescription from '@site/src/components/MemberDescription';
+
+
+
+
+## COMMANDKIT_CWD
+
+
+
+The current working directory of the CommandKit instance.
+
diff --git a/apps/website/docs/api-reference/commandkit/variables/commandkit_is_cli.mdx b/apps/website/docs/api-reference/commandkit/variables/commandkit_is_cli.mdx
index aff03c0d..8d355ef8 100644
--- a/apps/website/docs/api-reference/commandkit/variables/commandkit_is_cli.mdx
+++ b/apps/website/docs/api-reference/commandkit/variables/commandkit_is_cli.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## COMMANDKIT_IS_CLI
-
+
Indicates whether CommandKit is running in CLI thread.
diff --git a/apps/website/docs/api-reference/commandkit/variables/commandkit_is_dev.mdx b/apps/website/docs/api-reference/commandkit/variables/commandkit_is_dev.mdx
index f0159426..88929555 100644
--- a/apps/website/docs/api-reference/commandkit/variables/commandkit_is_dev.mdx
+++ b/apps/website/docs/api-reference/commandkit/variables/commandkit_is_dev.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## COMMANDKIT_IS_DEV
-
+
Indicates whether CommandKit is running in development mode.
diff --git a/apps/website/docs/api-reference/commandkit/variables/commandkit_is_test.mdx b/apps/website/docs/api-reference/commandkit/variables/commandkit_is_test.mdx
index ea9e9476..7c2b1691 100644
--- a/apps/website/docs/api-reference/commandkit/variables/commandkit_is_test.mdx
+++ b/apps/website/docs/api-reference/commandkit/variables/commandkit_is_test.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## COMMANDKIT_IS_TEST
-
+
Indicates whether CommandKit is running in test mode.
diff --git a/apps/website/docs/api-reference/commandkit/variables/hmrevent-type.mdx b/apps/website/docs/api-reference/commandkit/variables/hmrevent-type.mdx
index 27191c75..36b58698 100644
--- a/apps/website/docs/api-reference/commandkit/variables/hmrevent-type.mdx
+++ b/apps/website/docs/api-reference/commandkit/variables/hmrevent-type.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## HMREventType
-
+
Types of Hot Module Replacement events
diff --git a/apps/website/docs/api-reference/i18n/classes/i18n-plugin.mdx b/apps/website/docs/api-reference/i18n/classes/i18n-plugin.mdx
index 4692f4d4..a95566c6 100644
--- a/apps/website/docs/api-reference/i18n/classes/i18n-plugin.mdx
+++ b/apps/website/docs/api-reference/i18n/classes/i18n-plugin.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## I18nPlugin
-
+
diff --git a/apps/website/docs/api-reference/i18n/functions/use-i18n.mdx b/apps/website/docs/api-reference/i18n/functions/use-i18n.mdx
index 2644e8ac..5f726edb 100644
--- a/apps/website/docs/api-reference/i18n/functions/use-i18n.mdx
+++ b/apps/website/docs/api-reference/i18n/functions/use-i18n.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## useI18n
-
+
Retrieves the i18n instance from the commandkit store.
diff --git a/apps/website/docs/api-reference/i18n/interfaces/command-localization-context.mdx b/apps/website/docs/api-reference/i18n/interfaces/command-localization-context.mdx
index 09ed129c..82476824 100644
--- a/apps/website/docs/api-reference/i18n/interfaces/command-localization-context.mdx
+++ b/apps/website/docs/api-reference/i18n/interfaces/command-localization-context.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## CommandLocalizationContext
-
+
diff --git a/apps/website/docs/api-reference/i18n/interfaces/localization-plugin-options.mdx b/apps/website/docs/api-reference/i18n/interfaces/localization-plugin-options.mdx
index 6b236aaa..d7e92550 100644
--- a/apps/website/docs/api-reference/i18n/interfaces/localization-plugin-options.mdx
+++ b/apps/website/docs/api-reference/i18n/interfaces/localization-plugin-options.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## LocalizationPluginOptions
-
+
Options for the localization plugin.
This interface defines the options that can be passed to the localization plugin.
diff --git a/apps/website/docs/api-reference/i18n/types/dynamic-localization-module.mdx b/apps/website/docs/api-reference/i18n/types/dynamic-localization-module.mdx
index c8ad2a9b..6ab69e6f 100644
--- a/apps/website/docs/api-reference/i18n/types/dynamic-localization-module.mdx
+++ b/apps/website/docs/api-reference/i18n/types/dynamic-localization-module.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## DynamicLocalizationModule
-
+
Represents a dynamic localization module that can be used with the i18next plugin.
diff --git a/apps/website/docs/api-reference/i18n/types/localization-module.mdx b/apps/website/docs/api-reference/i18n/types/localization-module.mdx
index 7b27601e..5a195eca 100644
--- a/apps/website/docs/api-reference/i18n/types/localization-module.mdx
+++ b/apps/website/docs/api-reference/i18n/types/localization-module.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## LocalizationModule
-
+
Represents a localization module that can be used with the i18next plugin.
diff --git a/apps/website/docs/api-reference/legacy/classes/legacy-commands-cliplugin.mdx b/apps/website/docs/api-reference/legacy/classes/legacy-commands-cliplugin.mdx
index 01418258..a05bff20 100644
--- a/apps/website/docs/api-reference/legacy/classes/legacy-commands-cliplugin.mdx
+++ b/apps/website/docs/api-reference/legacy/classes/legacy-commands-cliplugin.mdx
@@ -13,7 +13,7 @@ import MemberDescription from '@site/src/components/MemberDescription';
## LegacyCommandsCLIPlugin
-
+
LegacyCommandsCLIPlugin is a CommandKit compiler plugin that provides a CLI
interface for creating legacy commands and events.
diff --git a/packages/devtools-ui/src/routeTree.gen.ts b/packages/devtools-ui/src/routeTree.gen.ts
index 7e26992d..b04d4dc9 100644
--- a/packages/devtools-ui/src/routeTree.gen.ts
+++ b/packages/devtools-ui/src/routeTree.gen.ts
@@ -8,105 +8,45 @@
// You should NOT make any changes in this file as it will be overwritten.
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root';
-import { Route as PluginsImport } from './routes/plugins';
-import { Route as GuildsImport } from './routes/guilds';
-import { Route as FeatureFlagsImport } from './routes/feature-flags';
-import { Route as EventsImport } from './routes/events';
-import { Route as CommandsImport } from './routes/commands';
-import { Route as IndexImport } from './routes/index';
-
-// Create/Update Routes
-
-const PluginsRoute = PluginsImport.update({
+import { Route as rootRouteImport } from './routes/__root';
+import { Route as PluginsRouteImport } from './routes/plugins';
+import { Route as GuildsRouteImport } from './routes/guilds';
+import { Route as FeatureFlagsRouteImport } from './routes/feature-flags';
+import { Route as EventsRouteImport } from './routes/events';
+import { Route as CommandsRouteImport } from './routes/commands';
+import { Route as IndexRouteImport } from './routes/index';
+
+const PluginsRoute = PluginsRouteImport.update({
id: '/plugins',
path: '/plugins',
- getParentRoute: () => rootRoute,
+ getParentRoute: () => rootRouteImport,
} as any);
-
-const GuildsRoute = GuildsImport.update({
+const GuildsRoute = GuildsRouteImport.update({
id: '/guilds',
path: '/guilds',
- getParentRoute: () => rootRoute,
+ getParentRoute: () => rootRouteImport,
} as any);
-
-const FeatureFlagsRoute = FeatureFlagsImport.update({
+const FeatureFlagsRoute = FeatureFlagsRouteImport.update({
id: '/feature-flags',
path: '/feature-flags',
- getParentRoute: () => rootRoute,
+ getParentRoute: () => rootRouteImport,
} as any);
-
-const EventsRoute = EventsImport.update({
+const EventsRoute = EventsRouteImport.update({
id: '/events',
path: '/events',
- getParentRoute: () => rootRoute,
+ getParentRoute: () => rootRouteImport,
} as any);
-
-const CommandsRoute = CommandsImport.update({
+const CommandsRoute = CommandsRouteImport.update({
id: '/commands',
path: '/commands',
- getParentRoute: () => rootRoute,
+ getParentRoute: () => rootRouteImport,
} as any);
-
-const IndexRoute = IndexImport.update({
+const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
- getParentRoute: () => rootRoute,
+ getParentRoute: () => rootRouteImport,
} as any);
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
- interface FileRoutesByPath {
- '/': {
- id: '/';
- path: '/';
- fullPath: '/';
- preLoaderRoute: typeof IndexImport;
- parentRoute: typeof rootRoute;
- };
- '/commands': {
- id: '/commands';
- path: '/commands';
- fullPath: '/commands';
- preLoaderRoute: typeof CommandsImport;
- parentRoute: typeof rootRoute;
- };
- '/events': {
- id: '/events';
- path: '/events';
- fullPath: '/events';
- preLoaderRoute: typeof EventsImport;
- parentRoute: typeof rootRoute;
- };
- '/feature-flags': {
- id: '/feature-flags';
- path: '/feature-flags';
- fullPath: '/feature-flags';
- preLoaderRoute: typeof FeatureFlagsImport;
- parentRoute: typeof rootRoute;
- };
- '/guilds': {
- id: '/guilds';
- path: '/guilds';
- fullPath: '/guilds';
- preLoaderRoute: typeof GuildsImport;
- parentRoute: typeof rootRoute;
- };
- '/plugins': {
- id: '/plugins';
- path: '/plugins';
- fullPath: '/plugins';
- preLoaderRoute: typeof PluginsImport;
- parentRoute: typeof rootRoute;
- };
- }
-}
-
-// Create and export the route tree
-
export interface FileRoutesByFullPath {
'/': typeof IndexRoute;
'/commands': typeof CommandsRoute;
@@ -115,7 +55,6 @@ export interface FileRoutesByFullPath {
'/guilds': typeof GuildsRoute;
'/plugins': typeof PluginsRoute;
}
-
export interface FileRoutesByTo {
'/': typeof IndexRoute;
'/commands': typeof CommandsRoute;
@@ -124,9 +63,8 @@ export interface FileRoutesByTo {
'/guilds': typeof GuildsRoute;
'/plugins': typeof PluginsRoute;
}
-
export interface FileRoutesById {
- __root__: typeof rootRoute;
+ __root__: typeof rootRouteImport;
'/': typeof IndexRoute;
'/commands': typeof CommandsRoute;
'/events': typeof EventsRoute;
@@ -134,7 +72,6 @@ export interface FileRoutesById {
'/guilds': typeof GuildsRoute;
'/plugins': typeof PluginsRoute;
}
-
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath;
fullPaths:
@@ -156,7 +93,6 @@ export interface FileRouteTypes {
| '/plugins';
fileRoutesById: FileRoutesById;
}
-
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute;
CommandsRoute: typeof CommandsRoute;
@@ -166,6 +102,53 @@ export interface RootRouteChildren {
PluginsRoute: typeof PluginsRoute;
}
+declare module '@tanstack/react-router' {
+ interface FileRoutesByPath {
+ '/plugins': {
+ id: '/plugins';
+ path: '/plugins';
+ fullPath: '/plugins';
+ preLoaderRoute: typeof PluginsRouteImport;
+ parentRoute: typeof rootRouteImport;
+ };
+ '/guilds': {
+ id: '/guilds';
+ path: '/guilds';
+ fullPath: '/guilds';
+ preLoaderRoute: typeof GuildsRouteImport;
+ parentRoute: typeof rootRouteImport;
+ };
+ '/feature-flags': {
+ id: '/feature-flags';
+ path: '/feature-flags';
+ fullPath: '/feature-flags';
+ preLoaderRoute: typeof FeatureFlagsRouteImport;
+ parentRoute: typeof rootRouteImport;
+ };
+ '/events': {
+ id: '/events';
+ path: '/events';
+ fullPath: '/events';
+ preLoaderRoute: typeof EventsRouteImport;
+ parentRoute: typeof rootRouteImport;
+ };
+ '/commands': {
+ id: '/commands';
+ path: '/commands';
+ fullPath: '/commands';
+ preLoaderRoute: typeof CommandsRouteImport;
+ parentRoute: typeof rootRouteImport;
+ };
+ '/': {
+ id: '/';
+ path: '/';
+ fullPath: '/';
+ preLoaderRoute: typeof IndexRouteImport;
+ parentRoute: typeof rootRouteImport;
+ };
+ }
+}
+
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
CommandsRoute: CommandsRoute,
@@ -174,43 +157,6 @@ const rootRouteChildren: RootRouteChildren = {
GuildsRoute: GuildsRoute,
PluginsRoute: PluginsRoute,
};
-
-export const routeTree = rootRoute
+export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes();
-
-/* ROUTE_MANIFEST_START
-{
- "routes": {
- "__root__": {
- "filePath": "__root.tsx",
- "children": [
- "/",
- "/commands",
- "/events",
- "/feature-flags",
- "/guilds",
- "/plugins"
- ]
- },
- "/": {
- "filePath": "index.tsx"
- },
- "/commands": {
- "filePath": "commands.tsx"
- },
- "/events": {
- "filePath": "events.tsx"
- },
- "/feature-flags": {
- "filePath": "feature-flags.tsx"
- },
- "/guilds": {
- "filePath": "guilds.tsx"
- },
- "/plugins": {
- "filePath": "plugins.tsx"
- }
- }
-}
-ROUTE_MANIFEST_END */