From 0cc1f88746218bc353d3484e3d629b2a4622a7a2 Mon Sep 17 00:00:00 2001 From: Dylan Kelly Date: Wed, 17 Apr 2024 13:40:46 +1000 Subject: [PATCH] fix(@dpc-sdp/ripple-tide-api): :bug: fix issue with node dependencies in export --- packages/nuxt-ripple/utils/breadcrumbs.ts | 2 +- packages/ripple-tide-api/package.json | 1 + packages/ripple-tide-api/src/helpers.ts | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 packages/ripple-tide-api/src/helpers.ts diff --git a/packages/nuxt-ripple/utils/breadcrumbs.ts b/packages/nuxt-ripple/utils/breadcrumbs.ts index aade47e545..fe8a6040d2 100644 --- a/packages/nuxt-ripple/utils/breadcrumbs.ts +++ b/packages/nuxt-ripple/utils/breadcrumbs.ts @@ -1,4 +1,4 @@ -import { stripSiteId } from '@dpc-sdp/ripple-tide-api' +import { stripSiteId } from '@dpc-sdp/ripple-tide-api/helpers' // Private helpers function getActivePath(branch, path) { diff --git a/packages/ripple-tide-api/package.json b/packages/ripple-tide-api/package.json index 000677b071..35d26b509a 100644 --- a/packages/ripple-tide-api/package.json +++ b/packages/ripple-tide-api/package.json @@ -12,6 +12,7 @@ "exports": { ".": "./dist/index.js", "./utils": "./dist/utils.js", + "./helpers": "./dist/helpers.js", "./types": "./types.d.ts", "./errors": "./dist/errors/errors.js", "./components": "./dist/nuxt/components", diff --git a/packages/ripple-tide-api/src/helpers.ts b/packages/ripple-tide-api/src/helpers.ts new file mode 100644 index 0000000000..80c99a7778 --- /dev/null +++ b/packages/ripple-tide-api/src/helpers.ts @@ -0,0 +1,6 @@ +export * from './utils/mapping-utils.js' +export { stripSiteId } from './utils/stripSiteId.js' +export { + addAnchorLinksToHTML, + getAnchorLinksFromHTML +} from './utils/anchorLinks.js'