init
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { defineConfig } from 'tsdown';
|
||||
|
||||
export default defineConfig([
|
||||
{
|
||||
entry: ['src/index.js', 'src/api.js', 'src/settings.js', 'src/storage.js', 'src/data-source/*.js', 'src/position/*.js'],
|
||||
format: ['esm'],
|
||||
outDir: 'lib',
|
||||
clean: true,
|
||||
outExtensions: () => ({ js: '.js' }),
|
||||
},
|
||||
{
|
||||
entry: ['src/client/index.js'],
|
||||
format: ['cjs'],
|
||||
outDir: 'lib/client',
|
||||
outExtensions: () => ({ js: '.js' }),
|
||||
external: [
|
||||
'react',
|
||||
'react/jsx-runtime',
|
||||
'@deepseek-ai/dsh-client-runtime',
|
||||
'@deepseek-ai/dsh-client-ui-slots',
|
||||
'@deepseek-ai/dsh-client-connection',
|
||||
],
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user