1
0
mirror of synced 2025-11-06 04:21:02 +08:00

build: 发布后更新docs依赖

This commit is contained in:
roymondchen
2022-07-14 20:55:54 +08:00
parent 4c5817a922
commit 518fc474ba

View File

@@ -31,6 +31,7 @@ const runIfNotDry = isDryRun ? dryRun : run;
const getPkgRoot = (pkg) => path.resolve(__dirname, `../packages/${pkg}`);
const getRunTimeRoot = (pkg) => path.resolve(__dirname, `../runtime/${pkg}`);
const getPlayground = () => path.resolve(__dirname, `../playground`);
const getDocs = () => path.resolve(__dirname, `../docs`);
const step = (msg) => console.log(chalk.cyan(msg));
async function main() {
@@ -140,6 +141,7 @@ function updateVersions(version) {
packages.forEach((p) => updatePackage(getPkgRoot(p), version));
['vue3', 'react', 'vue2'].forEach((p) => updatePackage(getRunTimeRoot(p), version));
updatePackage(getPlayground(), version);
updatePackage(getDocs(), version);
}
function updatePackage(pkgRoot, version) {