From 67ca75a4314e3c14162c64f88d0c8fdcc2596e0f Mon Sep 17 00:00:00 2001 From: Utkarsh Shigihalli Date: Sat, 23 Feb 2019 14:25:36 +0000 Subject: [PATCH] use new task library --- package.json | 4 +- tasks/.taskkey | 2 +- .../DownloadRepo/DownloadRepoV1/gitwrapper.ts | 4 +- tasks/DownloadRepo/DownloadRepoV1/index.ts | 2 +- .../DownloadRepoV1/package-lock.json | 44 +++++++++---------- .../DownloadRepo/DownloadRepoV1/package.json | 10 +++-- 6 files changed, 35 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index e01eb35..0a7932f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "repository": { "type": "git", - "url": "https://onlyutkarsh.visualstudio.com/DefaultCollection/VSTSExtensions/_git/gitlab-artifact-integration" + "url": "https://github.com/onlyutkarsh/gitlab-integration.git" }, "keywords": [ "vsts", @@ -54,4 +54,4 @@ "typescript": "^3.0.1", "yargs": "~13.2.1" } -} \ No newline at end of file +} diff --git a/tasks/.taskkey b/tasks/.taskkey index a400294..ac8953f 100644 --- a/tasks/.taskkey +++ b/tasks/.taskkey @@ -1 +1 @@ -5e084fdf-7994-49dc-8d9a-e7879bbc58ce \ No newline at end of file +d9eaeb78-a2c1-41bd-ada6-02b358fbf372 \ No newline at end of file diff --git a/tasks/DownloadRepo/DownloadRepoV1/gitwrapper.ts b/tasks/DownloadRepo/DownloadRepoV1/gitwrapper.ts index b6c9967..8a211da 100644 --- a/tasks/DownloadRepo/DownloadRepoV1/gitwrapper.ts +++ b/tasks/DownloadRepo/DownloadRepoV1/gitwrapper.ts @@ -1,5 +1,5 @@ -import * as tl from "vsts-task-lib"; -import * as trm from "vsts-task-lib/toolrunner"; +import * as tl from "azure-pipelines-task-lib"; +import * as trm from "azure-pipelines-task-lib/toolrunner"; import * as events from "events"; import * as path from "path"; diff --git a/tasks/DownloadRepo/DownloadRepoV1/index.ts b/tasks/DownloadRepo/DownloadRepoV1/index.ts index 9141828..789c4b7 100644 --- a/tasks/DownloadRepo/DownloadRepoV1/index.ts +++ b/tasks/DownloadRepo/DownloadRepoV1/index.ts @@ -1,4 +1,4 @@ -import * as tl from "vsts-task-lib"; +import * as tl from "azure-pipelines-task-lib"; import * as url from "url"; import * as path from "path"; import { GitWrapper, IGitExecOptions } from "./gitwrapper"; diff --git a/tasks/DownloadRepo/DownloadRepoV1/package-lock.json b/tasks/DownloadRepo/DownloadRepoV1/package-lock.json index df3cecd..2c19a23 100644 --- a/tasks/DownloadRepo/DownloadRepoV1/package-lock.json +++ b/tasks/DownloadRepo/DownloadRepoV1/package-lock.json @@ -13,6 +13,19 @@ "is-buffer": "^1.1.5" } }, + "azure-pipelines-task-lib": { + "version": "2.7.7", + "resolved": "https://registry.npmjs.org/azure-pipelines-task-lib/-/azure-pipelines-task-lib-2.7.7.tgz", + "integrity": "sha512-4KBPheFTxTDqvaY0bjs9/Ab5yb2c/Y5u8gd54UGL2xhGbv2eoahOZPerAUY/vKsUDu2mjlP/JAWTlDv7dghdRQ==", + "requires": { + "minimatch": "3.0.4", + "mockery": "^1.7.0", + "q": "^1.1.2", + "semver": "^5.1.0", + "shelljs": "^0.3.0", + "uuid": "^3.0.1" + } + }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -54,9 +67,9 @@ } }, "fs-extra": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.0.tgz", - "integrity": "sha512-EglNDLRpmaTWiD/qraZn6HREAEAHJcJOmxNEYwq6xeMKnVMAy3GUcFB+wXt2C6k4CNvB/mP1y/U3dzvKKj5OtQ==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", "requires": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", @@ -64,9 +77,9 @@ } }, "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==" }, "inherits": { "version": "2.0.3", @@ -124,9 +137,9 @@ "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" }, "semver": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz", - "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==" + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==" }, "shelljs": { "version": "0.3.0", @@ -150,19 +163,6 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" - }, - "vsts-task-lib": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/vsts-task-lib/-/vsts-task-lib-2.6.0.tgz", - "integrity": "sha512-ja2qX4BIUvswcNbGtIoGo1SM5mRVc3Yaf7oM4oY64bNHs04chKfvH6f3cDDG0pd44OrZIGQE9LgECzeau6z2wA==", - "requires": { - "minimatch": "3.0.4", - "mockery": "^1.7.0", - "q": "^1.1.2", - "semver": "^5.1.0", - "shelljs": "^0.3.0", - "uuid": "^3.0.1" - } } } } diff --git a/tasks/DownloadRepo/DownloadRepoV1/package.json b/tasks/DownloadRepo/DownloadRepoV1/package.json index de4c118..0065e24 100644 --- a/tasks/DownloadRepo/DownloadRepoV1/package.json +++ b/tasks/DownloadRepo/DownloadRepoV1/package.json @@ -3,6 +3,10 @@ "version": "0.0.0", "description": "download artifact task", "main": "index.js", + "repository": { + "type": "git", + "url": "https://github.com/onlyutkarsh/gitlab-integration.git" + }, "scripts": { "clean-task": "npm dedupe && npm prune --production" }, @@ -10,9 +14,9 @@ "license": "ISC", "dependencies": { "axios": "^0.18.0", + "azure-pipelines-task-lib": "~2.7.7", "events": "^3.0.0", - "fs-extra": "^7.0.0", - "path": "^0.12.7", - "vsts-task-lib": "^2.6.0" + "fs-extra": "^7.0.1", + "path": "^0.12.7" } }