We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
kiaking
brc-dd
posva
Learn more about funding links in repositories.
Report abuse
1 parent 63f6381 commit 09fcc46Copy full SHA for 09fcc46
.gitignore
@@ -12,3 +12,4 @@ pnpm-global
12
TODOs.md
13
.temp
14
*.tgz
15
+examples-temp
src/node/cli.ts
@@ -28,10 +28,14 @@ if (!command || command === 'dev') {
28
process.exit(1)
29
})
30
} else if (command === 'build') {
31
- build(root, argv).catch((err) => {
32
- console.error(c.red(`build error:\n`), err)
33
- process.exit(1)
34
- })
+ build(root, argv)
+ .then(() => {
+ process.exit()
+ })
35
+ .catch((err) => {
36
+ console.error(c.red(`build error:\n`), err)
37
+ process.exit(1)
38
39
} else if (command === 'serve') {
40
serve(argv).catch((err) => {
41
console.error(c.red(`failed to start server. error:\n`), err)
0 commit comments