This repository was archived by the owner on Jan 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed
core/docz-core/src/commands Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -3,22 +3,18 @@ import * as logger from 'signale'
33
44import { parseConfig } from '../config/docz'
55import { bundler as gatsby } from '../bundler'
6- import { getIsFirstInstall } from '../bundler/machine/actions'
76import { init } from './init'
87import { copyDoczRc } from '../bundler/machine/services/create-resources'
98
109export const build = async ( args : Arguments < any > ) => {
1110 copyDoczRc ( args . config )
1211 const config = await parseConfig ( args )
1312 const bundler = gatsby ( config )
14- const isFirstInstall = getIsFirstInstall ( )
1513
16- if ( isFirstInstall ) {
17- try {
18- await init ( args )
19- } catch ( err ) {
20- throw new Error ( `Failed to initialize docz : ${ err . message } ` )
21- }
14+ try {
15+ await init ( args )
16+ } catch ( err ) {
17+ logger . error ( `Failed to initialize docz : ${ err . message } ` )
2218 }
2319
2420 try {
Original file line number Diff line number Diff line change @@ -23,11 +23,4 @@ export const init = async (args: Arguments<any>) => {
2323 doczrcFilepath,
2424 }
2525 await createResources ( serverMachineContext )
26- console . log ( )
27- console . log ( `✅ Docz is ready to go ` )
28- console . log ( )
29- console . log ( `💻 yarn docz dev` )
30- console . log ( `⛏ yarn docz build` )
31- console . log ( `👀 yarn docz serve` )
32- console . log ( )
3326}
You can’t perform that action at this time.
0 commit comments