-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathrslib.config.ts
More file actions
45 lines (44 loc) · 1.2 KB
/
rslib.config.ts
File metadata and controls
45 lines (44 loc) · 1.2 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
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',
metro: 'src/metro.ts',
'remote-config': 'src/remote-config.ts',
'install-source': 'src/install-source.ts',
'android-apps': 'src/android-apps.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,
},
},
],
});