mirror of
https://github.com/LukeHagar/sveltekit-electron-adapter.git
synced 2025-12-07 04:21:35 +00:00
[Release] v0.2.0
This commit is contained in:
31
scripts/changelog.ts
Normal file
31
scripts/changelog.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
/**
|
||||
* Reset CHANGELOG
|
||||
* =====================
|
||||
*
|
||||
* @contributors: Patryk Rzucidło [@ptkdev] <support@ptkdev.io> (https://ptk.dev)
|
||||
* Alì Shadman [@AliShadman95] (https://github.com/AliShadman95)
|
||||
*
|
||||
* @license: MIT License
|
||||
*
|
||||
*/
|
||||
import * as fs from "fs";
|
||||
|
||||
declare const __dirname: string;
|
||||
|
||||
const changelog = `# v1.0.0 (${new Date().toLocaleString("en-us", {
|
||||
month: "long",
|
||||
year: "numeric",
|
||||
day: "numeric",
|
||||
})})
|
||||
|
||||
- First release
|
||||
|
||||
<!-- all-shields/sponsors-badges:START -->
|
||||
<!-- all-shields/sponsors-badges:END -->
|
||||
`;
|
||||
|
||||
fs.unlinkSync(`${__dirname}/../CHANGELOG.md`);
|
||||
fs.writeFileSync(`${__dirname}/../CHANGELOG.md`, `${changelog}`, {
|
||||
encoding: "utf8",
|
||||
});
|
||||
Reference in New Issue
Block a user