feat: cli flags

This commit is contained in:
evilebottnawi 2020-03-10 12:40:32 +03:00 committed by Tobias Koppers
parent f909245423
commit ccf66eefa1
2 changed files with 18 additions and 4 deletions

View File

@ -1,3 +1,9 @@
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
*/
module.exports = {
amd: {
types: ["boolean"],

View File

@ -140,8 +140,16 @@ const prettierConfig = prettier.resolveConfig.sync(cliFlagsPath);
fs.writeFileSync(
cliFlagsPath,
prettier.format(`module.exports = ${JSON.stringify(flags, null, 2)};`, {
...prettierConfig,
parser: "babel"
})
prettier.format(
`/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run \`yarn special-lint-fix\` to update
*/\n
module.exports = ${JSON.stringify(flags, null, 2)};`,
{
...prettierConfig,
parser: "babel"
}
)
);