Skip to content

Commit

Permalink
Migrate DownloadGitHubNpmPackageV1 task to Node10 (#16019)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Golubev <v-igolubev@microsoft.com>
Co-authored-by: Max Podriezov <maxpodriezov@microsoft.com>
  • Loading branch information
3 people authored Jul 15, 2022
1 parent da56fb8 commit 0ee7b4d
Show file tree
Hide file tree
Showing 8 changed files with 426 additions and 208 deletions.
22 changes: 0 additions & 22 deletions Tasks/DownloadGitHubNpmPackageV1/make.json

This file was deleted.

2 changes: 1 addition & 1 deletion Tasks/DownloadGitHubNpmPackageV1/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {IExecSyncResult} from 'azure-pipelines-task-lib/toolrunner';
import * as tl from 'azure-pipelines-task-lib/task';

import * as npminstall from './npminstall';
import * as util from 'packaging-common/util';
import * as util from 'azure-pipelines-tasks-packaging-common/util';

async function main(): Promise<void> {
tl.setResourcePath(path.join(__dirname, 'task.json'));
Expand Down
4 changes: 2 additions & 2 deletions Tasks/DownloadGitHubNpmPackageV1/npminstall.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as tl from 'azure-pipelines-task-lib/task';

import { NpmToolRunner } from './npmtoolrunner';
import * as util from 'packaging-common/util';
import * as npmutil from 'packaging-common/npm/npmutil';
import * as util from 'azure-pipelines-tasks-packaging-common/util';
import * as npmutil from 'azure-pipelines-tasks-packaging-common/npm/npmutil';
import * as path from 'path';
import * as httpClient from 'typed-rest-client/HttpClient';

Expand Down
6 changes: 3 additions & 3 deletions Tasks/DownloadGitHubNpmPackageV1/npmtoolrunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import * as Q from 'q';
import * as tl from 'azure-pipelines-task-lib/task';
import * as tr from 'azure-pipelines-task-lib/toolrunner';

import * as util from 'packaging-common/util';
import * as npmutil from 'packaging-common/npm/npmutil';
import * as telemetry from 'utility-common/telemetry';
import * as util from 'azure-pipelines-tasks-packaging-common/util';
import * as npmutil from 'azure-pipelines-tasks-packaging-common/npm/npmutil';
import * as telemetry from 'azure-pipelines-tasks-utility-common/telemetry';

export class NpmToolRunner extends tr.ToolRunner {
private cacheLocation: string;
Expand Down
Loading

0 comments on commit 0ee7b4d

Please sign in to comment.