Add header to intergen.ts

This commit is contained in:
Jerko Steiner 2019-08-28 07:27:54 +07:00
parent f817c75d57
commit 0e6c45ce8b

View File

@ -368,7 +368,8 @@ export function intergen(...argv: string[]): string {
module: ts.ModuleKind.CommonJS, module: ts.ModuleKind.CommonJS,
}) })
const value = interfaces.join('\n\n') const header = '// This file was generated by rondo intergen script\n\n'
const value = header + interfaces.join('\n\n')
if (args.output === '-') { if (args.output === '-') {
info(value) info(value)
} else { } else {