Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pgpm/cli/src/commands/init/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async function handleInit(argv: Partial<Record<string, any>>, prompter: Inquirer
const { cwd = process.cwd() } = argv;
const templateRepo = (argv.repo as string) ?? DEFAULT_TEMPLATE_REPO;
const branch = argv.fromBranch as string | undefined;
const noTty = Boolean((argv as any).noTty || argv['no-tty'] || process.env.CI === 'true');
const noTty = Boolean((argv as any).noTty || argv['no-tty'] || argv.tty === false || process.env.CI === 'true');
const useBoilerplatePrompt = Boolean(argv.boilerplate);
const createWorkspace = Boolean(argv.createWorkspace || argv['create-workspace'] || argv.w);

Expand Down Expand Up @@ -413,7 +413,7 @@ async function handleModuleInit(
}

if (!resolvedWorkspacePath) {
const noTty = Boolean((argv as any).noTty || argv['no-tty'] || process.env.CI === 'true');
const noTty = Boolean((argv as any).noTty || argv['no-tty'] || argv.tty === false || process.env.CI === 'true');

// Handle --create-workspace flag: create workspace first, then module
if (ctx.createWorkspace && (workspaceType === 'pgpm' || workspaceType === 'pnpm')) {
Expand Down
2 changes: 1 addition & 1 deletion pgpm/cli/src/commands/init/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default async function runWorkspaceSetup(
workspaceName: answers.name
},
toolName: DEFAULT_TEMPLATE_TOOL_NAME,
noTty: Boolean((argv as any).noTty || argv['no-tty'] || process.env.CI === 'true'),
noTty: Boolean((argv as any).noTty || argv['no-tty'] || argv.tty === false || process.env.CI === 'true'),
cwd,
prompter
});
Expand Down