1 Star 0 Fork 804

songzhiyong / uni-app

forked from DCloud / uni-app 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
dist-tag-latest.js 535 Bytes
Copy Edit Raw Blame History
fxy060608 authored 2020-02-24 14:27 . chore(release): ignore .DS_Store
const fs = require('fs')
const path = require('path')
const shellExec = require('shell-exec')
const pkgs = fs.readdirSync(path.resolve(__dirname, 'packages')).filter(pkg => pkg.indexOf('.') !== 0)
const version = process.argv[2]
if (!version) {
throw new Error('必须传入 version')
}
(async function() {
for (let i = 0; i < pkgs.length; i++) {
console.log(`npm dist-tag add @dcloudio/${pkgs[i]}@${version} latest`);
await shellExec(`npm dist-tag add @dcloudio/${pkgs[i]}@${version} latest`)
}
})();
JavaScript
1
https://gitee.com/song_zhiyong_my/uni-app.git
git@gitee.com:song_zhiyong_my/uni-app.git
song_zhiyong_my
uni-app
uni-app
master

Search