Skip to content

Commit

Permalink
feat: include timestamp in plugin version information
Browse files Browse the repository at this point in the history
  • Loading branch information
amlmtl committed Apr 30, 2024
1 parent fc15ad2 commit 23765ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .config/webpack/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ const config = async (env): Promise<Configuration> => ({
search: /\%TODAY\%/g,
replace: new Date().toString() + ' - ' + Date.now(),
},
{
search: /%DATE_TIME_NOW%/g,
replace: (new Date()).toISOString(),
},
{
search: /\%PLUGIN_ID\%/g,
replace: pluginJson.id,
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
],
"screenshots": [],
"version": "%VERSION%",
"version": "%VERSION% (%DATE_TIME_NOW%)",
"updated": "%TODAY%"
},
"dependencies": {
Expand Down

0 comments on commit 23765ea

Please sign in to comment.