Skip to content

Commit a3f0c0d

Browse files
Merge pull request #1767 from Azure/antmarti/fix_autorest
Specify full path for autorest invokation
2 parents bfb8fe5 + 7cda634 commit a3f0c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async function handleGeneratedSchema(readme: string, schemaPath: string, autoGen
100100
}
101101

102102
async function execAutoRest(tmpFolder: string, params: string[]) {
103-
await executeCmd(__dirname, autorestBinary, params);
103+
await executeCmd(__dirname, `${__dirname}/node_modules/.bin/${autorestBinary}`, params);
104104
if (!await fileExists(tmpFolder)) {
105105
return [];
106106
}

0 commit comments

Comments
 (0)