Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Reference examples of our in the box tasks [are here](https://github.com/Microso
* __Consistent API:__ The TypeScript and PowerShell libs are largely consistent. They only differ where it makes sense (being true to the platform).
* __Tracing for free:__ Tracing has been built-in to many of the commands. Use the SDK and get some debug tracing for free.

## Typescript Tasks
## TypeScript Tasks

Cross platform tasks are written in Typescript. It is the preferred way to write tasks once.
Cross platform tasks are written in TypeScript. It is the preferred way to write tasks once.

[![NPM version][npm-lib-image]][npm-lib-url] ![VSTS](https://mseng.visualstudio.com/DefaultCollection/_apis/public/build/definitions/b924d696-3eae-4116-8443-9a18392d8544/2553/badge)

Expand Down
6 changes: 3 additions & 3 deletions node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Libraries for writing [Visual Studio Team Services](https://www.visualstudio.com

Reference examples of our in the box tasks [are here](https://github.com/Microsoft/vsts-tasks)

## Typescript Tasks
## TypeScript Tasks

Cross platform tasks are written in Typescript. It is the preferred way to write tasks once.
Cross platform tasks are written in TypeScript. It is the preferred way to write tasks once.

[![NPM version][npm-lib-image]][npm-lib-url]

Step by Step: [Create Task](docs/stepbystep.md)

Documentation: [Typescript API](docs/vsts-task-lib.md), [task JSON schema](https://aka.ms/vsts-tasks.schema.json)
Documentation: [TypeScript API](docs/vsts-task-lib.md), [task JSON schema](https://aka.ms/vsts-tasks.schema.json)

Guidance: [Finding Files](docs/findingfiles.md), [Minimum agent version](docs/minagent.md), [Proxy](docs/proxy.md), [Certificate](docs/cert.md)

Expand Down
6 changes: 4 additions & 2 deletions node/mock-answer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ export interface TaskLibAnswerExecResult {
}

export interface TaskLibAnswers {
which?: { [key: string]: string; },
exec?: { [ key: string]: TaskLibAnswerExecResult },
checkPath?: { [key: string]: boolean },
cwd?: { [key: string]: string },
exec?: { [ key: string]: TaskLibAnswerExecResult },
exist?: { [key: string]: boolean },
find?: { [key: string]: string[] },
findMatch?: { [key: string]: string[] },
ls?: { [key: string]: string },
rmRF?: { [key: string]: { success: boolean } },
which?: { [key: string]: string; },
}

export class MockAnswers {
Expand Down
2 changes: 1 addition & 1 deletion node/mock-toolrunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface IExecSyncResult {

export function debug(message) {
// do nothing, overridden
};
}

export class ToolRunner extends events.EventEmitter {
constructor(toolPath) {
Expand Down