Skip to content

Commit 24675bb

Browse files
authored
Merge pull request #728 from webermayank/webermayank/yuidoc-refernce-pathFix
fixed yuidoc path for build reference.ts
2 parents aa803e9 + b5ac3e1 commit 24675bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/scripts/parsers/reference.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ export const saveYuidocOutput = async (
128128
const inPath = path.join(__dirname, "in", inDirName);
129129
console.log(inPath)
130130
await new Promise((resolve, reject) => {
131-
exec(`yuidoc -p --outdir ${outputFilePath} ${flags} ${inputPath}`, { cwd: inPath }, (error, stdout) => {
132-
if (error) {
131+
exec(`yuidoc -p --outdir "${outputFilePath.replace(/"/g, '\\"')}" ${flags} ${inputPath}`, { cwd: inPath }, (error, stdout) => { if (error) {
133132
console.error(`Error running YUIDoc command: ${error}`);
134133
reject(error);
135134
} else {

0 commit comments

Comments
 (0)