Make version.js read from package.json (#320)

This commit is contained in:
Evan Simkowitz 2024-02-23 15:34:45 -08:00 committed by GitHub
parent 0c3766c67b
commit 6cd74028ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 23 deletions

View File

@ -1,2 +1,5 @@
const VERSION = "v0.6.1"; const path = require("path");
const packageJson = require(path.resolve(__dirname, "package.json"));
const VERSION = `v${packageJson.version}`;
module.exports = VERSION; module.exports = VERSION;

View File

@ -1,22 +0,0 @@
{
"packages": [
{
"type": "dmg",
"arch": "macos-arm64",
"channel": "stable",
"updated": "2023-10-31",
"version": "v0.4.0",
"sha": "016876cf3e9fb600d6798891c8566a7ac5d1446a",
"url": "https://www.getprompt.dev/download/prompt-macos-arm64-v0.4.0.dmg"
},
{
"type": "dmg",
"arch": "macos-amd64",
"channel": "stable",
"updated": "2023-10-31",
"version": "v0.4.0",
"sha": "d0bc280e4630a716126e47e700d8d4364db966e6",
"url": "https://www.getprompt.dev/download/prompt-macos-x86-v0.4.0.dmg"
}
]
}