Skip to content

Commit

Permalink
v1.0.4 prep - remove date from GI_VERSION unless 'grunt dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
taoeffect committed Jul 27, 2024
1 parent 7231642 commit 4dddf4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (!['development', 'production'].includes(NODE_ENV)) {
let CONTRACTS_VERSION = packageJSON.contractsVersion
// In development, append a timestamp so that browsers will detect a new version
// and reload whenever the live server is restarted.
const GI_VERSION = packageJSON.version + (NODE_ENV === 'development' ? `@${new Date().toISOString()}` : '')
const GI_VERSION = packageJSON.version + (NODE_ENV === 'development' && process.argv[2] === 'dev' ? `@${new Date().toISOString()}` : '')

// Make version info available to subprocesses.
Object.assign(process.env, { CONTRACTS_VERSION, GI_VERSION })
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "group-income",
"version": "1.0.3",
"version": "1.0.4",
"contractsVersion": "1.0.0",
"private": true,
"description": "Group Income is a decentralized and private (end-to-end encrypted) financial safety net for you and your friends.",
Expand Down

0 comments on commit 4dddf4d

Please sign in to comment.