Files
callstack__agent-device/rslib.config.ts
T
Michał Pierzchała 05a822455c chore: publish bundled public type declarations (#262)
* chore: publish bundled public type declarations

* chore: keep package root exports value-only
2026-03-25 18:40:36 +01:00

55 lines
986 B
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',
},
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',
daemon: 'src/daemon.ts',
},
tsconfigPath: 'tsconfig.lib.json',
},
output: {
distPath: {
root: path.join('dist', 'src'),
},
minify: true,
},
},
],
});