Skip to content

Commit

Permalink
use local debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskalmar committed Nov 18, 2023
1 parent cab6aa0 commit 96caaf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { hideBin } from 'yargs/helpers';
import fs from 'fs-extra';
import { log } from './log';
import { getPlatformApiToken, platformRunner, runner } from './runner';
import { getVersion, isDockerMode } from './utils';
import { getVersion, isDockerMode, isLocalDebugMode } from './utils';
import { sendFinalizeToAPI } from './api';
import { config, configure, isPlatformModeConfig } from './config';
import { runInDocker } from './docker-runner';
Expand Down Expand Up @@ -60,7 +60,9 @@ if (version) {
);
log.process('info', 'general', '✅ Config successfully initialized');
} else {
await configure();
await configure({
localDebugMode: isLocalDebugMode(),
});

if (isPlatformModeConfig(config)) {
log.process(
Expand Down
3 changes: 1 addition & 2 deletions src/docker-runner/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import execa from 'execa';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { isUpdateMode, shallGenerateMeta } from '../utils';
import { isLocalDebugMode } from '../config';
import { isLocalDebugMode, isUpdateMode, shallGenerateMeta } from '../utils';

type ParsedYargs = {
configDir: 'string';
Expand Down

0 comments on commit 96caaf8

Please sign in to comment.