chore(dotnet): run dotnet format after generation (#6376)
This commit is contained in:
parent
1a859ebe68
commit
dddfbaaeb2
|
|
@ -24,6 +24,7 @@ const fs = require('fs');
|
||||||
const { parseApi } = require('./api_parser');
|
const { parseApi } = require('./api_parser');
|
||||||
const { Type } = require('./documentation');
|
const { Type } = require('./documentation');
|
||||||
const { EOL } = require('os');
|
const { EOL } = require('os');
|
||||||
|
const { execSync } = require('child_process');
|
||||||
|
|
||||||
const maxDocumentationColumnWidth = 80;
|
const maxDocumentationColumnWidth = 80;
|
||||||
|
|
||||||
|
|
@ -199,6 +200,11 @@ const customTypeNames = new Map([
|
||||||
out.push(`\t${escapedName},`);
|
out.push(`\t${escapedName},`);
|
||||||
});
|
});
|
||||||
}, enumsDir));
|
}, enumsDir));
|
||||||
|
|
||||||
|
if (process.argv[3] !== "--skip-format") {
|
||||||
|
// run the formatting tool for .net, to ensure the files are prepped
|
||||||
|
execSync(`dotnet format -f "${typesDir}" --include-generated --fix-whitespace`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue