1 Star 0 Fork 30

阿刚炖蛋 / NaiveUI

forked from Gitee 极速下载 / NaiveUI 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.pnpmfile.cjs 878 Bytes
一键复制 编辑 原始数据 按行查看 历史
07akioni 提交于 2022-07-07 01:43 . chore: fix typo
// We will lock vue version if there's regression
const lockVueVersion = false
const vueVersion = '3.2.36'
const isSameVersionVuePackage = (pkgName) =>
[
'vue',
'@vue/shared',
'@vue/compiler-sfc',
'@vue/server-renderer',
'@vue/reactivity',
'@vue/reactivity-transform',
'@vue/compiler-dom',
'@vue/compiler-ssr',
'@vue/compiler-core'
].some((name) => name === pkgName)
function readPackage(pkg) {
if (isSameVersionVuePackage(pkg.name)) {
pkg.version = vueVersion
}
;['dependencies', 'peerDependencies'].forEach((depsType) => {
const deps = { ...pkg[depsType] }
for (dep in pkg[depsType]) {
if (isSameVersionVuePackage(dep)) {
deps[dep] = vueVersion
}
}
pkg[depsType] = deps
})
return pkg
}
module.exports = lockVueVersion
? {
hooks: {
readPackage
}
}
: {}
TypeScript
1
https://gitee.com/agangdundan/NaiveUI.git
git@gitee.com:agangdundan/NaiveUI.git
agangdundan
NaiveUI
NaiveUI
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891