mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-02-02 18:20:26 +08:00
fix: 修复bundle脚本构建异常
This commit is contained in:
@@ -10,19 +10,18 @@
|
||||
import { createRequire } from 'node:module'
|
||||
import process from 'node:process'
|
||||
import {
|
||||
VipDockerAddress,
|
||||
OPEN_SOURCE_ADDRESS,
|
||||
buildImage,
|
||||
getRecentGitCommit,
|
||||
} from '@142vip/utils'
|
||||
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
// 获取package.json文件
|
||||
const pkg = createRequire(import.meta.url)('../package.json')
|
||||
|
||||
// 镜像地址
|
||||
const imageName = `${VipDockerAddress}/docs:${pkg.name}-${pkg.version}`
|
||||
const imageName = `${OPEN_SOURCE_ADDRESS.DOCKER_ALIYUNCS_VIP}/docs:${pkg.name}-${pkg.version}`
|
||||
|
||||
// 最近一次提交信息
|
||||
const { hash: gitHash } = await getRecentGitCommit()
|
||||
@@ -46,7 +45,8 @@ import {
|
||||
delete: true,
|
||||
logger: true,
|
||||
})
|
||||
} catch (e) {
|
||||
}
|
||||
catch (e) {
|
||||
console.log('异常信息:', e)
|
||||
}
|
||||
})()
|
||||
|
||||
Reference in New Issue
Block a user