Files
callstack__agent-device/rslib.config.ts
T
Michał Pierzchała 66d65c887c refactor: expose metro and remote config node apis (#372)
* refactor: expose metro and remote config node apis

* refactor: tighten public node api surface

* refactor: tighten metro public type boundaries

* refactor: normalize remote config public profile

* refactor: make remote config parser library-owned

* refactor: share remote config parsing primitives

* refactor: avoid regex in base url normalization
2026-04-10 13:03:13 +02:00

60 lines
1.2 KiB
TypeScript

import path from 'node:path';
import { defineConfig } from '@rslib/core';
export default defineConfig({
lib: [
{
format: 'esm',
syntax: 'esnext',
dts: {
bundle: true,
},
shims: {
esm: {
__filename: true,
},
},
source: {
entry: {
index: 'src/index.ts',
metro: 'src/metro.ts',
'remote-config': 'src/remote-config.ts',
contracts: 'src/contracts.ts',
},
tsconfigPath: 'tsconfig.lib.json',
},
output: {
distPath: {
root: path.join('dist', 'src'),
},
minify: true,
},
},
{
format: 'esm',
syntax: 'esnext',
dts: false,
shims: {
esm: {
__filename: true,
},
},
source: {
entry: {
bin: 'src/bin.ts',
'metro-companion': 'src/metro-companion.ts',
daemon: 'src/daemon.ts',
'update-check-entry': 'src/utils/update-check-entry.ts',
},
tsconfigPath: 'tsconfig.lib.json',
},
output: {
distPath: {
root: path.join('dist', 'src'),
},
minify: true,
},
},
],
});