Skip to content

Commit

Permalink
chore(jiek): eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
NWYLZW committed Jan 3, 2025
1 parent 4156975 commit e8b4733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/jiek/src/rollup/base.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { InputPluginOption, OutputOptions } from 'rollup'
import { ReplaceOptions, Replacements } from './plugins/replace'
import type { ReplaceOptions, Replacements } from './plugins/replace'

export type Mapping2ROO<K extends keyof OutputOptions> = OutputOptions[K] | {
js?: OutputOptions[K]
Expand Down
4 changes: 3 additions & 1 deletion packages/jiek/src/utils/tsRegister.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import process from 'node:process'

function packageIsExist(name: string) {
try {
require.resolve(name)
return true
} catch (e) {
} catch {
return false
}
}
Expand Down

0 comments on commit e8b4733

Please sign in to comment.