mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-12-06 17:52:16 +00:00
* add @solidtime/composables package shared by web, desktop and extension * bump api to 0.0.8 and require it in composables * drop the manual composables publish workflow
39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
import { defineConfig } from 'vite';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'src/index.ts'),
|
|
name: 'SolidtimeComposables',
|
|
fileName: 'solidtime-composables',
|
|
},
|
|
rollupOptions: {
|
|
// Peer dependencies are provided by the consuming app
|
|
external: [
|
|
'vue',
|
|
'@tanstack/vue-query',
|
|
'@vueuse/core',
|
|
'axios',
|
|
'dayjs',
|
|
/^dayjs\/.*/,
|
|
],
|
|
output: {
|
|
globals: {
|
|
'vue': 'Vue',
|
|
'@tanstack/vue-query': 'VueQuery',
|
|
'@vueuse/core': 'VueUse',
|
|
'axios': 'axios',
|
|
'dayjs': 'dayjs',
|
|
'dayjs/plugin/utc': 'dayjs_plugin_utc',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve('../../'),
|
|
},
|
|
},
|
|
});
|