**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.
This commit is contained in:
David Snelling 2025-07-22 10:53:52 -07:00
parent 2ec3e4ea23
commit 8189b45f48
4 changed files with 17 additions and 8 deletions

View file

@ -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": {

View file

@ -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",

View file

@ -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",

View file

@ -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",