Skip to content

Commit

Permalink
chore: fix import formatting in init.ts, math-diff.ts, and setup.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgarciadev committed Jun 14, 2024
1 parent 455d6e0 commit cd1d9a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/helpers/init.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { SAFE_ANY } from './type';
import type {SAFE_ANY} from './type';

import { type InitActionOptions, templatesMap } from 'src/actions/init-action';
import {type InitActionOptions, templatesMap} from 'src/actions/init-action';

import { AGENTS, type Agent } from './detect';
import { printMostMatchText } from './math-diff';
import {AGENTS, type Agent} from './detect';
import {printMostMatchText} from './math-diff';

export function checkInitOptions(template: InitActionOptions['template'], agent: Agent) {
if (template) {
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/math-diff.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger } from './logger';
import {Logger} from './logger';

function matchTextScore(text: string, pattern: string) {
let score = 0;
Expand Down
13 changes: 7 additions & 6 deletions src/helpers/setup.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

import { existsSync, writeFileSync } from 'node:fs';
import type {Agent} from './detect';

import { resolver } from 'src/constants/path';
import { pnpmRequired } from 'src/constants/required';
import {existsSync, writeFileSync } from 'node:fs';

import { checkPnpm } from './check';
import { type Agent } from './detect';
import { fixPnpm } from './fix';
import {resolver} from 'src/constants/path';
import {pnpmRequired} from 'src/constants/required';

import {checkPnpm} from './check';
import {fixPnpm} from './fix';

export async function setupPnpm(packageManager: Agent) {
if (packageManager === 'pnpm') {
Expand Down

0 comments on commit cd1d9a5

Please sign in to comment.