Skip to content

Commit

Permalink
Update initAction.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
samir-byte authored Oct 31, 2024
1 parent 6f35b9a commit 7f41f8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cli/actions/initAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const runInitAction = async (rootDir: string, isGlobal: boolean): Promise

export async function createConfigFile(rootDir: string, isGlobal: boolean): Promise<boolean> {

const isCancelled = false
const configPath = path.resolve(isGlobal ? getGlobalDirectory() : rootDir, 'repopack.config.json');

const isCreateConfig = await prompts.confirm({
Expand Down Expand Up @@ -75,7 +76,7 @@ export async function createConfigFile(rootDir: string, isGlobal: boolean): Prom
const options = await prompts.group(
{
outputStyle: () => {
if () {
if (isCancelled) {
return;
}
return prompts.select({
Expand All @@ -89,7 +90,7 @@ export async function createConfigFile(rootDir: string, isGlobal: boolean): Prom
});
},
outputFilePath: ({ results }) => {
if () {
if (isCancelled) {
return;
}
const defaultFilePath = defaultFilePathMap[results.outputStyle as RepopackOutputStyle];
Expand Down

0 comments on commit 7f41f8b

Please sign in to comment.