Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run build
run: |
pnpm run build
pnpm tsx packages/cli/scripts/post-build.ts

- name: Lint
run: pnpm run lint
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run build
run: |
pnpm run build
pnpm tsx packages/cli/scripts/post-build.ts

- name: Get version from package.json
id: version
Expand Down
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
- Database migrations still use Prisma CLI under the hood
- Plugin system allows interception at ORM, Kysely, and entity mutation levels
- Computed fields are evaluated at database level for performance
- The "ide/vscode" package by-design has a different version from the rest of the packages as VSCode doesn't allow pre-release versions in its marketplace.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zenstack-v3",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "ZenStack",
"packageManager": "[email protected]",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publisher": "zenstack",
"displayName": "ZenStack CLI",
"description": "FullStack database toolkit with built-in access control and automatic API generation.",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"type": "module",
"author": {
"name": "ZenStack Team"
Expand Down
20 changes: 20 additions & 0 deletions packages/cli/scripts/post-build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

const token = process.env.TELEMETRY_TRACKING_TOKEN ?? '';

if (!token) {
console.warn('TELEMETRY_TRACKING_TOKEN is not set.');
}

const filesToProcess = ['dist/index.js', 'dist/index.cjs'];
const _dirname = path.dirname(fileURLToPath(import.meta.url));

for (const file of filesToProcess) {
console.log(`Processing ${file} for telemetry token...`);
const filePath = path.join(_dirname, '..', file);
const content = fs.readFileSync(filePath, 'utf-8');
const updatedContent = content.replace('<TELEMETRY_TRACKING_TOKEN>', token);
fs.writeFileSync(filePath, updatedContent, 'utf-8');
}
17 changes: 0 additions & 17 deletions packages/cli/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import fs from 'node:fs';
import path from 'node:path';
import { defineConfig } from 'tsup';

export default defineConfig({
Expand All @@ -12,19 +10,4 @@ export default defineConfig({
clean: true,
dts: true,
format: ['esm', 'cjs'],
onSuccess: async () => {
if (!process.env['TELEMETRY_TRACKING_TOKEN']) {
return;
}
const filesToProcess = ['dist/index.js', 'dist/index.cjs'];
for (const file of filesToProcess) {
console.log(`Processing ${file} for telemetry token...`);
const content = fs.readFileSync(path.join(__dirname, file), 'utf-8');
const updatedContent = content.replace(
'<TELEMETRY_TRACKING_TOKEN>',
process.env['TELEMETRY_TRACKING_TOKEN'],
);
fs.writeFileSync(file, updatedContent, 'utf-8');
}
},
});
2 changes: 1 addition & 1 deletion packages/common-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/common-helpers",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "ZenStack Common Helpers",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-zenstack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-zenstack",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "Create a new ZenStack project",
"type": "module",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion packages/dialects/sql.js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/kysely-sql-js",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "Kysely dialect for sql.js",
"type": "module",
"scripts": {
Expand All @@ -25,6 +25,10 @@
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": {
"import": "./package.json",
"require": "./package.json"
}
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/eslint-config",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"type": "module",
"private": true,
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion packages/language/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zenstackhq/language",
"description": "ZenStack ZModel language specification",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"license": "MIT",
"author": "ZenStack Team",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/runtime",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "ZenStack Runtime",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/sdk",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "ZenStack SDK",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tanstack-query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/tanstack-query",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/testtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/testtools",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "ZenStack Test Tools",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/typescript-config",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"private": true,
"license": "MIT"
}
2 changes: 1 addition & 1 deletion packages/vitest-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zenstackhq/vitest-config",
"type": "module",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"private": true,
"license": "MIT",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/zod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/zod",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "",
"type": "module",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion samples/blog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sample-blog",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "e2e",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"private": true,
"type": "module",
"scripts": {
Expand Down