1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-02 18:20:26 +08:00

fix: 修复bundle命令异常

This commit is contained in:
chufan
2025-02-04 22:29:39 +08:00
parent 7d7f29092a
commit 30036a2401

View File

@@ -11,8 +11,8 @@ import { createRequire } from 'node:module'
import process from 'node:process'
import {
OPEN_SOURCE_ADDRESS,
buildImage,
getRecentGitCommit,
VipDocker,
VipGit,
} from '@142vip/utils'
(async () => {
@@ -24,10 +24,10 @@ import {
const imageName = `${OPEN_SOURCE_ADDRESS.DOCKER_ALIYUNCS_VIP}/docs:${pkg.name}-${pkg.version}`
// 最近一次提交信息
const { hash: gitHash } = await getRecentGitCommit()
const { hash: gitHash } = await VipGit.getRecentGitCommit()
// 构建镜像
await buildImage({
await VipDocker.buildImage({
imageName,
buildArgs: [
// 参数中是否包含 --proxy