Skip to content

Commit 631f31f

Browse files
authored
Updated node version (#10)
1 parent fcb425d commit 631f31f

11 files changed

Lines changed: 2765 additions & 68 deletions

File tree

.github/dependabot.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: 2
2+
updates:
3+
# Monitor npm dependencies in the buildandreleasetask folder
4+
- package-ecosystem: "npm"
5+
directory: "/buildandreleasetask"
6+
schedule:
7+
interval: "weekly"
8+
day: "monday"
9+
time: "09:00"
10+
open-pull-requests-limit: 10
11+
commit-message:
12+
prefix: "chore(deps)"
13+
include: "scope"
14+
labels:
15+
- "dependencies"
16+
- "npm"
17+
# Group all non-major updates into a single PR
18+
groups:
19+
non-major-updates:
20+
update-types:
21+
- "minor"
22+
- "patch"
23+
# Automatically update GitHub Actions if any are added
24+
- package-ecosystem: "github-actions"
25+
directory: "/"
26+
schedule:
27+
interval: "weekly"
28+
day: "monday"
29+
time: "09:00"
30+
commit-message:
31+
prefix: "chore(ci)"
32+
labels:
33+
- "dependencies"
34+
- "github-actions"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ In this example, using Output Format as `Command Line Arguments` we are able to
5555

5656
```yaml
5757
steps:
58-
- task: VariableGroupFormatter@0
58+
- task: VariableGroupFormatter@1
5959
name: variableGroup
6060
displayName: "Format variables"
6161
inputs:

buildandreleasetask/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
node_modules
2+
# Don't commit the bundled dist to git
3+
# Note: The dist folder WILL be included in the extension package via the build process
4+
dist

buildandreleasetask/.vscodeignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Exclude source TypeScript files - we only need the bundled output
2+
*.ts
3+
tsconfig.json
4+
webpack.config.js
5+
6+
# Exclude node_modules - dependencies are bundled in dist/index.js
7+
node_modules/
8+
9+
# Exclude development files
10+
.gitignore
11+
.taskkey
12+
13+
# Include dist/ folder - this contains the bundled output
14+
!dist/

buildandreleasetask/index.js

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
"use strict";
22
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
33
if (k2 === undefined) k2 = k;
4-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4+
var desc = Object.getOwnPropertyDescriptor(m, k);
5+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6+
desc = { enumerable: true, get: function() { return m[k]; } };
7+
}
8+
Object.defineProperty(o, k2, desc);
59
}) : (function(o, m, k, k2) {
610
if (k2 === undefined) k2 = k;
711
o[k2] = m[k];
@@ -11,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1115
}) : function(o, v) {
1216
o["default"] = v;
1317
});
14-
var __importStar = (this && this.__importStar) || function (mod) {
15-
if (mod && mod.__esModule) return mod;
16-
var result = {};
17-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18-
__setModuleDefault(result, mod);
19-
return result;
20-
};
18+
var __importStar = (this && this.__importStar) || (function () {
19+
var ownKeys = function(o) {
20+
ownKeys = Object.getOwnPropertyNames || function (o) {
21+
var ar = [];
22+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23+
return ar;
24+
};
25+
return ownKeys(o);
26+
};
27+
return function (mod) {
28+
if (mod && mod.__esModule) return mod;
29+
var result = {};
30+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31+
__setModuleDefault(result, mod);
32+
return result;
33+
};
34+
})();
2135
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2236
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2337
return new (P || (P = Promise))(function (resolve, reject) {
@@ -67,7 +81,8 @@ function run() {
6781
});
6882
}
6983
catch (err) {
70-
tl.setResult(tl.TaskResult.Failed, err.message);
84+
const errorMessage = err instanceof Error ? err.message : String(err);
85+
tl.setResult(tl.TaskResult.Failed, errorMessage);
7186
}
7287
});
7388
}

buildandreleasetask/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ async function run() {
4343

4444
}
4545
catch (err) {
46-
tl.setResult(tl.TaskResult.Failed, err.message);
46+
const errorMessage = err instanceof Error ? err.message : String(err);
47+
tl.setResult(tl.TaskResult.Failed, errorMessage);
4748
}
4849
}
4950

0 commit comments

Comments
 (0)