Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Sep 29, 2024
1 parent 7b8dc26 commit a23baf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/generator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import type { Logger } from '@/logger';
import type { ILogger } from '@/logger/constants';
import type { MaterialsManager } from '@/materials';
import { FsMaterial } from '@/materials/FsMaterial';
import { getGeneratorVersion, getPackageInfo, nodeRequire } from '@/utils';
import { getGeneratorDir } from '@/utils/getGeneratorDir';
import { fs, chalk, ora } from '@modern-js/utils';
import { getGeneratorVersion, getPackageInfo, nodeRequire } from '@/utils';
import type { GeneratorContext, RuntimeCurrent } from './constants';

interface ICreateOptions {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/materials/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import path from 'path';
import type { Logger } from '@/logger';
import {
downloadPackage,
getGeneratorVersion,
getPackageInfo,
nodeRequire,
getGeneratorVersion,
} from '@/utils';
import { FsMaterial } from './FsMaterial';

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/utils/downloadPackage.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os from 'os';
import pacote from 'pacote';
import { CATCHE_VALIDITY_PREIOD } from '@/constants';
import type { Logger } from '@/logger';
import type { ILogger } from '@/logger/constants';
import { fs, semver } from '@modern-js/utils';
import pacote from 'pacote';
import { fsExists } from './fsExists';
import { getNpmVersion } from './getNpmVersion';
import { runInstall } from './packageManager';
import type { ILogger } from '@/logger/constants';

async function isValidCache(cacheDir: string) {
/* generator cache can use
Expand Down

0 comments on commit a23baf4

Please sign in to comment.