Skip to content

Commit

Permalink
🚨 Fix code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Oct 18, 2024
1 parent be330e4 commit 69748a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 4 additions & 10 deletions libs/create-qwikdev-astro/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class Application {

async scanBoolean(
message: string,
initialValue: boolean,
initialValue?: boolean,
positional = false
): Promise<boolean> {
return scanBoolean(
Expand All @@ -51,7 +51,7 @@ export class Application {

async scanString(
message: string,
initialValue: string,
initialValue?: string,
positional = false
): Promise<string> {
return scanString(message, initialValue, this.#config.it, positional);
Expand Down Expand Up @@ -127,7 +127,6 @@ export class Application {
try {
intro(`Let's create a ${bgBlue(" QwikDev/astro App ")} ✨`);

const packageManager = getPackageManager();
const projectAnswer = await this.scanProjectDirectory();
const adapter = await this.scanAdapter();
const preferBiome = await this.scanPreferBiome();
Expand All @@ -140,7 +139,7 @@ export class Application {
const templatePath = path.join(__dirname, "..", "stubs", "templates", starterKit);
const outDir: string = resolveAbsoluteDir(projectAnswer.trim());

await this.createProject(templatePath, outDir, projectAnswer, adapter);
await this.createProject(outDir);
this.copyTemplate(templatePath, outDir);
await this.updatePackageJson(projectAnswer, outDir);
await this.runCI(outDir);
Expand All @@ -153,12 +152,7 @@ export class Application {
}
}

async createProject(
templatePath: string,
outDir: string,
projectAnswer: string,
adapter: Adapter
): Promise<void> {
async createProject(outDir: string): Promise<void> {
log.step(`Creating new project in ${bgBlue(` ${outDir} `)} ... 🐇`);

if (fs.existsSync(outDir) && fs.readdirSync(outDir).length > 0) {
Expand Down
4 changes: 2 additions & 2 deletions libs/create-qwikdev-astro/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,11 @@ export const $pmRun = async (script: string, cwd: string) => {
};

export const $pmExec = async (command: string, cwd: string) => {
await $pm("exec", command, cwd);
await $pm(["exec", command], cwd);
};

export const $pmDlx = async (binary: string, cwd: string) => {
await $pm("dlx", binary, cwd);
await $pm(["dlx", binary], cwd);
};

export async function scanString(
Expand Down

0 comments on commit 69748a8

Please sign in to comment.