@object-ui/plugin-calendar 0.3.0

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/vite.config.ts ADDED
@@ -0,0 +1,50 @@
1
+ /**
2
+ * ObjectUI
3
+ * Copyright (c) 2024-present ObjectStack Inc.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+
9
+ import { defineConfig } from 'vite';
10
+ import react from '@vitejs/plugin-react';
11
+ import dts from 'vite-plugin-dts';
12
+ import { resolve } from 'path';
13
+
14
+ export default defineConfig({
15
+ plugins: [
16
+ react(),
17
+ dts({
18
+ insertTypesEntry: true,
19
+ include: ['src'],
20
+ exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
21
+ skipDiagnostics: true,
22
+ }),
23
+ ],
24
+ resolve: {
25
+ alias: {
26
+ '@': resolve(__dirname, './src'),
27
+ },
28
+ },
29
+ build: {
30
+ lib: {
31
+ entry: resolve(__dirname, 'src/index.tsx'),
32
+ name: 'ObjectUIPluginCalendar',
33
+ fileName: 'index',
34
+ },
35
+ rollupOptions: {
36
+ external: ['react', 'react-dom', '@object-ui/components', '@object-ui/core', '@object-ui/react', '@object-ui/types', 'lucide-react'],
37
+ output: {
38
+ globals: {
39
+ react: 'React',
40
+ 'react-dom': 'ReactDOM',
41
+ '@object-ui/components': 'ObjectUIComponents',
42
+ '@object-ui/core': 'ObjectUICore',
43
+ '@object-ui/react': 'ObjectUIReact',
44
+ '@object-ui/types': 'ObjectUITypes',
45
+ 'lucide-react': 'LucideReact',
46
+ },
47
+ },
48
+ },
49
+ },
50
+ });