@rebasepro/cli 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/init.d.ts +1 -1
- package/dist/index.cjs +38 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +37 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +9 -4
- package/templates/template/.env.example +1 -1
- package/templates/template/README.md +1 -1
- package/templates/template/config/collections/posts.ts +6 -12
- package/templates/template/docker-compose.yml +2 -2
- package/templates/template/pnpm-workspace.yaml +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Developer tools for Rebase projects",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"execa": "^9.6.1",
|
|
32
32
|
"inquirer": "12.11.1",
|
|
33
33
|
"jiti": "^2.7.0",
|
|
34
|
-
"@rebasepro/
|
|
35
|
-
"@rebasepro/
|
|
36
|
-
"@rebasepro/types": "0.2.
|
|
34
|
+
"@rebasepro/server-core": "0.2.3",
|
|
35
|
+
"@rebasepro/sdk-generator": "0.2.3",
|
|
36
|
+
"@rebasepro/types": "0.2.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^20.19.41",
|
|
@@ -60,6 +60,11 @@
|
|
|
60
60
|
"templates/template/node_modules"
|
|
61
61
|
],
|
|
62
62
|
"gitHead": "d935eefa5aa8d1009a2398cfac2c1e4ee9aeb6b6",
|
|
63
|
+
"repository": {
|
|
64
|
+
"type": "git",
|
|
65
|
+
"url": "https://github.com/rebasepro/rebase.git",
|
|
66
|
+
"directory": "packages/cli"
|
|
67
|
+
},
|
|
63
68
|
"scripts": {
|
|
64
69
|
"test": "vitest run",
|
|
65
70
|
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# Database connection string (required)
|
|
8
8
|
# You can use PostgreSQL (postgresql://) or MongoDB (mongodb:// or mongodb+srv://).
|
|
9
9
|
# The backend will automatically detect the database type.
|
|
10
|
-
DATABASE_URL=postgresql://rebase:changeme@localhost:5432/rebase
|
|
10
|
+
DATABASE_URL=postgresql://rebase:changeme@localhost:5432/rebase?options=-c%20search_path=public
|
|
11
11
|
# DATABASE_URL=mongodb://localhost:27017/rebase
|
|
12
12
|
|
|
13
13
|
# Separate admin connection string for migrations and schema operations (optional)
|
|
@@ -24,7 +24,7 @@ That's it. Your app is running:
|
|
|
24
24
|
|
|
25
25
|
- [Node.js](https://nodejs.org) >= 18
|
|
26
26
|
- [pnpm](https://pnpm.io) or [npm](https://www.npmjs.com) (v7+)
|
|
27
|
-
- A PostgreSQL database
|
|
27
|
+
- A PostgreSQL database (you can start the included database container via `docker compose up -d db`)
|
|
28
28
|
|
|
29
29
|
#### Setup
|
|
30
30
|
|
|
@@ -53,23 +53,17 @@ const postsCollection: EntityCollection = {
|
|
|
53
53
|
name: "Author",
|
|
54
54
|
type: "relation",
|
|
55
55
|
relationName: "author",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
direction: "owning",
|
|
60
|
-
target: () => authorsCollection
|
|
61
|
-
}
|
|
56
|
+
target: () => authorsCollection,
|
|
57
|
+
cardinality: "one",
|
|
58
|
+
direction: "owning"
|
|
62
59
|
},
|
|
63
60
|
tags: {
|
|
64
61
|
name: "Tags",
|
|
65
62
|
type: "relation",
|
|
66
63
|
relationName: "tags",
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
direction: "owning",
|
|
71
|
-
target: () => tagsCollection
|
|
72
|
-
}
|
|
64
|
+
target: () => tagsCollection,
|
|
65
|
+
cardinality: "many",
|
|
66
|
+
direction: "owning"
|
|
73
67
|
}
|
|
74
68
|
}
|
|
75
69
|
};
|
|
@@ -56,8 +56,8 @@ services:
|
|
|
56
56
|
env_file: .env
|
|
57
57
|
environment:
|
|
58
58
|
# Override DATABASE_URL to point to the Docker network service
|
|
59
|
-
DATABASE_URL: postgresql://rebase:${DATABASE_PASSWORD:-changeme}@db:5432/rebase
|
|
60
|
-
ADMIN_CONNECTION_STRING: postgresql://rebase:${DATABASE_PASSWORD:-changeme}@db:5432/rebase
|
|
59
|
+
DATABASE_URL: postgresql://rebase:${DATABASE_PASSWORD:-changeme}@db:5432/rebase?options=-c%20search_path=public
|
|
60
|
+
ADMIN_CONNECTION_STRING: postgresql://rebase:${DATABASE_PASSWORD:-changeme}@db:5432/rebase?options=-c%20search_path=public
|
|
61
61
|
NODE_ENV: production
|
|
62
62
|
PORT: "3001"
|
|
63
63
|
depends_on:
|