From ba050cd33d57f80187047a7b5e237bd84176a7d2 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Fri, 16 Feb 2024 20:11:38 +0100 Subject: [PATCH] Release 0.3.1 (#4031) --- packages/twenty-docs/package.json | 2 +- packages/twenty-emails/package.json | 2 +- packages/twenty-front/package.json | 2 +- packages/twenty-server/package.json | 2 +- packages/twenty-utils/release.js | 23 +++++++++++++++-------- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/packages/twenty-docs/package.json b/packages/twenty-docs/package.json index 243a8c3014..411746c30b 100644 --- a/packages/twenty-docs/package.json +++ b/packages/twenty-docs/package.json @@ -1,6 +1,6 @@ { "name": "twenty-docs", - "version": "0.3.0", + "version": "0.3.1", "private": true, "scripts": { "nx": "NX_DEFAULT_PROJECT=twenty-docs node ../../node_modules/nx/bin/nx.js", diff --git a/packages/twenty-emails/package.json b/packages/twenty-emails/package.json index bb3d5905b3..aa30fc9f24 100644 --- a/packages/twenty-emails/package.json +++ b/packages/twenty-emails/package.json @@ -1,6 +1,6 @@ { "name": "twenty-emails", - "version": "0.3.0", + "version": "0.3.1", "description": "", "author": "", "private": true, diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json index a4853b4427..0b26d90e99 100644 --- a/packages/twenty-front/package.json +++ b/packages/twenty-front/package.json @@ -1,6 +1,6 @@ { "name": "twenty-front", - "version": "0.3.0", + "version": "0.3.1", "private": true, "type": "module", "scripts": { diff --git a/packages/twenty-server/package.json b/packages/twenty-server/package.json index e81b701b85..f263833231 100644 --- a/packages/twenty-server/package.json +++ b/packages/twenty-server/package.json @@ -1,6 +1,6 @@ { "name": "twenty-server", - "version": "0.3.0", + "version": "0.3.1", "description": "", "author": "", "private": true, diff --git a/packages/twenty-utils/release.js b/packages/twenty-utils/release.js index 10c3a326e5..769e3f04e5 100644 --- a/packages/twenty-utils/release.js +++ b/packages/twenty-utils/release.js @@ -1,23 +1,30 @@ -const fs = require("fs"); -const semver = require("semver"); -const path = require("path"); +const fs = require('fs'); +const semver = require('semver'); +const path = require('path'); // Get the version argument from the command line const [, , version] = process.argv; if (!semver.valid(version)) { console.error( - "Invalid version. The format should be X.X.X where X is a positive integer (or 0)." + 'Invalid version. The format should be X.X.X where X is a positive integer (or 0).', ); process.exit(1); } -const FrontPackageJson = path.join(__dirname, "../twenty-front/package.json"); -const ServerPackageJson = path.join(__dirname, "../twenty-server/package.json"); +const frontPackageJson = path.join(__dirname, '../twenty-front/package.json'); +const serverPackageJson = path.join(__dirname, '../twenty-server/package.json'); +const docsPackageJson = path.join(__dirname, '../twenty-docs/package.json'); +const emailPackageJson = path.join(__dirname, '../twenty-emails/package.json'); // Update package.json -for (let file of [FrontPackageJson, ServerPackageJson]) { +for (let file of [ + frontPackageJson, + serverPackageJson, + docsPackageJson, + emailPackageJson, +]) { let pkgdata = JSON.parse(fs.readFileSync(file)); pkgdata.version = version; - fs.writeFileSync(file, JSON.stringify(pkgdata, null, 2), "utf8"); + fs.writeFileSync(file, JSON.stringify(pkgdata, null, 2), 'utf8'); }