Make the banner more visible
This commit is contained in:
@@ -14,7 +14,11 @@ const SOLIDITY_EXTENSION = '.sol';
|
||||
const DEFAULT_ARTIFACTS_DIR = 'artifacts';
|
||||
const DEFAULT_CONTRACTS_DIR = 'contracts';
|
||||
const DEFAULT_WRAPPERS_DIR = 'generated-wrappers';
|
||||
const AUTO_GENERATED_BANNER = `This file is auto-generated by contracts-gen. Don't edit manually.`;
|
||||
const AUTO_GENERATED_BANNER = `/*
|
||||
* -----------------------------------------------------------------------------
|
||||
* Warning: This file is auto-generated by contracts-gen. Don't edit manually.
|
||||
* -----------------------------------------------------------------------------
|
||||
*/`;
|
||||
const AUTO_GENERATED_BANNER_FOR_LISTS = `This list is auto-generated by contracts-gen. Don't edit manually.`;
|
||||
|
||||
(async () => {
|
||||
@@ -82,7 +86,7 @@ function generateArtifactsTs(contracts: string[], artifactsDir: string, prettier
|
||||
}
|
||||
});
|
||||
const artifactsTs = `
|
||||
// ${AUTO_GENERATED_BANNER}
|
||||
${AUTO_GENERATED_BANNER}
|
||||
import { ContractArtifact } from 'ethereum-types';
|
||||
|
||||
${sortedImports.join('\n')}
|
||||
@@ -102,7 +106,7 @@ function generateWrappersTs(contracts: string[], wrappersDir: string, prettierCo
|
||||
});
|
||||
const sortedImports = _.sortBy(imports);
|
||||
const wrappersTs = `
|
||||
// ${AUTO_GENERATED_BANNER}
|
||||
${AUTO_GENERATED_BANNER}
|
||||
${sortedImports.join('\n')}
|
||||
`;
|
||||
const WRAPPERS_TS_FILE_PATH = 'src/wrappers.ts';
|
||||
|
Reference in New Issue
Block a user