Socket
Socket
Sign inDemoInstall

git-dance

Package Overview
Dependencies
19
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.6 to 1.1.0

3

es/index.js

@@ -13,2 +13,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import * as tmp from 'tmp';
// @ts-ignore
import exec from 'await-exec';
const options = usage("Usage: -s <url>").

@@ -24,3 +26,2 @@ option("s", { alias: "src", description: "源仓库", type: "string", demandOption: true }).

}
const exec = require('await-exec');
tmp.dir((err, path, cleanupCallback) => __awaiter(void 0, void 0, void 0, function* () {

@@ -27,0 +28,0 @@ if (err)

@@ -42,2 +42,4 @@ "use strict";

var tmp = require("tmp");
// @ts-ignore
var await_exec_1 = require("await-exec");
var options = (0, yargs_1.usage)("Usage: -s <url>").

@@ -53,3 +55,2 @@ option("s", { alias: "src", description: "源仓库", type: "string", demandOption: true }).

}
var exec = require('await-exec');
tmp.dir(function (err, path, cleanupCallback) { return __awaiter(void 0, void 0, void 0, function () {

@@ -62,15 +63,15 @@ var result;

throw err;
return [4 /*yield*/, exec("git clone --mirror ".concat(options.src, " ").concat(path))];
return [4 /*yield*/, (0, await_exec_1.default)("git clone --mirror ".concat(options.src, " ").concat(path))];
case 1:
result = _a.sent();
console.log(result);
return [4 /*yield*/, exec("git remote update --prune", { cwd: path })];
return [4 /*yield*/, (0, await_exec_1.default)("git remote update --prune", { cwd: path })];
case 2:
result = _a.sent();
console.log(result);
return [4 /*yield*/, exec("git push --all ".concat(options.dst), { cwd: path })];
return [4 /*yield*/, (0, await_exec_1.default)("git push --all ".concat(options.dst), { cwd: path })];
case 3:
result = _a.sent();
console.log(result);
return [4 /*yield*/, exec("git push --tags ".concat(options.dst), { cwd: path })];
return [4 /*yield*/, (0, await_exec_1.default)("git push --tags ".concat(options.dst), { cwd: path })];
case 4:

@@ -77,0 +78,0 @@ result = _a.sent();

{
"name": "git-dance",
"version": "1.0.0-beta.6",
"description": "",
"version": "1.1.0",
"description": "a tool for migrating code between different git repo",
"main": "./lib/index.js",
"bin": "./bin/git-dance.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build:commonjs": "rimraf lib && tsc --target es5 --outDir lib --module commonjs --declaration",
"build:es": "rimraf es && tsc --target es6 --outDir es --module es6",
"build": "pnpm run build:commonjs && pnpm run build:es",
"ts": "ts-node src/",
"prepublishOnly": "pnpm run build"
},
"keywords": [
"git"
"git",
"cli",
"tools"
],
"author": "lexmin0412 <zhangle_dev@outlook.com>",
"author": {
"name": "lexmin0412",
"email": "zhangle_dev@outlook.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lexmin0412/git-dance.git"
},
"license": "ISC",

@@ -33,10 +50,3 @@ "dependencies": {

"jsnext:main": "./es/index.js",
"module": "./es/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build:commonjs": "rimraf lib && tsc --target es5 --outDir lib --module commonjs --declaration",
"build:es": "rimraf es && tsc --target es6 --outDir es --module es6",
"build": "pnpm run build:commonjs && pnpm run build:es",
"ts": "ts-node src/"
}
}
"module": "./es/index.js"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc