Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
refactor: fix deepSource issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SidStraw authored and DanSnow committed Nov 29, 2023
1 parent 4a759b9 commit 4579818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/karbon/src/cli/bundle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
6 changes: 3 additions & 3 deletions packages/karbon/src/cli/karbon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
Expand Down

0 comments on commit 4579818

Please sign in to comment.