Skip to content

Commit

Permalink
chore: fix selftest
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Feb 12, 2024
1 parent f4af8be commit e18f071
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"allowSyntheticDefaultImports": true,
"lib": ["esnext"],
"sourceMap": true,
"typeRoots": ["./node_modules/typings"],
"paths": {
"semver": ["./node_modules/typings/semver/index.d.ts"]
}
"typeRoots": ["./node_modules/typings"]
}
}
3 changes: 2 additions & 1 deletion utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import type {
} from './types.d.ts'
import { detect, AGENTS, Agent, getCommand } from '@antfu/ni'
import actionsCore from '@actions/core'
import * as semver from 'semver'
// @ts-expect-error TODO
const semver: typeof import('./node_modules/typings/semver/index.d.ts') = await import('semver')

const isGitHubActions = !!process.env.GITHUB_ACTIONS

Expand Down

0 comments on commit e18f071

Please sign in to comment.