From 8189b45f48693372e76256ce1d7b51642e47ae8a Mon Sep 17 00:00:00 2001 From: David Snelling Date: Tue, 22 Jul 2025 10:53:52 -0700 Subject: [PATCH] **chore(release): bump version to 0.16.0 and enhance project scripts** - **Version Updates**: - Updated `cli-package/package.json` and `package-lock.json` from `0.15.0` to `0.16.0`. - **NPM Script Enhancements**: - Added version-related scripts (`version`, `version:patch`, `version:minor`, `version:major`) to `web-service-package` and `cli-package`. - Introduced `deploy` and `dry-run` scripts to streamline build and deployment workflows. - **Script Cleanup**: - Removed redundant `build:cli`, `deploy:cli`, and `deploy:web-service` scripts from the root `package.json`. **Purpose**: Prepares for release 0.16.0 while introducing reusable and optimized build/release scripts, improving the development and deployment experience. --- cli-package/package-lock.json | 4 ++-- cli-package/package.json | 10 ++++++++-- package.json | 3 --- web-service-package/package.json | 8 +++++++- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/cli-package/package-lock.json b/cli-package/package-lock.json index 1178222f..adaed17a 100644 --- a/cli-package/package-lock.json +++ b/cli-package/package-lock.json @@ -1,12 +1,12 @@ { "name": "@soulcraft/brainy-cli", - "version": "0.12.0", + "version": "0.16.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@soulcraft/brainy-cli", - "version": "0.12.0", + "version": "0.16.0", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/cli-package/package.json b/cli-package/package.json index 1cc43b5e..a7a4c403 100644 --- a/cli-package/package.json +++ b/cli-package/package.json @@ -1,6 +1,6 @@ { "name": "@soulcraft/brainy-cli", - "version": "0.15.0", + "version": "0.16.0", "description": "Command-line interface for the Brainy vector graph database", "type": "module", "bin": { @@ -15,7 +15,13 @@ "scripts": { "build": "rollup -c rollup.config.js", "prepare": "npm run build", - "postinstall": "node cli-wrapper.js --version" + "postinstall": "node cli-wrapper.js --version", + "version": "echo 'Version updated in package.json'", + "version:patch": "npm version patch", + "version:minor": "npm version minor", + "version:major": "npm version major", + "deploy": "npm run build && npm publish", + "dry-run": "npm pack --dry-run" }, "keywords": [ "vector-database", diff --git a/package.json b/package.json index 93df292b..2e3d3abe 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "prebuild": "echo 'Prebuild step - no version generation needed'", "build": "BUILD_TYPE=unified rollup -c rollup.config.js", "build:browser": "BUILD_TYPE=browser rollup -c rollup.config.js", - "build:cli": "cd cli-package && npm run build", "start": "node dist/unified.js", "demo": "npm run build && npm run build:browser && npx http-server -o /demo/index.html", "version": "echo 'Version updated in package.json'", @@ -66,8 +65,6 @@ "check:style": "node scripts/check-code-style.js", "prepare": "npm run build", "deploy": "npm run build && npm publish && node scripts/create-github-release.js", - "deploy:cli": "cd cli-package && npm run build && npm publish", - "deploy:web-service": "cd web-service-package && npm run build && npm publish", "dry-run": "npm pack --dry-run", "test": "vitest run", "test:watch": "vitest", diff --git a/web-service-package/package.json b/web-service-package/package.json index 374d589f..89e50048 100644 --- a/web-service-package/package.json +++ b/web-service-package/package.json @@ -21,7 +21,13 @@ "test": "vitest run", "test:watch": "vitest", "test:cloud": "vitest run tests/cloud-storage.test.ts", - "test:service": "vitest run tests/service.test.ts" + "test:service": "vitest run tests/service.test.ts", + "version": "echo 'Version updated in package.json'", + "version:patch": "npm version patch", + "version:minor": "npm version minor", + "version:major": "npm version major", + "deploy": "npm run build && npm publish", + "dry-run": "npm pack --dry-run" }, "keywords": [ "vector-database",