Skip to content

Commit 7a0978e

Browse files
committed
Version 0.2.6: Bugfix for outputDir and outputFile
1 parent 4f128f4 commit 7a0978e

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export INPUT_OUTPUTDIRECTORY = "C:\bicep_files\out" # Or any other existing dire
9797
export INPUT_OUTPUTFILE = "C:\bicep_files\sample1.out.json" # Or any other path/filename to store the generated file
9898
```
9999

100-
5. Run `node src/install/index.js` and `node src/build/index.js` to execute the two tasks.
100+
5. Run `node src/install/index.js` and `node src/run/index.js` to execute the two tasks.
101101

102102
*Note:* the `bicep_files` directory containing `.bicep` files are only for development and testing purposes.
103103

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-devops-bicep-task",
3-
"version": "0.2.2",
3+
"version": "0.2.6",
44
"description": "Tasks for installing Bicep CLI and running Bicep CLI build commands",
55
"main": "index.js",
66
"scripts": {

src/install/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": {
1717
"Major": 0,
1818
"Minor": 2,
19-
"Patch": 2
19+
"Patch": 6
2020
},
2121
"instanceNameFormat": "Install Bicep CLI",
2222
"inputs": [

src/run/task.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": {
1717
"Major": 0,
1818
"Minor": 2,
19-
"Patch": 2
19+
"Patch": 6
2020
},
2121
"instanceNameFormat": "Run Bicep CLI build command",
2222
"inputs": [
@@ -57,22 +57,24 @@
5757
"type": "boolean",
5858
"name": "stdout",
5959
"label": "Print the output to standard output (stdout)",
60+
"defaultValue": "false",
6061
"required": false,
61-
"default": false,
6262
"helpMarkDown": "To print the output to standard output (stdout) or not"
6363
},
6464
{
65-
"type": "filePath",
65+
"type": "string",
6666
"name": "outputDirectory",
6767
"label": "Output directory for .json generated file(s) by Bicep",
68+
"defaultValue": "",
6869
"required": false,
6970
"visibleRule": "stdout = false",
7071
"helpMarkDown": "The output directory for .json generated file(s) by Bicep (will have preference over 'filePath')"
7172
},
7273
{
73-
"type": "filePath",
74+
"type": "string",
7475
"name": "outputFile",
7576
"label": "Output filename for the .json generated file by Bicep",
77+
"defaultValue": "",
7678
"required": false,
7779
"visibleRule": "stdout = false && process = single",
7880
"helpMarkDown": "The output filename for the .json generated file by Bicep"

test/run/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as process from 'process';
22
process.env.INPUT_SOURCEDIRECTORY = '';
33
import glob from 'glob';
4-
import { getFilesList } from '../../src/build/index';
4+
import { getFilesList } from '../../src/run/index';
55

66
jest.mock('glob');
77

vss-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifestVersion": 1,
33
"id": "bicep-tasks",
4-
"version": "0.2.2",
4+
"version": "0.2.6",
55
"name": "Bicep Tasks",
66
"publisher": "piraces",
77
"description": "Provides Azure DevOps tasks to install and run Microsoft Bicep CLI commands (cross-platform)",

0 commit comments

Comments
 (0)