diff --git a/packages/karbon/src/cli/bundle/index.ts b/packages/karbon/src/cli/bundle/index.ts index 34a4d08d..945bce80 100644 --- a/packages/karbon/src/cli/bundle/index.ts +++ b/packages/karbon/src/cli/bundle/index.ts @@ -15,7 +15,6 @@ import { once } from 'remeda' import type { OutputChunk, OutputOptions } from 'rollup' import type { BuildOptions } from 'vite' import invariant from 'tiny-invariant' -import fs from 'fs-extra' import importerChecker from '../plugins/importer-checker' import { ignoreSet, targetSet } from './setting' diff --git a/packages/karbon/src/cli/karbon.ts b/packages/karbon/src/cli/karbon.ts index e5036c0e..2a5d3784 100644 --- a/packages/karbon/src/cli/karbon.ts +++ b/packages/karbon/src/cli/karbon.ts @@ -169,9 +169,9 @@ async function testBuild() { if (packageManager === 'yarn') { await configYarn(path.resolve(tempPath, './.yarnrc.yml')) - // eslint-disable-next-line @typescript-eslint/no-require-imports - const packageJson = require(path.resolve(tempPath, './package.json')) - const version = packageJson?.packageManager?.split?.('@')?.[1] || 'berry' + // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires + const packageJson = require(path.resolve(tempPath, './package.json')) // skipcq: JS-0359 + const version = packageJson?.packageManager?.split?.('@')?.[1] || 'berry' // skipcq: JS-W1043 await $$`yarn set version ${version}` }