diff --git a/package.json b/package.json index 79abc6e..e7b8240 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,10 @@ "./analytics": { "import": "./dist/analytics/index.js", "types": "./dist/analytics/index.d.ts" + }, + "./announcements": { + "import": "./dist/announcements/index.js", + "types": "./dist/announcements/index.d.ts" } }, "files": [ @@ -54,6 +58,7 @@ "peerDependencies": { "@dnd-kit/core": "^6.0.0", "@dnd-kit/sortable": "^8.0.0 || ^10.0.0", + "@dnd-kit/utilities": "^3.0.0", "@tanstack/react-query": "^5.0.0", "@tanstack/react-table": "^8.0.0", "react": "^19.0.0", diff --git a/tsup.config.ts b/tsup.config.ts index 973b0c4..ef4e650 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -8,6 +8,9 @@ export default defineConfig({ 'panels/index': 'src/panels/index.ts', 'hooks/index': 'src/hooks/index.ts', 'analytics/index': 'src/analytics/index.ts', + // Standalone entry so a consumer that only needs the announcement centre + // does not pull in the table / drag-and-drop peers of the main barrel. + 'announcements/index': 'src/components/announcements/index.ts', }, format: ['esm'], dts: true,