removes debug output

This commit is contained in:
ewatch 2021-06-21 19:38:04 +02:00 committed by Nate Moore
parent eadf186e42
commit 6ef9664f98

View file

@ -94,12 +94,9 @@ async function printVersion() {
/** Merge CLI flags & config options (CLI flags take priority) */ /** Merge CLI flags & config options (CLI flags take priority) */
function mergeCLIFlags(astroConfig: AstroConfig, flags: CLIState['options']) { 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.sitemap === 'boolean') astroConfig.buildOptions.sitemap = flags.sitemap;
if (typeof flags.port === 'number') astroConfig.devOptions.port = flags.port; if (typeof flags.port === 'number') astroConfig.devOptions.port = flags.port;
if (typeof flags.drafts === 'boolean') astroConfig.buildOptions.draft = flags.drafts; if (typeof flags.drafts === 'boolean') astroConfig.buildOptions.draft = flags.drafts;
console.log(JSON.stringify(astroConfig, null, 4));
} }
/** Handle `astro run` command */ /** Handle `astro run` command */
@ -127,9 +124,6 @@ export async function cli(args: string[]) {
const flags = yargs(args); const flags = yargs(args);
const state = resolveArgs(flags); const state = resolveArgs(flags);
console.log(JSON.stringify(flags, null, 4));
console.log(JSON.stringify(state, null, 4));
switch (state.cmd) { switch (state.cmd) {
case 'help': { case 'help': {
printHelp(); printHelp();