feat: public releases package

This commit is contained in:
Mo
2022-06-20 10:53:42 -05:00
parent 3642fc882a
commit 4fea3e9a6b
7 changed files with 69 additions and 2 deletions

6
packages/releases/dist/releases.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"@standardnotes/components-meta": "2.1.6",
"@standardnotes/desktop": "3.22.12-alpha.2",
"@standardnotes/mobile": "3.23.8-alpha.0",
"@standardnotes/web": "3.23.0-alpha.1"
}

View File

@@ -0,0 +1,15 @@
import Components from '../components/package.json' assert { type: 'json' }
import Desktop from '../desktop/package.json' assert { type: 'json' }
import Mobile from '../mobile/package.json' assert { type: 'json' }
import Web from '../web/package.json' assert { type: 'json' }
import { writeJson, ensureDirExists } from '../../scripts/ScriptUtils.mjs'
const Releases = {
[Components.name]: Components.version,
[Desktop.name]: Desktop.version,
[Mobile.name]: Mobile.version,
[Web.name]: Web.version,
}
ensureDirExists('dist')
writeJson(Releases, 'dist/releases.json')

View File

@@ -0,0 +1,23 @@
{
"name": "@standardnotes/releases",
"version": "1.0.0",
"license": "AGPL-3.0-or-later",
"main": "dist/releases.json",
"private": false,
"publishConfig": {
"access": "public"
},
"author": "Standard Notes",
"description": "Standard Notes client release versions",
"engines": {
"node": ">=12.19.0 <17.0.0"
},
"scripts": {
"build": "node index.mjs",
"version": "yarn build"
},
"devDependencies": {
"@types/node": "*",
"typescript": "*"
}
}