removes debug output
This commit is contained in:
parent
eadf186e42
commit
6ef9664f98
1 changed files with 0 additions and 6 deletions
|
@ -94,12 +94,9 @@ async function printVersion() {
|
|||
|
||||
/** Merge CLI flags & config options (CLI flags take priority) */
|
||||
function mergeCLIFlags(astroConfig: AstroConfig, flags: CLIState['options']) {
|
||||
console.log(JSON.stringify(flags, null, 4));
|
||||
console.log(JSON.stringify(astroConfig, null, 4));
|
||||
if (typeof flags.sitemap === 'boolean') astroConfig.buildOptions.sitemap = flags.sitemap;
|
||||
if (typeof flags.port === 'number') astroConfig.devOptions.port = flags.port;
|
||||
if (typeof flags.drafts === 'boolean') astroConfig.buildOptions.draft = flags.drafts;
|
||||
console.log(JSON.stringify(astroConfig, null, 4));
|
||||
}
|
||||
|
||||
/** Handle `astro run` command */
|
||||
|
@ -127,9 +124,6 @@ export async function cli(args: string[]) {
|
|||
const flags = yargs(args);
|
||||
const state = resolveArgs(flags);
|
||||
|
||||
console.log(JSON.stringify(flags, null, 4));
|
||||
console.log(JSON.stringify(state, null, 4));
|
||||
|
||||
switch (state.cmd) {
|
||||
case 'help': {
|
||||
printHelp();
|
||||
|
|
Loading…
Reference in a new issue