refactor(TS): Use autogenerated warning banner helper
import fs from 'fs-extra'
import path from 'path'
import { props, read, Schema, types, unions } from './index'
+import { autogeneratedHeader } from './utils'
/**
* Generate `../types.ts` from schemas.
@@ -21,11 +22,7 @@ export const build = async (): Promise<string> => {
const code = `/* eslint-disable */
-/**
- * This file was automatically generated by ${path.basename(__filename)}.
- * Do not modify it by hand. Instead, modify the source \`.schema.yaml\` files
- * in the \`schema\` directory and run \`npm run build:ts\` to regenerate this file.
- */
+${autogeneratedHeader('build:ts', path.basename(__filename), '//')}
${typesInterface(schemas)}
