From 96979fb5b0214f4aa473cace7c432b123d658ad9 Mon Sep 17 00:00:00 2001 From: virginieVachet Date: Fri, 26 Jul 2024 11:03:24 +0200 Subject: [PATCH] fix export --- packages/synapse-bridge/package.json | 3 ++- packages/synapse-bridge/src/main.ts | 1 + packages/synapse-bridge/vite.config.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/synapse-bridge/package.json b/packages/synapse-bridge/package.json index 5573844e1a..0c979b13b3 100644 --- a/packages/synapse-bridge/package.json +++ b/packages/synapse-bridge/package.json @@ -20,7 +20,8 @@ "require": "./dist/synapse-bridge.umd.cjs" }, "./style.css": "./dist/style.css", - "./constants": "./src/constants/index.ts", + "./constants/*": "./src/constants/*/index.ts", + "./constants/enums/StateEnum": "./src/constants/enums/StateEnum.ts", "./functions/*": "./src/functions/*/index.ts", "./modules/*": "./src/modules/*/index.ts", "./helpers/*": "./src/helpers/*/index.ts", diff --git a/packages/synapse-bridge/src/main.ts b/packages/synapse-bridge/src/main.ts index e1f3ec6de9..a1c9a32e78 100644 --- a/packages/synapse-bridge/src/main.ts +++ b/packages/synapse-bridge/src/main.ts @@ -3,6 +3,7 @@ export * from './form-builder' export * from './patterns' export * from './templates' export * from './constants' +export * from './constants/enums/StateEnum' export * from './rules/email' export * from './rules/exactLength' export * from './rules/isDateValid' diff --git a/packages/synapse-bridge/vite.config.ts b/packages/synapse-bridge/vite.config.ts index 367c8f92c1..f0a7040f3c 100644 --- a/packages/synapse-bridge/vite.config.ts +++ b/packages/synapse-bridge/vite.config.ts @@ -5,6 +5,7 @@ import vue from '@vitejs/plugin-vue' import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify' import dts from 'vite-plugin-dts' import { visualizer } from 'rollup-plugin-visualizer' +import * as path from "node:path"; function generateVuetifyGlobals() { const components = [