-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.dumirc.ts
33 lines (32 loc) · 898 Bytes
/
.dumirc.ts
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
import { defineConfig } from 'dumi';
import path from 'path';
export default defineConfig({
outputPath: 'docs-dist',
publicPath: '/dumi-lerna-demo/',
base: '/dumi-lerna-demo/',
title: 'dumi-lerna-demo',
apiParser: {},
resolve: {
atomDirs: [
{ type: 'demo1', dir: 'packages/demo1/src' },
{ type: 'demo1', dir: 'packages/demo1/src/utils' },
{ type: 'demo2', dir: 'packages/demo2/src' },
],
entryFile: './.dumi/resolve-entry.ts',
},
alias: {
'@liangskyli/demo1': path.join(__dirname, 'packages/demo1/src'),
'@liangskyli/demo2': path.join(__dirname, 'packages/demo2/src'),
},
themeConfig: {
name: 'demo',
footer: 'Open-source MIT Licensed | Copyright © 2023-present',
socialLinks: {
github: 'https://github.com/liangskyli/dumi-lerna-demo',
},
},
monorepoRedirect: {
srcDir: ['src'],
peerDeps: true,
},
});