diff --git a/.changeset/thirty-geckos-sit.md b/.changeset/thirty-geckos-sit.md new file mode 100644 index 00000000..ba0c277e --- /dev/null +++ b/.changeset/thirty-geckos-sit.md @@ -0,0 +1,5 @@ +--- +"dmno": patch +--- + +fix resolve format json-full diff --git a/packages/core/src/cli/commands/resolve.command.ts b/packages/core/src/cli/commands/resolve.command.ts index a43984fd..f7655411 100644 --- a/packages/core/src/cli/commands/resolve.command.ts +++ b/packages/core/src/cli/commands/resolve.command.ts @@ -1,5 +1,5 @@ import kleur from 'kleur'; -import _ from 'lodash-es'; +import * as _ from 'lodash-es'; import { tryCatch } from '@dmno/ts-lib'; import { outdent } from 'outdent'; import boxen from 'boxen'; @@ -79,8 +79,10 @@ program.action(async (opts: { // console.log(service.config); if (opts.format === 'json') { console.log(JSON.stringify(getExposedConfigValues())); - } else if (opts.format === 'json-full') { + } else if (opts.format === 'debug') { console.dir(service, { depth: null }); + } else if (opts.format === 'json-full') { + console.log(JSON.stringify(service)); } else if (opts.format === 'json-injected') { const { injectedDmnoEnv } = await ctx.dmnoServer.makeRequest('getServiceResolvedConfig', ctx.selectedService.serviceName); console.log(JSON.stringify(injectedDmnoEnv));