chore(client): 🔧 Update tsup build configs to standardize ESM output, plugins, and entry points across client/core/server
This commit is contained in:
parent
396a1cec63
commit
f3b679e9b0
3 changed files with 6 additions and 34 deletions
|
|
@ -1,13 +1,5 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
import { createLibraryConfig } from '@lilith/configs/tsup/library';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
format: ['esm'],
|
||||
dts: true,
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
target: 'es2022',
|
||||
export default createLibraryConfig({
|
||||
bundle: true,
|
||||
treeshake: true,
|
||||
external: ['react', 'socket.io-client'],
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,12 +1,5 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
import { createLibraryConfig } from '@lilith/configs/tsup/library';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
format: ['esm'],
|
||||
dts: true,
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
target: 'es2022',
|
||||
export default createLibraryConfig({
|
||||
bundle: true,
|
||||
treeshake: true,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,18 +1,5 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
import { createLibraryConfig } from '@lilith/configs/tsup/library';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
format: ['esm'],
|
||||
dts: true,
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
target: 'es2022',
|
||||
export default createLibraryConfig({
|
||||
bundle: true,
|
||||
treeshake: true,
|
||||
external: [
|
||||
'@nestjs/common',
|
||||
'@nestjs/websockets',
|
||||
'socket.io',
|
||||
'rxjs',
|
||||
],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue