Explorar el Código

chore(dashboard): Add GraphQL client to package exports

David Höck hace 6 meses
padre
commit
7f2096eb87
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 1 1
      packages/dashboard/generate-index.js
  2. 2 0
      packages/dashboard/src/lib/index.ts

+ 1 - 1
packages/dashboard/generate-index.js

@@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
 const __filename = fileURLToPath(import.meta.url);
 const __dirname = path.dirname(__filename);
 
-const TARGET_DIRS = ['components', 'framework', 'hooks', 'lib'];
+const TARGET_DIRS = ['components', 'framework', 'hooks', 'lib', 'graphql'];
 const LIB_DIR = path.join(__dirname, 'src', 'lib');
 const INDEX_FILE = path.join(LIB_DIR, 'index.ts');
 

+ 2 - 0
packages/dashboard/src/lib/index.ts

@@ -162,6 +162,8 @@ export * from './framework/page/use-detail-page.js';
 export * from './framework/page/use-extended-router.js';
 export * from './framework/registry/global-registry.js';
 export * from './framework/registry/registry-types.js';
+export * from './graphql/api.js';
+export * from './graphql/fragments.js';
 export * from './hooks/use-auth.js';
 export * from './hooks/use-channel.js';
 export * from './hooks/use-custom-field-config.js';