refactor: remove star imports (#196)

This commit is contained in:
Khải
2025-12-10 19:14:52 +07:00
committed by GitHub
parent e94b270858
commit 61bc82c7df
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import path from 'path'
import { execPath } from 'process'
import util from 'util'
import { Inputs } from '../inputs'
import YAML from 'yaml'
import { parse as parseYaml } from 'yaml'
export async function runSelfInstaller(inputs: Inputs): Promise<number> {
const { version, dest, packageJsonFile, standalone } = inputs
@@ -63,7 +63,7 @@ async function readTarget(opts: {
try {
const content = readFileSync(path.join(GITHUB_WORKSPACE, packageJsonFile), 'utf8');
({ packageManager } = packageJsonFile.endsWith(".yaml")
? YAML.parse(content, { merge: true })
? parseYaml(content, { merge: true })
: JSON.parse(content)
)
} catch (error: unknown) {