-
Notifications
You must be signed in to change notification settings - Fork 3
/
xus.config.ts
61 lines (60 loc) · 1.26 KB
/
xus.config.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { defineConfig } from '@xus/cli'
export default defineConfig({
libBuild: {
target: 'node12',
formats: ['cjs'],
minify: false,
alwaysEmptyDistDir: true,
rollTypes: true,
sourcemap: false,
disableFormatPostfix: true,
rollupChain(rc, pkgDir) {
if (pkgDir === 'cli') {
rc.input({
index: './src/index.ts',
xus: './src/xus.ts'
})
}
return rc
},
lerna: {
pkgsOrder: [
'cli-shared',
'core',
'cli-types',
'plugin-cmd-roll-lib',
'preset-built-in',
'cli'
],
excludePkgs: ['playground', 'plugin-lib-vue']
},
afterBuild: [
{
bin: 'yarn',
args: ['copy:preset'],
message: {
start: 'copy preset template start',
failed: 'copy preset template failed',
succeed: 'copy preset template succeed'
}
},
{
bin: 'yarn',
args: ['copy:create'],
message: {
start: 'copy create-lib template start',
failed: 'copy create-lib template failed',
succeed: 'copy create-lib template succeed'
}
}
]
},
release: {
branch: 'main'
},
lint: {
eslint: {
ext: ['.ts']
}
}
})