2024-06-19 12:20:28 +03:00
|
|
|
/**
|
|
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
2024-06-19 12:53:03 +03:00
|
|
|
* SPDX-License-Identifier: CC0-1.0
|
2024-06-19 12:20:28 +03:00
|
|
|
*/
|
2024-06-19 12:53:03 +03:00
|
|
|
import type { UserConfig } from 'vite'
|
2024-06-19 12:20:28 +03:00
|
|
|
|
|
|
|
// eslint-disable-next-line n/no-unpublished-import
|
|
|
|
import { createLibConfig } from '@nextcloud/vite-config'
|
|
|
|
import { join } from 'node:path'
|
|
|
|
|
|
|
|
export default createLibConfig(
|
|
|
|
{
|
|
|
|
index: join(__dirname, 'lib', 'index.ts'),
|
2024-06-19 15:22:06 +03:00
|
|
|
public: join(__dirname, 'lib', 'publicShare.ts'),
|
|
|
|
},
|
|
|
|
{
|
2024-06-20 02:54:47 +03:00
|
|
|
DTSPluginOptions: {
|
|
|
|
rollupTypes: true,
|
|
|
|
},
|
2024-06-19 12:53:03 +03:00
|
|
|
config: {
|
|
|
|
test: {
|
|
|
|
coverage: {
|
|
|
|
provider: 'v8',
|
|
|
|
all: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as UserConfig,
|
2024-06-19 12:20:28 +03:00
|
|
|
libraryFormats: ['cjs', 'es'],
|
|
|
|
},
|
|
|
|
)
|