forked from callstack/agent-device
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrslib.config.ts
More file actions
46 lines (45 loc) · 1.23 KB
/
rslib.config.ts
File metadata and controls
46 lines (45 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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',
io: 'src/io.ts',
artifacts: 'src/artifacts.ts',
batch: 'src/batch.ts',
metro: 'src/metro.ts',
'remote-config': 'src/remote-config.ts',
'install-source': 'src/install-source.ts',
'android-adb': 'src/android-adb.ts',
'android-snapshot-helper': 'src/android-snapshot-helper.ts',
contracts: 'src/contracts.ts',
selectors: 'src/selectors.ts',
finders: 'src/finders.ts',
'internal/bin': 'src/bin.ts',
'internal/companion-tunnel': 'src/companion-tunnel.ts',
'internal/daemon': 'src/daemon.ts',
'internal/update-check-entry': 'src/utils/update-check-entry.ts',
},
tsconfigPath: 'tsconfig.lib.json',
},
output: {
distPath: {
root: path.join('dist', 'src'),
},
minify: true,
},
},
],
});