dugite-extra
Advanced tools
Comparing version 0.0.1-alpha.17 to 0.0.1-alpha.18
@@ -54,24 +54,27 @@ "use strict"; | ||
repositoryWithChanges = path.join(os.homedir(), '.git'); | ||
before(function () { return __awaiter(_this, void 0, void 0, function () { | ||
var tmpPath; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (fs.existsSync(repositoryWithChanges)) { | ||
fs.removeSync(repositoryWithChanges); | ||
} | ||
return [4 /*yield*/, clone_1.clone('https://github.com/eclipse/xtext-core.git', repositoryWithChanges)]; | ||
case 1: | ||
_a.sent(); | ||
tmpPath = path.join(repositoryWithChanges, 'tmp'); | ||
fs.mkdirpSync(tmpPath); | ||
fs.readdirSync(repositoryWithChanges).forEach(function (fileName) { | ||
if (fileName.startsWith('org.eclipse.xtext')) { | ||
fs.moveSync(path.join(repositoryWithChanges, fileName), path.join(tmpPath, fileName)); | ||
before(function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var tmpPath; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
this.timeout(80000); | ||
if (fs.existsSync(repositoryWithChanges)) { | ||
fs.removeSync(repositoryWithChanges); | ||
} | ||
}); | ||
return [2 /*return*/]; | ||
} | ||
return [4 /*yield*/, clone_1.clone('https://github.com/eclipse/xtext-core.git', repositoryWithChanges)]; | ||
case 1: | ||
_a.sent(); | ||
tmpPath = path.join(repositoryWithChanges, 'tmp'); | ||
fs.mkdirpSync(tmpPath); | ||
fs.readdirSync(repositoryWithChanges).forEach(function (fileName) { | ||
if (fileName.startsWith('org.eclipse.xtext')) { | ||
fs.moveSync(path.join(repositoryWithChanges, fileName), path.join(tmpPath, fileName)); | ||
} | ||
}); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}); }); | ||
}); | ||
after(function () { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -78,0 +81,0 @@ return __generator(this, function (_a) { |
{ | ||
"name": "dugite-extra", | ||
"version": "0.0.1-alpha.17", | ||
"version": "0.0.1-alpha.18", | ||
"description": "High-level Git commands for dugite.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
@@ -18,3 +18,4 @@ import * as temp from 'temp'; | ||
before(async () => { | ||
before(async function () { | ||
this.timeout(80000); | ||
if (fs.existsSync(repositoryWithChanges)) { | ||
@@ -21,0 +22,0 @@ fs.removeSync(repositoryWithChanges); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
594701
10677