mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
build: 发布后更新docs依赖
This commit is contained in:
parent
4c5817a922
commit
fe281cfade
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user