1 Star 0 Fork 824

1477775887899/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
unpublish.js 477 Bytes
Copy Edit Raw Blame History
fxy060608 authored 2019-10-19 18:52 . add unpublish.js
const fs = require('fs')
const path = require('path')
const shellExec = require('shell-exec')
const pkgs = fs.readdirSync(path.resolve(__dirname, 'packages'))
const version = process.argv[2]
if (!version) {
throw new Error('必须传入 version')
}
(async function() {
for (let i = 0; i < pkgs.length; i++) {
console.log(`npm unpublish @dcloudio/${pkgs[i]}@${version}`);
await shellExec(`npm unpublish @dcloudio/${pkgs[i]}@${version}`)
}
})();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/one-hundred-and-forty-s11even/uni-app.git
git@gitee.com:one-hundred-and-forty-s11even/uni-app.git
one-hundred-and-forty-s11even
uni-app
uni-app
dev

Search

0d507c66 1850385 C8b1a773 1850385