Skip to content

Commit 9b82ae4

Browse files
Fix autorest path. (#144)
* AutoRest path * Fix AutoRest path 0.6.0 * 0.6.0
1 parent 73dbb51 commit 9b82ae4

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.6.0 Released on 2019-04-22
4+
5+
* Fixed autorest path.
6+
37
## 0.5.2 Release on 2019-04-19.
48

59
* Fixed issue with null Enums.

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/oad",
3-
"version": "0.5.2",
3+
"version": "0.6.0",
44
"author": {
55
"name": "Microsoft Corporation",
66
"email": "[email protected]",

src/lib/validators/openApiDiff.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ export class OpenApiDiff {
131131

132132
// When oad is installed globally
133133
{
134-
const result = path.join(__dirname, "..", "..", "node_modules", "autorest", "app.js")
134+
const result = path.join(__dirname, "..", "..", "..", "node_modules", "autorest", "app.js")
135135
if (fs.existsSync(result)) {
136136
return `node ${result}`
137137
}
138138
}
139139

140140
// When oad is installed locally
141141
{
142-
const result = path.join(__dirname, "..", "..", "..", "autorest", "app.js")
142+
const result = path.join(__dirname, "..", "..", "..", "..", "autorest", "app.js")
143143
if (fs.existsSync(result)) {
144144
return `node ${result}`
145145
}

0 commit comments

Comments
 (0)