mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-02-16 13:26:12 +00:00
- Introduced ResolveSpecClient for REST API interactions. - Added WebSocketClient for real-time communication. - Created types and utility functions for both clients. - Removed deprecated types and example files. - Configured TypeScript and Vite for building the library.
21 lines
522 B
TypeScript
21 lines
522 B
TypeScript
import { defineConfig } from 'vite';
|
|
import dts from 'vite-plugin-dts';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
dts({ rollupTypes: true }),
|
|
],
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'src/index.ts'),
|
|
name: 'ResolveSpec',
|
|
formats: ['es', 'cjs'],
|
|
fileName: (format) => `index.${format === 'es' ? 'js' : 'cjs'}`,
|
|
},
|
|
rollupOptions: {
|
|
external: ['uuid', 'semver'],
|
|
},
|
|
},
|
|
});
|