@geekmidas/cli 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,7 +23,7 @@
23
23
  "lodash.set": "~4.3.2",
24
24
  "zod": "~3.25.67",
25
25
  "fast-glob": "~3.3.3",
26
- "@geekmidas/api": "0.0.3"
26
+ "@geekmidas/api": "0.0.5"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/lodash.get": "~4.4.9",
@@ -1,5 +1,6 @@
1
1
  import { Endpoint } from '@geekmidas/api/server';
2
2
  import fg from 'fast-glob';
3
+ import type { Routes } from './types';
3
4
 
4
5
  export interface LoadedEndpoint {
5
6
  name: string;
@@ -7,7 +8,7 @@ export interface LoadedEndpoint {
7
8
  file: string;
8
9
  }
9
10
 
10
- export async function loadEndpoints(routes: string): Promise<LoadedEndpoint[]> {
11
+ export async function loadEndpoints(routes: Routes): Promise<LoadedEndpoint[]> {
11
12
  const logger = console;
12
13
 
13
14
  // Find all endpoint files
package/src/types.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  export type Provider = 'server' | 'aws-apigatewayv1' | 'aws-apigatewayv2';
2
2
 
3
+ export type Routes = string | string[];
4
+
3
5
  export interface GkmConfig {
4
- routes: string;
6
+ routes: Routes;
5
7
  envParser: string;
6
8
  logger: string;
7
9
  }