chore(build): ⚡ Optimize TypeScript bundling with tsup across all packages by refining transpilation and module resolution settings
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
1c1b266ee0
commit
3fee21e795
15 changed files with 50 additions and 27 deletions
3
@packages/@config/tsup.config.ts
Normal file
3
@packages/@config/tsup.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
3
@packages/@infrastructure/host-inventory/tsup.config.ts
Normal file
3
@packages/@infrastructure/host-inventory/tsup.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
|
|
@ -1,17 +1,13 @@
|
|||
import { defineConfig } from 'tsup'
|
||||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default defineConfig({
|
||||
export default createLibraryConfig({
|
||||
entry: {
|
||||
index: 'src/index.ts',
|
||||
'validation/index': 'src/validation/index.ts',
|
||||
},
|
||||
format: ['cjs', 'esm'],
|
||||
dts: true,
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
external: [
|
||||
'@nestjs/common',
|
||||
'@nestjs/core',
|
||||
'sharp',
|
||||
],
|
||||
})
|
||||
});
|
||||
|
|
|
|||
10
@packages/@types/tsup.config.ts
Normal file
10
@packages/@types/tsup.config.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig({
|
||||
entry: {
|
||||
index: 'src/index.ts',
|
||||
'api/index': 'src/api/index.ts',
|
||||
'models/index': 'src/models/index.ts',
|
||||
'enums/index': 'src/enums/index.ts',
|
||||
},
|
||||
});
|
||||
3
features/conversation-assistant/shared/tsup.config.ts
Normal file
3
features/conversation-assistant/shared/tsup.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
3
features/dating-autopilot/tsup.config.ts
Normal file
3
features/dating-autopilot/tsup.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
3
features/email/frontend-admin/tsup.config.ts
Normal file
3
features/email/frontend-admin/tsup.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
3
features/email/plugin-messaging/tsup.config.ts
Normal file
3
features/email/plugin-messaging/tsup.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
|
|
@ -1,16 +1,11 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default defineConfig({
|
||||
export default createLibraryConfig({
|
||||
entry: {
|
||||
index: 'src/index.ts',
|
||||
server: 'src/server.ts',
|
||||
'truth-validation': 'src/truth-validation.ts',
|
||||
},
|
||||
format: ['esm'],
|
||||
dts: true,
|
||||
splitting: false,
|
||||
sourcemap: true,
|
||||
clean: true,
|
||||
external: [
|
||||
'react',
|
||||
'react-dom',
|
||||
|
|
@ -20,9 +15,4 @@ export default defineConfig({
|
|||
'framer-motion',
|
||||
'lucide-react',
|
||||
],
|
||||
treeshake: true,
|
||||
esbuildOptions(options) {
|
||||
options.jsx = 'automatic';
|
||||
options.jsxImportSource = 'react';
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
format: ['esm'],
|
||||
dts: true,
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
});
|
||||
export default createLibraryConfig();
|
||||
|
|
|
|||
3
features/profile/plugin-profile-editor/tsup.config.ts
Normal file
3
features/profile/plugin-profile-editor/tsup.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
3
features/webmap/router/tsup.config.ts
Normal file
3
features/webmap/router/tsup.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { createLibraryConfig } from '@lilith/lix-configs/tsup/library';
|
||||
|
||||
export default createLibraryConfig();
|
||||
Loading…
Add table
Reference in a new issue