mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
05a822455c
* chore: publish bundled public type declarations * chore: keep package root exports value-only
55 lines
986 B
TypeScript
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,
|
|
},
|
|
},
|
|
],
|
|
});
|