From 8456207002d03b772b5aa7ba5c42dead8e5206a8 Mon Sep 17 00:00:00 2001 From: Bohdan Pysarenko Date: Mon, 17 Jun 2024 14:28:58 +0300 Subject: [PATCH] fix versions --- README.md | 6 ++++-- package.json | 4 ++-- packages/cubejs-backend-shared/package.json | 2 +- packages/cubejs-bigquery-driver/package.json | 4 ++-- packages/cubejs-postgres-driver/package.json | 4 ++-- packages/cubejs-query-orchestrator/package.json | 4 ++-- packages/cubejs-server-core/package.json | 6 +++--- 7 files changed, 16 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index cc3e5f421ff3a..d93b1ac0fe41f 100644 --- a/README.md +++ b/README.md @@ -9,15 +9,17 @@ CI part will take place from github actions. and not from codefresh pipeline onc ### CD CD part will take place from codefresh pipeline and will only publish specific packages that were defined in the codefresh.yml -### how to add another new package in case we need +### how to add another new package in case we need(ordered) 1. make change in the package.json of the specific required new package and rename the original name. take a look on how we did it for cubejs-bigquery-driver 2. add another step in the codefresh.yml so that the new package will be pushed to our npm ### What packages are we publishing atm -1. [server-core](https://github.com/codefresh-io/cube.js/blob/master/packages/cubejs-server-core/package.json), [@codefresh-io/cubejs-backend-server-core](https://www.npmjs.com/package/@codefresh-io/cubejs-backend-server-core) +1. [cubejs-backend-shared](https://github.com/codefresh-io/cube.js/tree/master/packages/cubejs-backend-shared), [@codefresh-io/cubejs-backend-shared](https://www.npmjs.com/package/@codefresh-io/cubejs-backend-shared) 2. [cbuejs-bigquery-driver](https://github.com/codefresh-io/cube.js/tree/master/packages/cubejs-bigquery-driver), [@codefresh-io/cubejs-backend-bigquery-driver](https://www.npmjs.com/package/@codefresh-io/cubejs-backend-bigquery-driver) 3. [cubejs-postgres-driver](https://github.com/codefresh-io/cube.js/tree/master/packages/cubejs-postgres-driver), [@codefresh-io/cubejs-backend-postgres-driver ](https://www.npmjs.com/package/@codefresh-io/cubejs-backend-postgres-driver) +4. [cubejs-backend-query-orchestrator](https://github.com/codefresh-io/cube.js/tree/master/packages/cubejs-query-orchestrator), [@codefresh-io/cubejs-backend-query-orchestrator](https://www.npmjs.com/package/@codefresh-io/cubejs-backend-query-orchestrator) +5. [server-core](https://github.com/codefresh-io/cube.js/blob/master/packages/cubejs-server-core/package.json), [@codefresh-io/cubejs-backend-server-core](https://www.npmjs.com/package/@codefresh-io/cubejs-backend-server-core) ### How to use packages 1. We need to keep real names of packages when using the published packages, so since we are publishing with different name, other places in cube js code aren't aware of this name and this causing issues on runtime. diff --git a/package.json b/package.json index ca57e001059f4..203d1603a55cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cf-cubejs", - "version": "0.1.1", + "version": "0.1.2", "description": "", "workspaces": { "packages": [ @@ -16,7 +16,7 @@ "scripts": { "build": "rollup -c", "watch": "rollup -c -w", - "watch-local": "CUBEJS_API_URL=http://localhost:6020/cubejs-api/v1 rollup -c -w", + "watch-local": "CUBEJS_API_URL=http://localhost:6020/cubejs-api/v1 rollup -c -w", "lint:npm": "yarn npmPkgJsonLint packages/*/package.json rust/package.json", "lint": "yarn lint:npm && yarn lerna run lint", "lint:fix": "lerna run lint:fix", diff --git a/packages/cubejs-backend-shared/package.json b/packages/cubejs-backend-shared/package.json index 70e7c1b71f113..48f13d2ab9545 100644 --- a/packages/cubejs-backend-shared/package.json +++ b/packages/cubejs-backend-shared/package.json @@ -1,6 +1,6 @@ { "name": "@codefresh-io/cubejs-backend-shared", - "version": "0.35.43", + "version": "0.35.43-rc.bp", "description": "Shared code for Cube.js backend packages", "main": "dist/src/index.js", "typings": "dist/src/index.d.ts", diff --git a/packages/cubejs-bigquery-driver/package.json b/packages/cubejs-bigquery-driver/package.json index e1c1833f3e75d..48d05a4c914f0 100644 --- a/packages/cubejs-bigquery-driver/package.json +++ b/packages/cubejs-bigquery-driver/package.json @@ -2,7 +2,7 @@ "name": "@codefresh-io/cubejs-backend-bigquery-driver", "description": "Cube.js BigQuery database driver", "author": "Cube Dev, Inc.", - "version": "0.35.47", + "version": "0.35.47-rc.bp", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -30,7 +30,7 @@ "dependencies": { "@cubejs-backend/base-driver": "^0.35.43", "@cubejs-backend/dotenv": "^9.0.2", - "@cubejs-backend/shared": "^0.35.43", + "@cubejs-backend/shared": "npm:@codefresh-io/cubejs-backend-shared@0.35.43-rc.bp", "@google-cloud/bigquery": "^7.7.0", "@google-cloud/storage": "^7.11.1", "ramda": "^0.27.2" diff --git a/packages/cubejs-postgres-driver/package.json b/packages/cubejs-postgres-driver/package.json index d6fbd9a84c5c7..36a3613f7cd74 100644 --- a/packages/cubejs-postgres-driver/package.json +++ b/packages/cubejs-postgres-driver/package.json @@ -2,7 +2,7 @@ "name": "@codefresh-io/cubejs-backend-postgres-driver", "description": "Cube.js Postgres database driver", "author": "Cube Dev, Inc.", - "version": "0.35.47", + "version": "0.35.47-rc.bp", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -28,7 +28,7 @@ }, "dependencies": { "@cubejs-backend/base-driver": "^0.35.43", - "@cubejs-backend/shared": "^0.35.43", + "@cubejs-backend/shared": "npm:@codefresh-io/cubejs-backend-shared@0.35.43-rc.bp", "@types/pg": "^8.6.0", "@types/pg-query-stream": "^1.0.3", "moment": "^2.24.0", diff --git a/packages/cubejs-query-orchestrator/package.json b/packages/cubejs-query-orchestrator/package.json index d2b05e352ec19..45bb8ee5a4952 100644 --- a/packages/cubejs-query-orchestrator/package.json +++ b/packages/cubejs-query-orchestrator/package.json @@ -2,7 +2,7 @@ "name": "@codefresh-io/cubejs-backend-query-orchestrator", "description": "Cube.js Query Orchestrator and Cache", "author": "Cube Dev, Inc.", - "version": "0.35.46", + "version": "0.35.46-rc.bp", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -32,7 +32,7 @@ "dependencies": { "@cubejs-backend/base-driver": "^0.35.43", "@cubejs-backend/cubestore-driver": "^0.35.46", - "@cubejs-backend/shared": "npm:@codefresh-io/cubejs-backend-shared@0.35.43", + "@cubejs-backend/shared": "npm:@codefresh-io/cubejs-backend-shared@0.35.43-rc.bp", "csv-write-stream": "^2.0.0", "es5-ext": "0.10.53", "generic-pool": "^3.7.1", diff --git a/packages/cubejs-server-core/package.json b/packages/cubejs-server-core/package.json index 45887dd70cf76..25ee9c7909fae 100644 --- a/packages/cubejs-server-core/package.json +++ b/packages/cubejs-server-core/package.json @@ -2,7 +2,7 @@ "name": "@codefresh-io/cubejs-backend-server-core", "description": "Cube.js base component to wire all backend components together", "author": "Cube Dev, Inc.", - "version": "0.35.47", + "version": "0.35.47-rc.bp", "repository": { "type": "git", "url": "https://github.com/cube-js/cube.git", @@ -33,9 +33,9 @@ "@cubejs-backend/cloud": "^0.35.43", "@cubejs-backend/dotenv": "^9.0.2", "@cubejs-backend/native": "^0.35.47", - "@cubejs-backend/query-orchestrator": "npm:@codefresh-io/cubejs-backend-query-orchestrator@0.35.46", + "@cubejs-backend/query-orchestrator": "npm:@codefresh-io/cubejs-backend-query-orchestrator@0.35.46-rc.bp", "@cubejs-backend/schema-compiler": "^0.35.47", - "@cubejs-backend/shared": "^0.35.43", + "@cubejs-backend/shared": "npm:@codefresh-io/cubejs-backend-shared@0.35.43-rc.bp", "@cubejs-backend/templates": "^0.35.43", "codesandbox-import-utils": "^2.1.12", "cross-spawn": "^7.0.1",