Skip to content

Commit

Permalink
add comment to generated typescript file
Browse files Browse the repository at this point in the history
  • Loading branch information
TimurRin committed Jul 21, 2024
1 parent 5131986 commit 40d46d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export async function updateMetaDataFiles(
}
} else if (file.type === "javascript" || file.type === "typescript") {
const content =
`// This file was generated by Cinnabar Meta. Do not edit.\n\n` +
`export const CINNABAR_PROJECT_TIMESTAMP = ${Math.floor(Date.now() / 1000)};\n` +
`export const CINNABAR_PROJECT_VERSION = "${newVersion}";\n`;
fs.writeFileSync(path.resolve(file.path), content);
Expand Down

0 comments on commit 40d46d4

Please sign in to comment.